From 7e49db5ddefe8c515b5f3931a5c701efaac33d91 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Fri, 16 Dec 2022 17:45:03 -0600 Subject: change structure for new pyssg version --- plt/blog/index.html | 60 ++++++++++++++++++++++++++++++++++++ plt/blog/page.html | 81 +++++++++++++++++++++++++++++++++++++++++++++++++ plt/blog/page_list.html | 15 +++++++++ plt/blog/tag.html | 54 +++++++++++++++++++++++++++++++++ 4 files changed, 210 insertions(+) create mode 100644 plt/blog/index.html create mode 100644 plt/blog/page.html create mode 100644 plt/blog/page_list.html create mode 100644 plt/blog/tag.html (limited to 'plt/blog') diff --git a/plt/blog/index.html b/plt/blog/index.html new file mode 100644 index 0000000..e9a03cf --- /dev/null +++ b/plt/blog/index.html @@ -0,0 +1,60 @@ +{%extends "base.html"%} + +{%block html_lang%} +{{config['lang']}} +{%endblock html_lang%} + +{%block head_title%} +Index -- {{config['title']}} +{%endblock head_title%} + +{%block head_description%} + +{%endblock head_description%} + +{%block head_rss%} + +{%endblock head_rss%} + +{%block head_extra%} +{%endblock head_extra%} + +{%block head_og%} + + + + + + + +{%endblock head_og%} + +{%block body_header%} +{%import 'body/header.html' as body_header%} +{{body_header.print(config)}} +{%endblock body_header%} + +{%block body_content%} +

Index -- {{config['title']}}

+ +

Welcome to my blog where I'll post whatever I please, ranging from rants to how-to's. Además, este pex va a estar en español e inglés porque quiero (no una mezcla en cada entrada, pero sí entradas completas en diferentes lenguajes).

+ +

Get the RSS feed: {{config['url']['main']}}/rss.xml

+ + {%import "tag_list.html" as tag_list%} + {{tag_list.print(all_tags, "article-tags")}} + + {%import "blog/page_list.html" as page_list%} + {{page_list.print("Articles", all_pages)}} +{%endblock body_content%} + +{%block body_footer%} +{%import 'body/footer.html' as body_footer%} +{{body_footer.contact(config)}} +{{body_footer.donate(config)}} +{{body_footer.rss(config)}} +
+{{body_footer.created_with()}} +
+{{body_footer.copyright()}} +{%endblock body_footer%} \ No newline at end of file diff --git a/plt/blog/page.html b/plt/blog/page.html new file mode 100644 index 0000000..71b4cfe --- /dev/null +++ b/plt/blog/page.html @@ -0,0 +1,81 @@ +{%extends "base.html"%} + +{%block html_lang%} +{{config['lang']}} +{%endblock html_lang%} + +{%block head_title%} +{{page.title}} -- {{config['title']}} +{%endblock head_title%} + +{%block head_description%} +{%if page.summary is not none%} + +{%else%} + +{%endif%} +{%endblock head_description%} + +{%block head_rss%} + +{%endblock head_rss%} + +{%block head_extra%} +{%import "highlightjs.html" as hljs%} +{{hljs.print()}} +{%endblock head_extra%} + +{%block gdscript_hl%} + + +{%endblock gdscript_hl%} + +{%block head_og%} + + + + +{%if page.summary is not none%} + +{%else%} + +{%endif%} + + +{%endblock head_og%} + +{%block body_header%} +{%import 'body/header.html' as body_header%} +{{body_header.print(config)}} +{%endblock body_header%} + +{%block body_content%} +

{{page.title}}

+ + {{page.content}} + + {%import "page_nav.html" as page_nav%} + {{page_nav.print(page, config, "page-nav")}} + +
+
+

By {{', '.join(page.author)}}

+

Created: {{page.cdate}}

+ {%if page.mdate is not none%} +

Modified: {{page.mdate}}

+ {%endif%} + {%import "tag_list.html" as tag_list%} + {{tag_list.print(page.tags, "article-tags")}} +
+{%endblock body_content%} + +{%block body_footer%} +{%import 'body/footer.html' as body_footer%} +{{body_footer.contact(config)}} +{{body_footer.donate(config)}} +{{body_footer.rss(config)}} +
+{{body_footer.created_with()}} +
+{{body_footer.copyright()}} +{%endblock body_footer%} \ No newline at end of file diff --git a/plt/blog/page_list.html b/plt/blog/page_list.html new file mode 100644 index 0000000..b818884 --- /dev/null +++ b/plt/blog/page_list.html @@ -0,0 +1,15 @@ +{%macro print(name, pages)%} +

{{name}}

+ +{%endmacro%} diff --git a/plt/blog/tag.html b/plt/blog/tag.html new file mode 100644 index 0000000..ec826bf --- /dev/null +++ b/plt/blog/tag.html @@ -0,0 +1,54 @@ +{%extends "base.html"%} + +{%block html_lang%} +{{config['lang']}} +{%endblock html_lang%} + +{%block head_title%} +Posts filtered by {{tag[0]}} -- {{config['title']}} +{%endblock head_title%} + +{%block head_description%} + +{%endblock head_description%} + +{%block head_rss%} + +{%endblock head_rss%} + +{%block head_extra%} +{%endblock head_extra%} + +{%block head_og%} + + + + + + + +{%endblock head_og%} + +{%block body_header%} +{%import 'body/header.html' as body_header%} +{{body_header.print(config)}} +{%endblock body_header%} + +{%block body_content%} +

Posts filtered by {{tag[0]}}

+ + {%import "blog/page_list.html" as page_list%} + {{page_list.print("Articles", tag_pages)}} + +{%endblock body_content%} + +{%block body_footer%} +{%import 'body/footer.html' as body_footer%} +{{body_footer.contact(config)}} +{{body_footer.donate(config)}} +{{body_footer.rss(config)}} +
+{{body_footer.created_with()}} +
+{{body_footer.copyright()}} +{%endblock body_footer%} \ No newline at end of file -- cgit v1.2.3-70-g09d2