1
0
Fork 0
website/templates/partials/head.html

28 lines
No EOL
1.4 KiB
HTML

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="alternate" type="application/rss+xml" href="{{base_url | safe}}atom.xml" title="{{ site_title }}">
{% if tag_slug -%}
<link rel="alternate" type="application/rss+xml" href="{{base_url | safe}}tags/{{ tag_slug }}/atom.xml" title="{{ site_title }}: Posts tagged #{{ tag_slug }}">
{%- endif %}
<link rel="stylesheet" href="{{base_url | safe}}static/site.css">
<link rel="icon" type="image/png" href="{{base_url | safe}}static/avatar.png" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@tollyx" />
<meta name="twitter:creator" content="@tollyx" />
<meta name="twitter:dnt" content="on">
<meta property="og:type" content="website">
<meta property="og:site_name" content="{{ site_title }}" />
<meta property="og:image" content="{{base_url | safe}}avatar.png" />
{% if page.title -%}
<meta property="og:title" content="{{ page.title }} - {{ site_title }}" />
<title>{{ page.title }} | {{ site_title }}</title>
{%- elif tag -%}
<meta property="og:title" content="#{{ tag.slug }} - {{ site_title }}" />
<title>#{{ tag.slug }} | {{ site_title }}</title>
{%- else -%}
<meta property="og:title" content="{{ site_title }}" />
<title>{{ site_title }}</title>
{%- endif %}
</head>