feat: Improve metadata, add blog descriptions

This commit is contained in:
daudix-UFO
2023-10-19 23:50:28 +00:00
parent 6242b721f2
commit bb7b4ead29
11 changed files with 112 additions and 105 deletions

View File

@ -3,23 +3,34 @@
<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>{% block title %}{{ config.title }}{% endblock title %}</title>
<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="{{ config.base_url }}/favicon.gif" />
<link rel="icon" type="image/gif" href="{{ get_url(path='favicon.gif') }}" />
{% else %}
<link rel="icon" type="image/png" href="{{ config.base_url }}/favicon.png" />
<link rel="icon" type="image/png" href="{{ get_url(path='favicon.png') }}" />
{% endif %}
<link rel="apple-touch-icon" sizes="180x180" href="{{ config.base_url }}/apple-touch-icon.png" />
<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:title" content="{{ config.title }}" />
<meta property="og:url" content="{{ config.base_url }}" />
<meta property="og:description" content="{{ config.description }}" />
<meta property="og:image" content="{{ config.base_url }}/card.png" />
<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>