mirror of
https://github.com/safing/web
synced 2025-04-08 04: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:type" content="website">
|
||||
<meta property="og:title" content="{{ page.title }}">
|
||||
|
||||
<!--
|
||||
Todo: Daniel said leave a comment here and this
|
||||
need also need more clarification for how/what
|
||||
should be displayed here
|
||||
-->
|
||||
<!-- <meta property="og:description" content="
|
||||
{% if page.summary != null %}
|
||||
{% comment %}
|
||||
TODO: Daniel said leave a comment here and this
|
||||
need also need more clarification for how/what
|
||||
should be displayed here
|
||||
<meta property="og:description" content="
|
||||
{%- if page.summary != null -%}
|
||||
{{ page.summary | truncatewords: 18 }}
|
||||
{% else %}
|
||||
{%- else -%}
|
||||
{{ site.description }}
|
||||
{% endif %}
|
||||
"> -->
|
||||
|
||||
{%- endif -%}
|
||||
">
|
||||
{% endcomment %}
|
||||
<meta property="og:image" content="
|
||||
{% if page.category == "podcast" %}
|
||||
{% if page.custom_thumbnail_name %}
|
||||
{%- if page.category == "podcast" -%}
|
||||
{%- if page.custom_thumbnail_name -%}
|
||||
{{ site.url }}{{ site.img_url }}thumbnails/podcast/{{ page.custom_thumbnail_name }}.png
|
||||
{% else %}
|
||||
{%- else -%}
|
||||
{{ site.url }}{{ site.img_url }}thumbnails/podcast/placeholder.png
|
||||
{% endif %}
|
||||
{% elsif page.category == "video" %}
|
||||
{%- endif -%}
|
||||
{%- elsif page.category == "video" -%}
|
||||
{{ 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
|
||||
{% else %}
|
||||
{%- else -%}
|
||||
{{ site.url }}{{ site.img_url }}ogp/default.png
|
||||
{% endif %}
|
||||
{%- endif -%}
|
||||
">
|
||||
|
||||
<!-- Twitter -->
|
||||
<meta name="twitter:title" content="{{ page.title }}">
|
||||
|
||||
<!--
|
||||
Todo: Daniel said leave a comment here and this
|
||||
need also need more clarification for how/what
|
||||
should be displayed here
|
||||
-->
|
||||
<!-- <meta name="twitter:description" content="
|
||||
{% if page.summary != null %}
|
||||
{% comment %}
|
||||
TODO: Daniel said leave a comment here and this
|
||||
need also need more clarification for how/what
|
||||
should be displayed here
|
||||
<meta name="twitter:description" content="
|
||||
{%- if page.summary != null -%}
|
||||
{{ page.summary | truncatewords: 18 }}
|
||||
{% else %}
|
||||
{%- else -%}
|
||||
{{ site.description }}
|
||||
{% endif %}
|
||||
"> -->
|
||||
|
||||
{%- endif -%}
|
||||
">
|
||||
{% endcomment %}
|
||||
<meta name="twitter:site" content="{{ site.twitter_username }}">
|
||||
<meta name="twitter:card" content="{{ site.twitter_card_type }}">
|
||||
<meta name="twitter:image" content="
|
||||
{% if page.category == "podcast" %}
|
||||
{% if page.custom_thumbnail_name %}
|
||||
{%- if page.category == "podcast" -%}
|
||||
{%- if page.custom_thumbnail_name -%}
|
||||
{{ site.url }}{{ site.img_url }}thumbnails/podcast/{{ page.custom_thumbnail_name }}.png
|
||||
{% else %}
|
||||
{%- else -%}
|
||||
{{ site.url }}{{ site.img_url }}thumbnails/podcast/placeholder.png
|
||||
{% endif %}
|
||||
{% elsif page.category == "video" %}
|
||||
{%- endif -%}
|
||||
{%- elsif page.category == "video" -%}
|
||||
{{ 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
|
||||
{% else %}
|
||||
{%- else -%}
|
||||
{{ site.url }}{{ site.img_url }}ogp/default.png
|
||||
{% endif %}
|
||||
{%- endif -%}
|
||||
">
|
Loading…
Add table
Reference in a new issue