summaryrefslogblamecommitdiffstatshomepage
path: root/templates/base.html
blob: 180e3118d04ea67cfd49c6d6f17fd3725e88af28 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                     
 

                                            
               
                                            

                                                                   

                                            

             
                                                      
 


                


                                                           


                                                                                                        


                                                                                                                          







                                                                                     














                                                                                             





                                                           
{% import "macros.html" as macros -%}

{%- set description = config.description -%}

{%- if page -%}
	{%- set description = page.title -%}
{%- elif term -%}
	{%- set description = "posts tagged with #" ~ term.name -%}
{%- elif terms -%}
	{%- set description = "all tags" -%}
{%- endif -%}

{%- set title = title | default(value=description) -%}

<!DOCTYPE html>
<html lang="en">
	<head>
		<title>
			{{ config.title ~ " · " ~ title }}
		</title>
		<link rel="stylesheet" href="/style.css"/>
		<link rel="icon" href="/icon.svg"/>
		<link rel="alternate" type="application/atom+xml" title="zunzuncito" href="/atom.xml" />
		{% if term -%}
		<link rel="alternate" type="application/atom+xml" title="zunzuncito - #{{ term.name }}" href="atom.xml" />
		{% endif -%}
		<meta charset="utf-8"/>
		<meta name="viewport" content="width=device-width, initial-scale=1"/>
	</head>
	<body>
		<main>
			<header>
				<h1><a href="/">{{ config.title }}</a></h1>
				<div class="banner smaller">
					<span class="description">
						{{ description }}
					</span>
				{%- if section or term %}
					<nav class="links">
						<ul class="inline">
						{%- if section %}
							<li><a href="/atom.xml">feed</a></li>
							<li><a href="/tags">tags</a></li>
						{%- elif term %}
							<li><a href="atom.xml">feed</a></li>
						{%- endif %}
						</ul>
					</nav>
				{%- endif %}
				</div>
			</header>
			{%- block content %}{% endblock -%}
		</main>
	</body>
</html>