diff --git a/.travis.yml b/.travis.yml index 37166d9f..c9463b2b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,3 +26,8 @@ jobs: local_dir: _site/ on: branch: source + after_deploy: # flush Cloudflare's cache + - curl -X DELETE "https://api.cloudflare.com/client/v4/zones/${CLOUDFLARE_ZONEID/purge_cache" \ + -H "X-Auth-Email: ${CLOUDFLARE_USER}" \ + -H "X-Auth-Key: ${CLOUDFLARE_TOKEN}" \ + -H "Content-Type: application/json" --data '{"purge_everything":true}' diff --git a/_includes/structured_data/coding.json b/_includes/structured_data/coding.json index 773108a5..1d2a1f91 100644 --- a/_includes/structured_data/coding.json +++ b/_includes/structured_data/coding.json @@ -1,29 +1,21 @@ -{ - "@type": "ItemList", - "name": "{{page.title}}", - "itemListOrder": "http://schema.org/ItemListUnordered", - "itemListElement": [ +[ {%- for repository in site.github.public_repositories %} {%- for project in include.data.projects %} - {%- if project.repositories contains repository.name %} - { - "@type": "ListItem", - "item": { - "@type": "SoftwareSourceCode", - "name": "{{repository.name}}", - "contributor": { "@id": "{{site.url}}/#person" }, - "description": "{{repository.description | json}}", - "genre": "{{project.group}}", - "programmingLanguage": "{{repository.language}}", - "dateModified": "{{repository.pushed_at}}", - "codeRepository": "{{repository.git_url}}", - "license": "GPLv3", - "url": "{{repository.html_url}}" - } - }, - {%- endif %} + {%- if project.repositories contains repository.name %} + { + "@type": "SoftwareSourceCode", + "name": "{{repository.name}}", + "contributor": { "@id": "{{site.url}}/#person" }, + "description": "{{repository.description | json}}", + "genre": "{{project.group}}", + "programmingLanguage": "{{repository.language}}", + "dateModified": "{{repository.pushed_at}}", + "codeRepository": "{{repository.git_url}}", + "license": "GPLv3", + "url": "{{repository.html_url}}" + }, + {%- endif %} {%- endfor %} {%- endfor %} {} - ] -} +] diff --git a/_includes/structured_data/identities.json b/_includes/structured_data/identities.json index 110552a4..e0466557 100644 --- a/_includes/structured_data/identities.json +++ b/_includes/structured_data/identities.json @@ -1,29 +1,25 @@ -{ - "@type": "ItemList", - "name": "{{page.title}}", - "itemListOrder": "http://schema.org/ItemListUnordered", - "itemListElement": [ - {% for profile in include.data.profiles -%} - { - "@type": "ProfilePage", - "name": "{{profile.id}}", - "author": { "@id": "{{site.url}}/#person" }, - {%- if profile.name %}"description": "{{profile.name}}",{% endif %} - "url": "{{profile.url}}", - "relatedLink": "{{site.url}}", - "specialty": { - "@type": "Specialty", - "name": "{{profile.type | capitalize}}" - } - }, - {% endfor -%} - {%- for website in include.data.websites -%} - { - "@type": "Website", - "name": "{{website.name}}", - "author": { "@id": "{{site.url}}/#person" }, - "url": "{{website.url}}" - }{% unless forloop.last %},{% endunless %} - {% endfor -%} - ] -} +[ +{% for profile in include.data.profiles -%} + { + "@type": "ProfilePage", + "name": "{{profile.id}}", + "author": { "@id": "{{site.url}}/#person" }, + {%- if profile.name %}"description": "{{profile.name}}",{% endif %} + "url": "{{profile.url}}", + "relatedLink": "{{site.url}}", + "specialty": { + "@type": "Specialty", + "name": "{{profile.type | capitalize}}" + } + }, +{% endfor -%} +{%- for website in include.data.websites -%} + { + "@type": "Website", + "name": "{{website.name}}", + "author": { "@id": "{{site.url}}/#person" }, + "url": "{{page.url | absolute_url}}#item-{{counter}}", + "sameAs": "{{website.url}}" + }{% unless forloop.last %},{% endunless %} +{% endfor -%} +] diff --git a/_includes/structured_data/research.json b/_includes/structured_data/research.json index 7c2e0ca7..8b3d1c46 100644 --- a/_includes/structured_data/research.json +++ b/_includes/structured_data/research.json @@ -1,8 +1,4 @@ -{ - "@type": "ItemList", - "name": "{{page.title}}", - "itemListOrder": "http://schema.org/ItemListUnordered", - "itemListElement": [ +[ {%- for doc in include.data.papers %} {% include structured_data/research/doc.json type="ScholarlyArticle" doc=doc %} {%- unless forloop.last %},{% endunless -%} @@ -31,5 +27,4 @@ "url": "{{project.url}}" }{% unless forloop.last %},{% endunless %} {%- endfor -%} - ] -} +]