diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 26 | ||||
| -rw-r--r-- | templates/bike.html | 10 | ||||
| -rw-r--r-- | templates/index.html | 29 | ||||
| -rw-r--r-- | templates/page.html | 12 | ||||
| -rw-r--r-- | templates/resume.html | 10 | ||||
| -rw-r--r-- | templates/tags/list.html | 12 | ||||
| -rw-r--r-- | templates/tags/single.html | 14 |
7 files changed, 32 insertions, 81 deletions
diff --git a/templates/base.html b/templates/base.html index ba2afdb..729abb9 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,24 +1,28 @@ -<!DOCTYPE HTML> -<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ lang }}" xml:lang="{{ lang }}"> +<!doctype html> +<html + xmlns="http://www.w3.org/1999/xhtml" + lang="{{ lang }}" + xml:lang="{{ lang }}" +> <head> <meta charset="utf-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> + <meta + name="viewport" + content="width=device-width, initial-scale=1, user-scalable=no" + /> <link rel="canonical" href="{{- current_url|safe -}}" /> <link rel="stylesheet" href="/css/custom.css" /> - <link rel="stylesheet" href="/css/carousel.css" /> <meta name="author" content="{{- config.author -}}" /> - <meta name="description" content="{%- block description -%}{{- config.description -}}{%- endblock description -%}" /> - <link rel="alternate" type="application/atom+xml" title="Blog posts" href="{{ get_url(path="/feed.xml", trailing_slash=false) }}" /> - <script src="/js/carousel.js"></script> + <meta + name="description" + content="{%- block description -%}{{- config.description -}}{%- endblock description -%}" + /> <title>{% block title %}{{- config.title -}}{% endblock title %}</title> </head> <body> - <main> - {% block content %}{% endblock content %} - </main> + <main>{% block content %}{% endblock content %}</main> </body> - </html> diff --git a/templates/bike.html b/templates/bike.html deleted file mode 100644 index db8634a..0000000 --- a/templates/bike.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends "base.html" %} - -{% block title %}{{ page.title }} - {{ config.title }}{% endblock title %} - -{% block content -%} -<h1>{{- page.title -}}</h1> - -{{ page.content | safe -}} - -{%- endblock content -%} diff --git a/templates/index.html b/templates/index.html index 43b50d1..0425f26 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,14 +1,15 @@ -{% extends "base.html" %} - -{%- block content -%} - -{% if section.content %} - {{ section.content | safe }} -{% endif %} - -{% set blogtags = get_taxonomy(kind="tags") %} -{% for tag in blogtags.items %} - <a href="{{ get_taxonomy_url(kind="tags", name=tag.name) }}">#{{ tag.name }}</a> -{% endfor %} - -{%- endblock content -%} +{% extends "base.html" %} {%- block content -%} {% if section.content %} {{ +section.content | safe }} {% endif %} + +<hr /> + +{%- for post in section.pages -%} +<section> + <ul class="post-list"> + <li> + <a href="{{- post.path|safe -}}">{{- post.title -}}</a> + <span class="post-date">{{ post.date | date(format="%d %h %Y")}}</span> + </li> + </ul> +</section> +{%- endfor -%} {%- endblock content -%} diff --git a/templates/page.html b/templates/page.html index 94b39ac..e027d8f 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,17 +1,9 @@ -{% extends "base.html" %} - -{% block title %}{{ page.title }} - {{ config.title }}{% endblock title %} - -{% block content -%} +{% extends "base.html" %} {% block title %}{{ page.title }} - {{ config.title +}}{% endblock title %} {% block content -%} <h1>{{ page.title }}</h1> <div class="metadata"> <span class="date">{{ page.date | date(format="%Y-%m-%d") }}</span> - {%- if page.taxonomies.tags -%} - / {% for tag in page.taxonomies.tags %} - <span class="tag"><a href="{{ get_taxonomy_url(kind="tags", name=tag) }}">#{{ tag }}</a></span> - {% endfor %} - {%- endif -%} </div> {{ page.content | safe -}} diff --git a/templates/resume.html b/templates/resume.html deleted file mode 100644 index db8634a..0000000 --- a/templates/resume.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends "base.html" %} - -{% block title %}{{ page.title }} - {{ config.title }}{% endblock title %} - -{% block content -%} -<h1>{{- page.title -}}</h1> - -{{ page.content | safe -}} - -{%- endblock content -%} diff --git a/templates/tags/list.html b/templates/tags/list.html deleted file mode 100644 index b7f904a..0000000 --- a/templates/tags/list.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -<h1>Tags</h1> -<ul> - {% for term in terms %} - <li> - <a href="{{ term.permalink }}">{{ term.name }}</a> ({{ term.pages | length }} posts) - </li> - {% endfor %} -</ul> -{% endblock content %} diff --git a/templates/tags/single.html b/templates/tags/single.html deleted file mode 100644 index 31432e4..0000000 --- a/templates/tags/single.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -<h1>#{{ term.name }}</h1> -<section> -<ul class="post-list"> -{% for page in term.pages %} - <li> - <a href="{{ page.permalink }}">{{ page.title }}</a> - <span class="post-date">{{ page.date | date(format="%d %h %Y")}}</span> - </li> -{% endfor %} -</ul> -{% endblock content %} |
