Setup dynamic page titles, plus a comma
This commit is contained in:
parent
2384bf3440
commit
d81b0912a8
2 changed files with 10 additions and 2 deletions
|
|
@ -4,7 +4,15 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Incandescência</title>
|
||||
{%- set title_tail = " ~ " ~ config.title %}
|
||||
{%- if page.title %}
|
||||
{%- set title = page.title ~ title_tail %}
|
||||
{%- elif section.title %}
|
||||
{%- set title = section.title ~ title_tail %}
|
||||
{%- else %}
|
||||
{%- set title = config.title %}
|
||||
{%- endif %}
|
||||
<title>{{ title }}</title>
|
||||
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
|
||||
<link href="{{ get_url(path="assets/css/overrides.css") }}" rel="stylesheet">
|
||||
<script defer src="https://stats.jutty.dev/script.js" data-website-id="d83c2773-91fb-4b30-a9fb-30cfb34500d3"></script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue