updated head meta tags (trimmed whitespace) and updated twitter card
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
sunda 2022-05-31 15:26:05 +02:00
parent 038436fcdf
commit 764fdd800d
2 changed files with 12 additions and 28 deletions

View File

@ -1,22 +1,6 @@
{% capture title %} {% capture title %}{% if page.title_ %}{{ site.title }} \ {{ page.title_ }}{% elsif page.fullname %}{{ site.title }} \ {{ page.fullname }}{% elsif page.title %}{{ site.title }} \ {{ page.title }}{% else %}{{ site.title | escape }}{% endif %}{% endcapture %}
{% if page.title_ %}
{{ site.title | append: " \ "| append: page.title_ }}
{% elsif page.fullname %}
{{ site.title | append: " \ "| append: page.fullname }}
{% elsif page.title %}
{{ site.title | append: " \ "| append: page.title }}
{% else %}
{{ site.title | escape }}
{% endif %}
{% endcapture %}
{% capture pic %} {%- capture pic -%}{% if page.pic %}https://reclaimfutures.org{{ page.pic }}{% else %}https://reclaimfutures.org/assets/img/TwitterCard.png{% endif %}{% endcapture %}
{% if page.pic %}
https://reclaimfutures.org{{ page.pic }}
{% else %}
"https://reclaimfutures.org/assets/img/TwitterCard.png"
{% endif %}
{% endcapture %}
<!-- HEAD --> <!-- HEAD -->
<head> <head>
@ -27,26 +11,26 @@
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}"> <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
<meta name="author" content="{{ page.author }}"> <meta name="author" content="{{ page.author }}">
<meta name="keywords" content="{{ page.keyword | strip_html | normalize_whitespace | escape }}"> <meta name="keywords" content="{{ page.keyword | strip_html | normalize_whitespace | escape }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ site.baseurl }}/assets/favicons/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="32x32" href="/assets/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{ site.baseurl }}/assets/favicons/favicon-16x16.png"> <link rel="icon" type="image/png" sizes="16x16" href="/assets/favicons/favicon-16x16.png">
<link rel="apple-touch-icon" sizes="180x180" href="{{ site.baseurl }}/assets/favicons/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="180x180" href="/assets/favicons/apple-touch-icon.png">
<link rel="manifest" href="{{ site.baseurl }}/assets/favicons/site.webmanifest"> <link rel="manifest" href="/assets/favicons/site.webmanifest">
<link rel="icon" href="{{ site.baseurl }}/assets/favicons/svg-favi.svg"> <link rel="icon" href="/assets/favicons/svg-favi.svg">
<link rel="mask-icon" href="{{ site.baseurl }}/assets/favicons/safari-pinned-tab.svg" color="#5bbad5"> <link rel="mask-icon" href="/assets/favicons/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#0ddfe7"> <meta name="msapplication-TileColor" content="#0ddfe7">
<meta name="theme-color" content="#0ddfe7"> <meta name="theme-color" content="#0ddfe7">
<meta content="{{ site.title }}" property="og:site_name" /> <meta content="{{ site.title }}" property="og:site_name" />
<meta name="twitter:card" content="summary" /> <meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="{{ site.twitter }}" /> <meta name="twitter:site" content="{{ site.twitter }}" />
<meta name="twitter:title" content="{{ site.title }}" /> <meta name="twitter:title" content="{{- title }}" />
<meta name="twitter:description" content="{{ site.description }}" /> <meta name="twitter:description" content="{{ site.description }}" />
<meta name="twitter:image" content="{{ pic }}" /> <meta name="twitter:image" content="{{- pic -}}" />
<meta property="og:title" content="{{ title }}" /> <meta property="og:title" content="{{ title }}" />
<meta property="og:description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}" /> <meta property="og:description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}" />
<meta property="og:image" content="{{ pic }}"> <meta property="og:image" content="{{- pic -}}">
<meta property="article:published_time" content="{{page.date}}" /> <meta property="article:published_time" content="{{page.date}}" />
<!-- page.modified isn't a natural Jekyll property, but it can be added. --> <!-- page.modified isn't a natural Jekyll property, but it can be added. -->
@ -66,6 +50,6 @@
<!-- CSS --> <!-- CSS -->
<link href="{{ site.baseurl }}/assets/css/index.css" rel="stylesheet"> <link href="/assets/css/index.css" rel="stylesheet">
</head> </head>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 508 KiB

After

Width:  |  Height:  |  Size: 173 KiB