Files
blog/templates/includes/head.html
2023-10-19 23:50:28 +00:00

37 lines
1.7 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" />
<meta name="theme-color" content="{{ config.extra.primary_color }}" />
<link rel="canonical" href="{{ current_url | default(value='/') }}" />
<title>
{% if page.title %} {{ page.title }} - {{ config.title }}
{% elif section.title %} {{ section.title }} - {{ config.title }}
{% else %} {{ config.title }} {% endif %}
</title>
<link href="{{ get_url(path='style.css') }}" rel="stylesheet" />
{% if config.extra.stylesheets %}
{% for stylesheet in config.extra.stylesheets %}
<link href="{{ get_url(path=stylesheet) }}" rel="stylesheet">
{% endfor %}
{% endif %}
<link href="{{ get_url(path='custom.css') }}" rel="stylesheet" />
{% if config.extra.animated_favicon %}
<link rel="icon" type="image/gif" href="{{ get_url(path='favicon.gif') }}" />
{% else %}
<link rel="icon" type="image/png" href="{{ get_url(path='favicon.png') }}" />
{% endif %}
<link rel="apple-touch-icon" sizes="180x180" href="{{ get_url(path='apple-touch-icon.png') }}" />
<link rel="me" href="https://{{ config.extra.comments.host }}/@{{ config.extra.comments.user }}" />
<!-- Open Graph -->
<meta property="og:site_name" content="{{ config.title }}" />
<meta property="og:title" content="{{ page.title | default(value=config.title) }}" />
<meta property="og:url" content="{{ current_url | default(value='/') }}" />
<meta property="og:description" content="{{ page.description | default(value=config.description) }}" />
<meta property="og:image" content="{{ get_url(path='card.png') }}" />
</head>