Add preliminary support for generating some gopher type content

This commit is contained in:
R Tyler Croy 2020-08-01 15:16:35 -07:00
parent 4d9dd71207
commit 0ae6d2164d
No known key found for this signature in database
GPG Key ID: E5C92681BEF6CEA2
4 changed files with 64 additions and 0 deletions

View File

@ -12,6 +12,12 @@ plugins:
- jekyll-include-cache
- jekyll-seo-tag
gopher:
feed: false
tags: true
gophermap: _gopher/index.gph
base_path: /blog
lsi: false
exclude:
- README.markdown

16
gopher/all.gph Normal file
View File

@ -0,0 +1,16 @@
---
layout: nil
---
Welcome to my blog!
This content is effectively a mirror of of the content hosted at
https://brokenco.de/
-------------------------------------------------------------------------------
{% for post in site.posts -%}
[0|{{post.date | date_to_string }}: {{post.title}}|{{site['gopher']['base_path']}}{{post.path | remove_first: '_posts'}}]
{% endfor -%}

26
gopher/index.gph Normal file
View File

@ -0,0 +1,26 @@
---
layout: nil
---
Welcome to my blog!
This content is effectively a mirror of of the content hosted at
https://brokenco.de/
[1|Tags|/blog/tags]
-------------------------------------------------------------------------------
Latest posts:
{% for post in site.posts limit: 10 -%}
[0|{{post.date | date_to_string }}: {{post.title}}|{{site['gopher']['base_path']}}{{post.path | remove_first: '_posts'}}]
{% endfor -%}
-------------------------------------------------------------------------------
[1|Full archive|/blog/all]

16
gopher/tags/index.gph Normal file
View File

@ -0,0 +1,16 @@
---
layout: nil
---
This file lists all the blog posts organized by their tags
{% assign categories = site.tags | sort %}
{% for category in categories %}
{% capture category_name %}{{ category | first }}{% endcapture %}
{{category_name}}
{% for post in site.tags[category_name] -%}
[0|{{post.title}}|{{post.path}}]
{% endfor -%}
{% endfor %}