mirror of
https://github.com/safing/web
synced 2025-04-20 10:59:08 +00:00
Remove white spaces and fix comment type
This commit is contained in:
parent
b51b8bf8dd
commit
48f7e1f1ff
1 changed files with 36 additions and 40 deletions
|
@ -2,66 +2,62 @@
|
||||||
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
|
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
<meta property="og:title" content="{{ page.title }}">
|
<meta property="og:title" content="{{ page.title }}">
|
||||||
|
{% comment %}
|
||||||
<!--
|
TODO: Daniel said leave a comment here and this
|
||||||
Todo: Daniel said leave a comment here and this
|
need also need more clarification for how/what
|
||||||
need also need more clarification for how/what
|
should be displayed here
|
||||||
should be displayed here
|
<meta property="og:description" content="
|
||||||
-->
|
{%- if page.summary != null -%}
|
||||||
<!-- <meta property="og:description" content="
|
|
||||||
{% if page.summary != null %}
|
|
||||||
{{ page.summary | truncatewords: 18 }}
|
{{ page.summary | truncatewords: 18 }}
|
||||||
{% else %}
|
{%- else -%}
|
||||||
{{ site.description }}
|
{{ site.description }}
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
"> -->
|
">
|
||||||
|
{% endcomment %}
|
||||||
<meta property="og:image" content="
|
<meta property="og:image" content="
|
||||||
{% if page.category == "podcast" %}
|
{%- if page.category == "podcast" -%}
|
||||||
{% if page.custom_thumbnail_name %}
|
{%- if page.custom_thumbnail_name -%}
|
||||||
{{ site.url }}{{ site.img_url }}thumbnails/podcast/{{ page.custom_thumbnail_name }}.png
|
{{ site.url }}{{ site.img_url }}thumbnails/podcast/{{ page.custom_thumbnail_name }}.png
|
||||||
{% else %}
|
{%- else -%}
|
||||||
{{ site.url }}{{ site.img_url }}thumbnails/podcast/placeholder.png
|
{{ site.url }}{{ site.img_url }}thumbnails/podcast/placeholder.png
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
{% elsif page.category == "video" %}
|
{%- elsif page.category == "video" -%}
|
||||||
{{ site.url }}{{ site.img_url }}thumbnails/video/{{ page.custom_thumbnail_name }}.png
|
{{ site.url }}{{ site.img_url }}thumbnails/video/{{ page.custom_thumbnail_name }}.png
|
||||||
{% elsif page.category == "blog" %}
|
{%- elsif page.category == "blog" -%}
|
||||||
{{ site.url }}{{ site.img_url }}thumbnails/blog/{{ page.custom_thumbnail_name }}.png
|
{{ site.url }}{{ site.img_url }}thumbnails/blog/{{ page.custom_thumbnail_name }}.png
|
||||||
{% else %}
|
{%- else -%}
|
||||||
{{ site.url }}{{ site.img_url }}ogp/default.png
|
{{ site.url }}{{ site.img_url }}ogp/default.png
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
">
|
">
|
||||||
|
|
||||||
<!-- Twitter -->
|
<!-- Twitter -->
|
||||||
<meta name="twitter:title" content="{{ page.title }}">
|
<meta name="twitter:title" content="{{ page.title }}">
|
||||||
|
{% comment %}
|
||||||
<!--
|
TODO: Daniel said leave a comment here and this
|
||||||
Todo: Daniel said leave a comment here and this
|
need also need more clarification for how/what
|
||||||
need also need more clarification for how/what
|
should be displayed here
|
||||||
should be displayed here
|
<meta name="twitter:description" content="
|
||||||
-->
|
{%- if page.summary != null -%}
|
||||||
<!-- <meta name="twitter:description" content="
|
|
||||||
{% if page.summary != null %}
|
|
||||||
{{ page.summary | truncatewords: 18 }}
|
{{ page.summary | truncatewords: 18 }}
|
||||||
{% else %}
|
{%- else -%}
|
||||||
{{ site.description }}
|
{{ site.description }}
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
"> -->
|
">
|
||||||
|
{% endcomment %}
|
||||||
<meta name="twitter:site" content="{{ site.twitter_username }}">
|
<meta name="twitter:site" content="{{ site.twitter_username }}">
|
||||||
<meta name="twitter:card" content="{{ site.twitter_card_type }}">
|
<meta name="twitter:card" content="{{ site.twitter_card_type }}">
|
||||||
<meta name="twitter:image" content="
|
<meta name="twitter:image" content="
|
||||||
{% if page.category == "podcast" %}
|
{%- if page.category == "podcast" -%}
|
||||||
{% if page.custom_thumbnail_name %}
|
{%- if page.custom_thumbnail_name -%}
|
||||||
{{ site.url }}{{ site.img_url }}thumbnails/podcast/{{ page.custom_thumbnail_name }}.png
|
{{ site.url }}{{ site.img_url }}thumbnails/podcast/{{ page.custom_thumbnail_name }}.png
|
||||||
{% else %}
|
{%- else -%}
|
||||||
{{ site.url }}{{ site.img_url }}thumbnails/podcast/placeholder.png
|
{{ site.url }}{{ site.img_url }}thumbnails/podcast/placeholder.png
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
{% elsif page.category == "video" %}
|
{%- elsif page.category == "video" -%}
|
||||||
{{ site.url }}{{ site.img_url }}thumbnails/video/{{ page.custom_thumbnail_name }}.png
|
{{ site.url }}{{ site.img_url }}thumbnails/video/{{ page.custom_thumbnail_name }}.png
|
||||||
{% elsif page.category == "blog" %}
|
{%- elsif page.category == "blog" -%}
|
||||||
{{ site.url }}{{ site.img_url }}thumbnails/blog/{{ page.custom_thumbnail_name }}.png
|
{{ site.url }}{{ site.img_url }}thumbnails/blog/{{ page.custom_thumbnail_name }}.png
|
||||||
{% else %}
|
{%- else -%}
|
||||||
{{ site.url }}{{ site.img_url }}ogp/default.png
|
{{ site.url }}{{ site.img_url }}ogp/default.png
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
">
|
">
|
Loading…
Add table
Reference in a new issue