Skip to content

Commit

Permalink
Update schema and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwieds committed Aug 3, 2023
1 parent d52da7d commit 478b11e
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 70 deletions.
9 changes: 6 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ socials:
spotify: "" # string, example: somiibo
mixcloud: "" # string, example: somiibo

comments:
disqus: "" # string, example: somiibo

download:
mac: '' # string, example: https://github.com/somiibo/download-server/releases/download/installer/Somiibo.dmg
windows: '' # string, example: https://github.com/somiibo/download-server/releases/download/installer/Somiibo-Setup.exe
Expand All @@ -69,6 +66,12 @@ extension:
safari: '' # string, example: https://apps.apple.com/us/app/somiibo/id999999999
edge: '' # string, example: https://microsoftedge.microsoft.com/addons/detail/somiibo/opidlipnbfhpdenbnanplcalbdgoplnc

comments:
gisqus-repo: "Distalk/giscus" # string, example: somiibo/giscus
gisqus-repo-id: "R_kgDOJ-chGA" # string, example: R_kgDOJ-chGA
gisqus-category: "Giscus" # string, example: Giscus
gisqus-category-id: "DIC_kwDOJ-chGM4CYD4O" # string, example: DIC_kwDOJ-chGM4CYD4O

tracking:
google-analytics: false # false to disable, example: UA-123456789
facebook-pixel: false # false to disable, example: fbp-123456789
Expand Down
31 changes: 26 additions & 5 deletions _includes/master/global/foot.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
{% assign page_is_post = false %}
{% endif %}

{%- if page.member.name != null and page.member.name != '' -%}
{% assign page_is_team_member = true %}
{% else %}
{% assign page_is_team_member = false %}
{% endif %}

{%- capture analytics-unused-ga %}
<script type="text/javascript">
function gtag() {};
Expand Down Expand Up @@ -401,23 +407,38 @@
"description": "{{ page.post.excerpt | liquify }} ",
"headline": "{{ page.post.title | liquify }}",
"datePublished": "{{ page.date | date_to_xmlschema }}",
"dateModified": "{{ site.time | date_to_xmlschema }}",
"author": {
"@id": "{{ site.url }}/team/{{ page.post.author }}"
"@id": "{{ site.url }}/team/{{ page.post.author }}#Person"
},
"publisher": {
"@id": "{{ site.url }}"
"@id": "{{ site.url }}#{{ site.brand.type }}"
},
"isPartOf": {
"@id": "{{ site.url }}{{ page.url }}"
},
"image": {
"@id": "{{ site.url }}/assets/images/blog/posts/post-{{ page.post.id }}/{{ page.url | split: "/" | last }}.jpg"
},
"image": [
"{{ site.url }}/assets/images/blog/posts/post-{{ page.post.id }}/{{ page.url | split: "/" | last }}.jpg"
],
"inLanguage": "en-US"
}
</script>
{% endif %}

<!-- Schema - Person -->
{%- if page_is_team_member == true -%}
<script id="uj-person-json" type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Person",
"@id": "{%- include /master/helpers/blog-author.html author=post.post.author mode="url" -%}#Person",
"url": "{%- include /master/helpers/blog-author.html author=post.post.author mode="url" -%}",
"name": "{%- include /master/helpers/blog-author.html author=post.post.author mode="name" -%}",
"image": "{%- include /master/helpers/blog-author.html author=post.post.author mode="image-url" -%}"
}
</script>
{% endif %}

<!-- App - Foot Content -->
{%- if page.settings.include-app-foot == false -%}
{% elsif layout.settings.include-app-foot == false %}
Expand Down
10 changes: 7 additions & 3 deletions _includes/master/helpers/blog-author.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,19 @@
{% assign _header-class = site.settings.blog-author-image-class %}
{%- endif -%}

{% capture path %}/assets/images/team/{{ author-id }}/profile.jpg{% endcapture %}
{% capture alt %}{{ author.member.name }}'s profile picture{% endcapture %}

{%- if include.mode == null or include.mode == 'link' -%}
<a href="{{ site.url }}{{ author.url }}" class="{{ include.class }}"> {{ author.member.name }}</a>
{%- elsif include.mode == 'name' -%}
{{ author.member.name }}
{%- elsif include.mode == 'url' -%}
{{ site.url }}{{ author.url }}
{%- elsif include.mode == 'content' -%}
{{ author | markdownify }}
{%- elsif include.mode == 'image' -%}
{% capture path %}/assets/images/team/{{ author-id }}/profile.jpg{% endcapture %}
{% capture alt %}{{ author.member.name }}'s profile picture{% endcapture %}

{%- include /master/helpers/image.html src=path class=_header-class alt=alt style=include.style max_width="1024" width=include.width height=include.height -%}
{%- elsif include.mode == 'image-url' -%}
{{ site.url }}{{ path }}
{%- endif -%}
22 changes: 0 additions & 22 deletions _includes/master/modules/disqus-comments.html

This file was deleted.

9 changes: 5 additions & 4 deletions _includes/master/modules/engagement/giscus.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<!-- Module - Giscus -->
<script src="https://giscus.app/client.js"
data-repo="Distalk/giscus"
data-repo-id="R_kgDOJ-chGA"
data-category="Giscus"
data-category-id="DIC_kwDOJ-chGM4CYD4O"
data-repo="{{ site.comments.gisqus-repo }}"
data-repo-id="{{ site.comments.gisqus-repo-id }}"
data-category="{{ site.comments.gisqus-category }}"
data-category-id="{{ site.comments.gisqus-category-id }}"
data-mapping="url"
data-strict="1"
data-reactions-enabled="1"
Expand Down
33 changes: 0 additions & 33 deletions _includes/master/modules/social-share-kit.html

This file was deleted.

0 comments on commit 478b11e

Please sign in to comment.