diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2023-12-18 19:41:51 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-01-03 03:05:23 -0500 |
| commit | 5562e320736812d1ad309cfaf73383512a87858d (patch) | |
| tree | d93569bd8831f4ea5b90719a61a9d1b217e76b0f /.templates | |
| parent | 27d5717529bf0e7d5806982f1970603bad998eaf (diff) | |
Migrate to Hugo.
This is a big and somewhat complicated decision, but the crux of it is this:
The _mkdocs_ tool embeds a ton of "I am writing a manual" assumptions about document structure.
These assumptions include that there is a single, sitewide TOC, that a top nav bar is broadly an appropriate way to skip around in the document, and numerous others. They serve that use case well, but that's not really what this site _is_, or how I intend it to be approached. I'm trying for something more blog-esque (and deliberately a bit haphazard).
Hugo is an experiment. This commit migrates most pages to it, but it does drop a few; this is a convenient excuse to forget items I'd prefer not to continue publishing.
Diffstat (limited to '.templates')
| -rw-r--r-- | .templates/base.html | 66 | ||||
| -rw-r--r-- | .templates/document.html | 12 | ||||
| -rw-r--r-- | .templates/listing.html | 44 |
3 files changed, 0 insertions, 122 deletions
diff --git a/.templates/base.html b/.templates/base.html deleted file mode 100644 index 6ce453d..0000000 --- a/.templates/base.html +++ /dev/null @@ -1,66 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <title> - {% block title_prefix -%} - {% if 'wiki-name' in config %}{{ config['wiki-name']|e }} » {% endif %} - {%- endblock %} - {% block title -%} - {{ title }} - {%- endblock %} - </title> - - <link - rel='stylesheet' - type='text/css' - href='//fonts.googleapis.com/css?family=Buenard:400,700&subset=latin,latin-ext'> - <link - rel="stylesheet" - type="text/css" - href="{{ make_relative('/media/css/reset.css') }}"> - <link - rel="stylesheet" - type="text/css" - href="{{ make_relative('/media/css/grimoire.css') }}"> - <link - rel="stylesheet" - type="text/css" - href="{{ make_relative('/media/css/codehilite.css') }}"> -</head> -<body> - -<div id="shell"> - {% if crumbs %} - <ol id="breadcrumbs"> - {% for name, href in crumbs %} - <li class="crumb-{{ loop.index0 }} {% if loop.last %}last{% else %}not-last{% endif %}"> - {% if not href %} - {{ name|e }} - {% else %} - <a href="{{ make_relative(href)|e }}">{{ name|e }}</a> - {% endif %} - </li> - {% endfor %} - </ol> - {% endif %} - - {% block content %} - {% endblock %} - - {% block footer %} - <div id="footer"> - <p>Questions? Comments? Feedback? <a href="mailto:owen+blog@grimoire.ca">Email me</a>!</p> - <p> - {% if 'wiki-name' in config %} - {{ config['wiki-name']|e }} — - {% endif %} - Powered by <a href="https://github.com/zacharyvoase/markdoc">Markdoc</a>. - {% block scm_info %} - <a href="https://github.org/grimoire-ca/bliki">See it on Github</a>. - {% endblock %} - </p> - </div> - {% endblock %} -</div> -</body> -</html> diff --git a/.templates/document.html b/.templates/document.html deleted file mode 100644 index 602b9ec..0000000 --- a/.templates/document.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends 'base.html' %} - -{% block content %} -<div id="article"> - {{ content }} -</div> -{% endblock %} - -{% block scm_info %} -<a href="https://github.com/grimoire-ca/bliki/blob/main/wiki/{{ path }}.md">See this page on Github</a> (<a - href="https://github.com/grimoire-ca/bliki/commits/main/wiki/{{ path }}.md">history</a>). -{% endblock %}
\ No newline at end of file diff --git a/.templates/listing.html b/.templates/listing.html deleted file mode 100644 index 3a52505..0000000 --- a/.templates/listing.html +++ /dev/null @@ -1,44 +0,0 @@ -{% extends 'base.html' %} - -{% block title %}ls /{{ directory|e }}{% endblock %} - -{% block content %} -<div id="listing"> - <h1><code>ls /{{ directory|e }}</code></h1> - - {% if sub_directories %} - <div id="directories"> - <h2>Directories</h2> - <ul> - {% for dir in sub_directories %} - <li><a href="{{ make_relative(dir.href) }}">{{ dir.basename|e }}/</a></li> - {% endfor %} - </ul> - </div> - {% endif %} - - {% if pages %} - <div id="pages"> - <h2>Pages</h2> - <ul> - {% for page in pages %} - <li><a href="{{ make_relative(page.href) }}">{{ page.title }}</a></li> - {% endfor %} - </ul> - </div> - {% endif %} - - {% if files %} - <div id="files"> - <h2>Files</h2> - {% for file in files %} - <li><a href="{{ make_relative(file.href) }}">{{ file.basename|e }}</a></li> - {% endfor %} - </div> - {% endif %} -</div> -{% endblock %} - -{% block scm_info %} -<a href="https://github.com/grimoire-ca/bliki/tree/main/wiki/{{ directory }}">See this directory on Github</a>. -{% endblock %}
\ No newline at end of file |
