You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.9 KiB
HTML
53 lines
1.9 KiB
HTML
2 years ago
|
{% import "macros/macros.html" as post_macros %}
|
||
|
<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">
|
||
|
|
||
|
{# Site title #}
|
||
|
{% set current_path = current_path | default(value="/") %}
|
||
|
{% if current_path == "/" %}
|
||
|
<title>
|
||
|
{{ config.title }}
|
||
|
|
||
|
|
||
|
</title>
|
||
|
{% else %}
|
||
|
<title>
|
||
|
{{ page.title | default(value=config.title) | default(value="Post") }}
|
||
|
</title>
|
||
|
{% endif %}
|
||
|
|
||
|
{# Favicon #}
|
||
|
{% if config.extra.favicon %}
|
||
|
<link rel="icon" type="image/png" href={{ config.extra.favicon }} />
|
||
|
{% endif %}
|
||
|
|
||
|
{# Font from cdn or disk #}
|
||
|
{% if config.extra.use_cdn | default(value=false) %}
|
||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jetbrains-mono@1.0.6/css/jetbrains-mono.min.css">
|
||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/space-grotesk@4.5.8/index.min.css">
|
||
|
{% else %}
|
||
|
<link href={{ get_url(path="fonts.css") }} rel="stylesheet" />
|
||
|
{% endif %}
|
||
|
|
||
|
{# if need icon, load feather.js #}
|
||
|
{% if config.extra.social and config.extra.useCDN | default(value=false) %}
|
||
|
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
||
|
{% elif config.extra.social or config.extra.mode == "toggle" %}
|
||
|
<script src={{ get_url(path="js/feather.min.js") }}></script>
|
||
|
{% endif %}
|
||
|
|
||
|
{# RSS #}
|
||
|
<link rel="alternate" type="application/atom+xml" title="{{ config.title }}" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
|
||
|
|
||
|
|
||
|
<link rel="stylesheet" type="text/css" media="screen" href={{ get_url(path="no-style-please.css") }} />
|
||
|
|
||
|
|
||
|
{% if config.extra.stylesheets %}
|
||
|
{% for stylesheet in config.extra.stylesheets %}
|
||
|
<link rel="stylesheet" href="{{ get_url(path=stylesheet) }}">
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
</head>
|