My OCD is happy.
{% extends "base_blog.html" %}
-{% block head %}
- {{- super() -}}
+{% block head_links %}
{% if articles_page and articles_page.has_previous() %}
<link rel="prev" href="{{ articles_previous_page.url|format_siteurl }}" />
{% endif %}
{% if articles_page and articles_page.has_next() %}
<link rel="next" href="{{ articles_next_page.url|format_siteurl }}" />
{% endif %}
-{% endblock head %}
+{% endblock head_links %}
{% block content %}
<div class="m-col-m-10">
{% for href in M_CSS_FILES %}
<link rel="stylesheet" href="{{ href|format_siteurl|e }}" />
{% endfor %}
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- {% if M_THEME_COLOR %}
- <meta name="theme-color" content="{{ M_THEME_COLOR }}" />
- {% endif %}
+ {% block head_links %}
+ {% endblock head_links %}
{% if FEED_ALL_ATOM_URL %}
<link href="{{ FEED_ALL_ATOM_URL|format_siteurl }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }}" />
{% endif %}
{% if CATEGORY_FEED_ATOM_URL and category %}
<link href="{{ CATEGORY_FEED_ATOM_URL|format(category.slug)|format_siteurl }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} | {{ category }}" />
{% endif %}
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ {% if M_THEME_COLOR %}
+ <meta name="theme-color" content="{{ M_THEME_COLOR }}" />
+ {% endif %}
{% endblock head %}
</head>
<body>
{% extends "base_blog.html" %}
-{% block head %}
- {{- super() -}}
+{% block head_links %}
{% if articles_page.has_previous() %}
<link rel="prev" href="{{ articles_previous_page.url|format_siteurl }}" />
{% endif %}
{% if articles_page.has_next() %}
<link rel="next" href="{{ articles_next_page.url|format_siteurl }}" />
{% endif %}
-{% endblock head %}
+{% endblock head_links %}
{% block content %}
<div class="m-col-m-10">
<meta name="twitter:card" content="summary" />
{% endif %}
<meta property="og:type" content="website" />
+{% endblock %}
+
+{% block head_links %}
+ {{- super() -}}
{% if page.css %}
{% set styles = page.css.strip().split('\n') %}
{% for style in styles %}