diff options
Diffstat (limited to 'themes/xmin/templates')
-rw-r--r-- | themes/xmin/templates/base.html | 25 | ||||
l--------- | themes/xmin/templates/categories/list.html | 1 | ||||
l--------- | themes/xmin/templates/categories/single.html | 1 | ||||
-rw-r--r-- | themes/xmin/templates/index.html | 36 | ||||
-rw-r--r-- | themes/xmin/templates/page.html | 28 | ||||
-rw-r--r-- | themes/xmin/templates/section.html | 18 | ||||
-rw-r--r-- | themes/xmin/templates/tags/list.html | 18 | ||||
-rw-r--r-- | themes/xmin/templates/tags/single.html | 25 |
8 files changed, 152 insertions, 0 deletions
diff --git a/themes/xmin/templates/base.html b/themes/xmin/templates/base.html new file mode 100644 index 0000000..6b99609 --- /dev/null +++ b/themes/xmin/templates/base.html | |||
@@ -0,0 +1,25 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html lang="{{ config.default_language }}"> | ||
3 | <head> | ||
4 | <meta charset="utf-8"> | ||
5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
6 | <title {%- if current_path == '/' %} class="p-name"{% endif %}>{% block title %}{{ section.title }} | {{ config.title }}{% endblock %}</title> | ||
7 | <link rel="stylesheet" href="/css/style.css" /> | ||
8 | {%- if config.generate_feed %} | ||
9 | {%- block rss %} | ||
10 | <link rel="alternate" type={% if config.feed_filename == "atom.xml" %}"application/atom+xml"{% else %}"application/rss+xml"{% endif %} title="RSS" href="{{ get_url(path=config.feed_filename) | safe }}"> | ||
11 | {%- endblock %} | ||
12 | {%- endif %} | ||
13 | </head> | ||
14 | <body> | ||
15 | <nav> | ||
16 | <ul> | ||
17 | {%- for item in config.extra.menu.main %} | ||
18 | <li><a {%- if item.url == "/" %} class="author"{% endif %} href="{{ item.url | safe }}">{{ item.name }}</a></li> | ||
19 | {%- endfor %} | ||
20 | </ul> | ||
21 | </nav> | ||
22 | {% block main %}{% endblock %} | ||
23 | <footer>{{ config.extra.footer | safe }}</footer> | ||
24 | </body> | ||
25 | </html> | ||
diff --git a/themes/xmin/templates/categories/list.html b/themes/xmin/templates/categories/list.html new file mode 120000 index 0000000..e0e4e08 --- /dev/null +++ b/themes/xmin/templates/categories/list.html | |||
@@ -0,0 +1 @@ | |||
../tags/list.html \ No newline at end of file | |||
diff --git a/themes/xmin/templates/categories/single.html b/themes/xmin/templates/categories/single.html new file mode 120000 index 0000000..86f5e80 --- /dev/null +++ b/themes/xmin/templates/categories/single.html | |||
@@ -0,0 +1 @@ | |||
../tags/single.html \ No newline at end of file | |||
diff --git a/themes/xmin/templates/index.html b/themes/xmin/templates/index.html new file mode 100644 index 0000000..23ec4cd --- /dev/null +++ b/themes/xmin/templates/index.html | |||
@@ -0,0 +1,36 @@ | |||
1 | {% extends "base.html" %} | ||
2 | |||
3 | {% block main %} | ||
4 | <main class="h-card"> | ||
5 | <h1 class="p-name">{{ config.title }}</h1> | ||
6 | {{ section.content | safe }} | ||
7 | <section> | ||
8 | <h2>Latest Posts</h2> | ||
9 | <ul class="h-feed"> | ||
10 | {%- for page in section.pages | slice(end=3) %} | ||
11 | <li class="h-entry"> | ||
12 | <time class="dt-published" datetime="{{ page.date | date(format="%+") }}">{{ page.date | date(format="%F") }}</time> | ||
13 | <a class="u-url p-name" href="{{ page.path | safe }}">{{ page.title }}</a> | ||
14 | </li> | ||
15 | {%- endfor %} | ||
16 | </ul> | ||
17 | </section> | ||
18 | <section> | ||
19 | <h2>Elsewhere on the Internet</h2> | ||
20 | <ul> | ||
21 | {%- for item in config.extra.menu.contact %} | ||
22 | <li> | ||
23 | {%- if item.url is starting_with("mailto:") %} | ||
24 | <a href="{{ item.url | safe }}" class="u-email email" rel="me">{{ item.name }}</a> | ||
25 | {%- else %} | ||
26 | <a href="{{ item.url | safe }}" class="u-url url" rel="me">{{ item.name }}</a> | ||
27 | {%- endif %} | ||
28 | </li> | ||
29 | {%- endfor %} | ||
30 | </ul> | ||
31 | </section> | ||
32 | <footer> | ||
33 | GPG Key: <a href="{{ config.extra.gpg_url | safe }}" rel="u-key pgpkey">{{ config.extra.gpg_fingerprint }}</a> | ||
34 | </footer> | ||
35 | </main> | ||
36 | {% endblock %} | ||
diff --git a/themes/xmin/templates/page.html b/themes/xmin/templates/page.html new file mode 100644 index 0000000..f32a6fc --- /dev/null +++ b/themes/xmin/templates/page.html | |||
@@ -0,0 +1,28 @@ | |||
1 | {% extends "base.html" %} | ||
2 | |||
3 | {% block title %} | ||
4 | {{- page.title -}} | ||
5 | {% endblock %} | ||
6 | |||
7 | {% block main %} | ||
8 | <article class="h-entry"> | ||
9 | <header> | ||
10 | <h1><span class="title p-name">{{ page.title }}</span></h1> | ||
11 | <time class="dt-published" datetime="{{ page.date | date(format='%+') }}">{{ page.date | date(format="%F") }}</time> | ||
12 | <p class="terms"> | ||
13 | {%- if page.taxonomies %} | ||
14 | {%- for name, taxon in page.taxonomies %} | ||
15 | {{ name | capitalize }}: | ||
16 | {%- for item in taxon %} | ||
17 | <a class="p-category" href="{{ get_taxonomy_url(kind=name, name=item) }}">{{ item }}</a> | ||
18 | {%- endfor %} | ||
19 | {%- endfor %} | ||
20 | {%- endif %} | ||
21 | </p> | ||
22 | </header> | ||
23 | |||
24 | <main class="e-content"> | ||
25 | {{ page.content | safe }} | ||
26 | </main> | ||
27 | </article> | ||
28 | {% endblock %} | ||
diff --git a/themes/xmin/templates/section.html b/themes/xmin/templates/section.html new file mode 100644 index 0000000..e61566f --- /dev/null +++ b/themes/xmin/templates/section.html | |||
@@ -0,0 +1,18 @@ | |||
1 | {% extends "base.html" %} | ||
2 | |||
3 | {% block main %} | ||
4 | <main> | ||
5 | <h1>{{ section.title }}</h1> | ||
6 | {{ section.content }} | ||
7 | <section> | ||
8 | <ul> | ||
9 | {% for page in section.pages %} | ||
10 | <li class="h-entry"> | ||
11 | <time class="dt-published" datetime="{{ page.date | date(format="%+") }}">{{ page.date | date(format="%F") }}</time> | ||
12 | <a class="u-url p-name" href="{{ page.path | safe }}">{{ page.title }}</a> | ||
13 | </li> | ||
14 | {% endfor %} | ||
15 | </ul> | ||
16 | </section> | ||
17 | </main> | ||
18 | {% endblock %} | ||
diff --git a/themes/xmin/templates/tags/list.html b/themes/xmin/templates/tags/list.html new file mode 100644 index 0000000..ee60c39 --- /dev/null +++ b/themes/xmin/templates/tags/list.html | |||
@@ -0,0 +1,18 @@ | |||
1 | {% extends "base.html" %} | ||
2 | |||
3 | {% block title %}{{ taxonomy.name | capitalize }}{% endblock %} | ||
4 | |||
5 | {% block main %} | ||
6 | <main> | ||
7 | <h1>{{ taxonomy.name | capitalize }}</h1> | ||
8 | <section> | ||
9 | <ul> | ||
10 | {%- for term in terms %} | ||
11 | <li> | ||
12 | <a href="{{ term.permalink }}">{{ term.name }}</a> | ||
13 | </li> | ||
14 | {%- endfor %} | ||
15 | </ul> | ||
16 | </section> | ||
17 | </main> | ||
18 | {% endblock %} | ||
diff --git a/themes/xmin/templates/tags/single.html b/themes/xmin/templates/tags/single.html new file mode 100644 index 0000000..25dde54 --- /dev/null +++ b/themes/xmin/templates/tags/single.html | |||
@@ -0,0 +1,25 @@ | |||
1 | {% extends "base.html" %} | ||
2 | |||
3 | {% block rss %} | ||
4 | {% set rss_path = "tags/" ~ term.name ~ "/atom.xml" %} | ||
5 | <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path=rss_path, trailing_slash=false) | safe }}"> | ||
6 | |||
7 | {% endblock %} | ||
8 | |||
9 | {% block title %}{{ taxonomy.name | capitalize }}: {{ term.name }} | {{ config.title }}{% endblock %} | ||
10 | |||
11 | {% block main %} | ||
12 | <main> | ||
13 | <h1>{{ taxonomy.name | capitalize }}: {{ term.name }}</h1> | ||
14 | <section> | ||
15 | <ul class="h-feed"> | ||
16 | {%- for page in term.pages %} | ||
17 | <li class="h-entry"> | ||
18 | <time class="dt-published" datetime="{{ page.date | date(format="%+") }}">{{ page.date | date(format="%F") }}</time> | ||
19 | <a class="u-url p-name" href="{{ page.permalink | safe }}">{{ page.title }}</a> | ||
20 | </li> | ||
21 | {%- endfor %} | ||
22 | </ul> | ||
23 | </section> | ||
24 | </main> | ||
25 | {% endblock %} | ||