diff options
author | Ethel Morgan <eth@ethulhu.co.uk> | 2020-07-06 18:23:10 +0100 |
---|---|---|
committer | Ethel Morgan <eth@ethulhu.co.uk> | 2020-07-06 18:23:10 +0100 |
commit | b1e6491f77421ae4623391a7f53af7f3e6c13f34 (patch) | |
tree | acc4ce7ae214b92dbf2c269c70e94b68dac1d640 /src/writings.thrust | |
parent | 04be5845dbaa6f8dec45a80dbe199861608b96f2 (diff) |
import website from previous repo
Diffstat (limited to 'src/writings.thrust')
-rw-r--r-- | src/writings.thrust | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/writings.thrust b/src/writings.thrust new file mode 100644 index 0000000..0220274 --- /dev/null +++ b/src/writings.thrust @@ -0,0 +1,31 @@ +--- +title: writings +subtitle: stories & fiction +pages: + - writings/piracy + - writings/aissist + - writings/helena + - writings/chair + - writings/bruges + - writings/chesham +--- +{% extends 'templates/base.html' %} +{% block body %} + <nav> + <a href='/'>> index</a> + </nav> + + <header> + <h1>{{ title }}</h1> + <p>{{ subtitle }}</p> + </header> + + <nav> + <ul> + {% for path in pages %} + {% set thrust = ( 'src/' + path + '.thrust' ) | loadthrust %} + <li><a href='/{{ path }}''>{{ thrust.data.title }} ({{ ( ( ( thrust.data.body | wordcount ) / 10.0 ) | round | int ) * 10 }} words)</li> + {% endfor %} + </ul> + </nav> +{% endblock %} |