Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: olbat/olbat.github.io
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: source
Choose a base ref
...
head repository: olbat/olbat.github.io
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: seo-use-arrays-instead-of-itemlists
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 3 commits
  • 4 files changed
  • 1 contributor

Commits on Sep 15, 2017

  1. Copy the full SHA
    27fcd3f View commit details
  2. Add positions to ItemLists

    olbat committed Sep 15, 2017
    Copy the full SHA
    8d72ce6 View commit details
  3. Copy the full SHA
    a8d90bd View commit details
Showing with 48 additions and 60 deletions.
  1. +5 −0 .travis.yml
  2. +16 −24 _includes/structured_data/coding.json
  3. +25 −29 _includes/structured_data/identities.json
  4. +2 −7 _includes/structured_data/research.json
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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}'
40 changes: 16 additions & 24 deletions _includes/structured_data/coding.json
Original file line number Diff line number Diff line change
@@ -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 %}
{}
]
}
]
54 changes: 25 additions & 29 deletions _includes/structured_data/identities.json
Original file line number Diff line number Diff line change
@@ -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 -%}
]
9 changes: 2 additions & 7 deletions _includes/structured_data/research.json
Original file line number Diff line number Diff line change
@@ -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 -%}
]
}
]