Refactor config reading code
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{% if page.label %}{{ page.label }} — {% endif %}{{ site.name }}{% if page.page_num > 1 %} — Page {{ page.page_num }}{% endif %}{% endblock %}
|
||||
{% block title %}{% if page.label %}{{ page.label }} — {% endif %}{{ site.config.name }}{% if page.page_num > 1 %} — Page {{ page.page_num }}{% endif %}{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
{% if page.page_num > 1 %}<meta name="robots" content="noindex, follow">{% endif %}
|
||||
@@ -12,12 +12,12 @@
|
||||
{% block breadcrumb %}
|
||||
{% if page.kind == "section" %}
|
||||
<nav aria-label="breadcrumb">
|
||||
<a href="{{ site.home_url() }}">{{ site.name }}</a> ›
|
||||
<a href="{{ site.home_url() }}">{{ site.config.name }}</a> ›
|
||||
{{ page.label }}
|
||||
</nav>
|
||||
{% elif page.kind == "tag" %}
|
||||
<nav aria-label="breadcrumb">
|
||||
<a href="{{ site.home_url() }}">{{ site.name }}</a> ›
|
||||
<a href="{{ site.home_url() }}">{{ site.config.name }}</a> ›
|
||||
<a href="{{ site.tags_url() }}">Tags</a> ›
|
||||
{{ page.label }}
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user