From 3a2d198d153efc8a69e7640f7dcde88207268ff3 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 22 Sep 2023 08:40:59 +0200 Subject: Replace zola with DOM-based static site generation code --- themes/bear/templates/404.html | 8 -- themes/bear/templates/base.html | 30 ----- themes/bear/templates/footer.html | 5 - themes/bear/templates/header.html | 11 -- themes/bear/templates/index.html | 7 -- themes/bear/templates/nav.html | 6 - themes/bear/templates/page.html | 29 ----- themes/bear/templates/section.html | 34 ----- themes/bear/templates/security_tags.html | 2 - themes/bear/templates/seo_tags.html | 2 - themes/bear/templates/style.css | 193 ----------------------------- themes/bear/templates/style.css.html | 1 - themes/bear/templates/taxonomy_list.html | 14 --- themes/bear/templates/taxonomy_single.html | 34 ----- 14 files changed, 376 deletions(-) delete mode 100644 themes/bear/templates/404.html delete mode 100644 themes/bear/templates/base.html delete mode 100644 themes/bear/templates/footer.html delete mode 100644 themes/bear/templates/header.html delete mode 100644 themes/bear/templates/index.html delete mode 100644 themes/bear/templates/nav.html delete mode 100644 themes/bear/templates/page.html delete mode 100644 themes/bear/templates/section.html delete mode 100644 themes/bear/templates/security_tags.html delete mode 100644 themes/bear/templates/seo_tags.html delete mode 100644 themes/bear/templates/style.css delete mode 120000 themes/bear/templates/style.css.html delete mode 100644 themes/bear/templates/taxonomy_list.html delete mode 100644 themes/bear/templates/taxonomy_single.html (limited to 'themes/bear/templates') diff --git a/themes/bear/templates/404.html b/themes/bear/templates/404.html deleted file mode 100644 index 15fd75c..0000000 --- a/themes/bear/templates/404.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "base.html" %} - -{% block title %}404{% endblock %} - -{% block main %} -

404

-

ʕノ•ᴥ•ʔノ ︵ ┻━┻

-{% endblock %} diff --git a/themes/bear/templates/base.html b/themes/bear/templates/base.html deleted file mode 100644 index 3845773..0000000 --- a/themes/bear/templates/base.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - {%- if config.webserver_sends_csp_headers %} - {%- include "security_tags.html" ignore missing %} - {%- endif %} - - - {%- if config.extra.favicon %} - - {%- endif %} - {%- block title %}{{ config.title }}{%- endblock %} - - {%- if config.generate_feed %} - {% block rss -%} - - {%- endblock -%} - {%- endif %} - - {% include "custom_head.html" ignore missing -%} - - - {% include "header.html" ignore missing -%} - {% block main %}{%- endblock -%} - {% include "footer.html" ignore missing -%} - {% include "custom_body.html" ignore missing -%} - - diff --git a/themes/bear/templates/footer.html b/themes/bear/templates/footer.html deleted file mode 100644 index c952a93..0000000 --- a/themes/bear/templates/footer.html +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/themes/bear/templates/header.html b/themes/bear/templates/header.html deleted file mode 100644 index 55c1756..0000000 --- a/themes/bear/templates/header.html +++ /dev/null @@ -1,11 +0,0 @@ - -
-

- - {{- config.title -}} - -

- -
{{ "" -}} diff --git a/themes/bear/templates/index.html b/themes/bear/templates/index.html deleted file mode 100644 index 6caf1d5..0000000 --- a/themes/bear/templates/index.html +++ /dev/null @@ -1,7 +0,0 @@ -{% extends "base.html" %} - -{% block main %} -
- {{ section.content | safe }} -
-{% endblock %} diff --git a/themes/bear/templates/nav.html b/themes/bear/templates/nav.html deleted file mode 100644 index fe5fdd6..0000000 --- a/themes/bear/templates/nav.html +++ /dev/null @@ -1,6 +0,0 @@ - Home -{%- if config.extra.main_menu %} - {%- for item in config.extra.main_menu %} - {{ item.name }} - {%- endfor %} -{%- endif -%} diff --git a/themes/bear/templates/page.html b/themes/bear/templates/page.html deleted file mode 100644 index 93611b5..0000000 --- a/themes/bear/templates/page.html +++ /dev/null @@ -1,29 +0,0 @@ -{% extends "base.html" %} - -{% block title %}{{ page.title }} | {{ super() }}{% endblock %} - -{% block main %} - {%- if not page.extra.menu %} -

{{ page.title }}

- {%- if page.date %} -

- -

- {%- endif %} - {%- endif %} -
- {{ page.content | trim | safe }} -
- -{% endblock %} diff --git a/themes/bear/templates/section.html b/themes/bear/templates/section.html deleted file mode 100644 index f633036..0000000 --- a/themes/bear/templates/section.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends "base.html" %} - -{% block main %} -
- {%- if taxonomy.term %} -

Filtering for "{{ section.title }}"

- - Remove filter - - {%- endif %} - - -
-{% endblock %} diff --git a/themes/bear/templates/security_tags.html b/themes/bear/templates/security_tags.html deleted file mode 100644 index 0f922ea..0000000 --- a/themes/bear/templates/security_tags.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/themes/bear/templates/seo_tags.html b/themes/bear/templates/seo_tags.html deleted file mode 100644 index 4eb2bc8..0000000 --- a/themes/bear/templates/seo_tags.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/themes/bear/templates/style.css b/themes/bear/templates/style.css deleted file mode 100644 index e1e12aa..0000000 --- a/themes/bear/templates/style.css +++ /dev/null @@ -1,193 +0,0 @@ -body { - font-family: Verdana, sans-serif; - margin: auto; - padding: 20px; - max-width: 720px; - text-align: left; - background-color: #fff; - word-wrap: break-word; - overflow-wrap: break-word; - line-height: 1.5; - color: #444; -} - -.skip { - position: absolute; - top: -3em; - background: #fff; -} -.skip:focus { - top: 0; -} - -h1, -h2, -h3, -h4, -h5, -h6, -strong, -b { - color: #222; -} - -a { - color: #3273dc; -} - -.title { - color: #222; - text-decoration: none; - border: 0; -} - -time { - font-style: italic; -} - -.title span { - font-weight: 400; -} - -nav a { - margin-right: 10px; -} - -.tags { - padding: unset; - font-size: small; -} - -.tags > li { - list-style: none; - display: inline-block; -} - -textarea { - width: 100%; - font-size: 1rem; -} - -input { - font-size: 1rem; -} - -main,article { - line-height: 1.6; -} - -table { - width: 100%; -} - -img { - max-width: 100%; -} - -code { - padding: 2px 5px; - background-color: #f2f2f2; -} - -pre code { - color: #222; - display: block; - padding: 20px; - white-space: pre-wrap; - font-size: 0.875rem; - overflow-x: auto; -} - -div.highlight pre { - background-color: initial; - color: initial; -} - -div.highlight code { - background-color: unset; - color: unset; -} - -blockquote { - border-left: 1px solid #999; - color: #222; - padding-left: 20px; - font-style: italic; -} - -footer { - padding: 25px; - text-align: center; -} - -.helptext { - color: #777; - font-size: small; -} - -.errorlist { - color: #eba613; - font-size: small; -} - -/* blog posts */ -ul.blog-posts { - list-style-type: none; - padding: unset; -} - -ul.blog-posts li { - display: flex; -} - -ul.blog-posts li span { - flex: 0 0 130px; -} - -ul.blog-posts li a:visited { - color: #8b6fcb; -} - -@media (prefers-color-scheme: dark) { - body { - background-color: #333; - color: #ddd; - } - - h1, - h2, - h3, - h4, - h5, - h6, - strong, - b { - color: #eee; - } - - a { - color: #8cc2dd; - } - - code { - background-color: #777; - } - - pre code { - color: #ddd; - } - - blockquote { - color: #ccc; - } - - textarea, - input { - background-color: #252525; - color: #ddd; - } - - .helptext { - color: #aaa; - } -} diff --git a/themes/bear/templates/style.css.html b/themes/bear/templates/style.css.html deleted file mode 120000 index f6b71cc..0000000 --- a/themes/bear/templates/style.css.html +++ /dev/null @@ -1 +0,0 @@ -style.css \ No newline at end of file diff --git a/themes/bear/templates/taxonomy_list.html b/themes/bear/templates/taxonomy_list.html deleted file mode 100644 index abf4294..0000000 --- a/themes/bear/templates/taxonomy_list.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "base.html" %} - -{% block main %} -
- -
- {% set tags = get_taxonomy(kind="tags") %} - {% for post in tags.items %} - #{{ post.name }}  - {% endfor %} -
-
-
-{% endblock %} diff --git a/themes/bear/templates/taxonomy_single.html b/themes/bear/templates/taxonomy_single.html deleted file mode 100644 index a96139c..0000000 --- a/themes/bear/templates/taxonomy_single.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends "base.html" %} - -{% block rss -%} - - {%- set rss_path = "/tags/" ~ term.name ~ "/" ~ config.feed_filename %} - -{%- endblock -%} - -{% block main -%} -
- {%- if taxonomy.term %} -

Filtering for "{{ term.name }}"

- - Remove filter - - {%- endif %} - -
-{% endblock %} -- cgit 1.4.1