Add preliminary support for generating some gopher type content
This commit is contained in:
parent
4d9dd71207
commit
0ae6d2164d
@ -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
16
gopher/all.gph
Normal 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
26
gopher/index.gph
Normal 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
16
gopher/tags/index.gph
Normal 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 %}
|
Loading…
Reference in New Issue
Block a user