From 135c6380ad381762c89276bed4b8736e235529ff Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Fri, 4 Jun 2021 22:18:12 -0600 Subject: move plt dir to be included in data --- ChangeLog | 1 + plt/index.html | 32 -------------------------------- plt/page.html | 25 ------------------------- plt/rss.xml | 39 --------------------------------------- plt/sitemap.xml | 22 ---------------------- plt/tag.html | 26 -------------------------- pyssgrc | 2 +- src/pyssg/plt/index.html | 32 ++++++++++++++++++++++++++++++++ src/pyssg/plt/page.html | 25 +++++++++++++++++++++++++ src/pyssg/plt/rss.xml | 39 +++++++++++++++++++++++++++++++++++++++ src/pyssg/plt/sitemap.xml | 22 ++++++++++++++++++++++ src/pyssg/plt/tag.html | 26 ++++++++++++++++++++++++++ 12 files changed, 146 insertions(+), 145 deletions(-) delete mode 100644 plt/index.html delete mode 100644 plt/page.html delete mode 100644 plt/rss.xml delete mode 100644 plt/sitemap.xml delete mode 100644 plt/tag.html create mode 100644 src/pyssg/plt/index.html create mode 100644 src/pyssg/plt/page.html create mode 100644 src/pyssg/plt/rss.xml create mode 100644 src/pyssg/plt/sitemap.xml create mode 100644 src/pyssg/plt/tag.html diff --git a/ChangeLog b/ChangeLog index a51fb5a..f6e6eb0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ CHANGES ======= +* refactor and add support for jinija * just include changelog v0.4.1 diff --git a/plt/index.html b/plt/index.html deleted file mode 100644 index c96db3b..0000000 --- a/plt/index.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - Index -- {{site_title}} - - -

Index -- {{site_title}}

-

Some text here.

- -

Tags: - {%for t in all_tags%} - {{t[0]}}{{", " if not loop.last else ""}} - {%endfor%} -

- -

Articles

- - - diff --git a/plt/page.html b/plt/page.html deleted file mode 100644 index fefaaa6..0000000 --- a/plt/page.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - {{page.title}} -- {{site_title}} - - -

{{page.title}}

-

By {{page.author}}

-

Created: {{page.cdate}}

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

Modified: {{page.mdate}}

- {%endif%} - - {{page.content}} - -

Tags: - {%for t in page.tags%} - {{t[0]}}{{", " if not loop.last else ""}} - {%endfor%} -

- - - diff --git a/plt/rss.xml b/plt/rss.xml deleted file mode 100644 index 99b2b49..0000000 --- a/plt/rss.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - {{site_title}} - {{site_base_url}} - - Short site description. - en-us - Blog - Copyright 2021 Somebody - some@one.com (Sombody) - some@one.com (Sombody) - {{run_date}} - {{run_date}} - pyssg v{{pyssg_version}} - https://validator.w3.org/feed/docs/rss2.html - 30 - - {{site_base_static_url}}/images/blog.png - {{site_title}} - {{site_base_url}} - - {%for p in all_pages%} - - {{p.title}} - {{p.url}} - {{p.url}} - {{p.cdate_rss}} - {%for t in p.tags%} - {{t[0]}} - {%endfor%} - {{p.summary}} - - - {%endfor%} - - diff --git a/plt/sitemap.xml b/plt/sitemap.xml deleted file mode 100644 index a5b5404..0000000 --- a/plt/sitemap.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - {%for p in all_pages%} - - {{p.url}} - {{p.mdate_sitemap if p.mdate_sitemap else p.cdate_sitemap}} - weekly - 1.0 - - {%endfor%} - - {%for t in all_tags%} - - {{t[1]}} - {{run_date}} - daily - 0.5 - - {%endfor%} - diff --git a/plt/tag.html b/plt/tag.html deleted file mode 100644 index 2fdc27b..0000000 --- a/plt/tag.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - Posts filtered by {{tag[0]}} -- {{site_title}} - - -

Posts filtered by {{tag[0]}}

-

Some text here.

- -

Articles

- - - diff --git a/pyssgrc b/pyssgrc index 2e8f895..96e77f4 100644 --- a/pyssgrc +++ b/pyssgrc @@ -1,6 +1,6 @@ SRC_PATH=e_src DST_PATH=e_dst -PLT_PATH=plt +PLT_PATH=src/pyssg/plt BASE_URL=https://blog.luevano.xyz BASE_STATIC_URL=https://static.luevano.xyz TITLE=Luévano's Blog diff --git a/src/pyssg/plt/index.html b/src/pyssg/plt/index.html new file mode 100644 index 0000000..c96db3b --- /dev/null +++ b/src/pyssg/plt/index.html @@ -0,0 +1,32 @@ + + + + + + Index -- {{site_title}} + + +

Index -- {{site_title}}

+

Some text here.

+ +

Tags: + {%for t in all_tags%} + {{t[0]}}{{", " if not loop.last else ""}} + {%endfor%} +

+ +

Articles

+ + + diff --git a/src/pyssg/plt/page.html b/src/pyssg/plt/page.html new file mode 100644 index 0000000..fefaaa6 --- /dev/null +++ b/src/pyssg/plt/page.html @@ -0,0 +1,25 @@ + + + + + + {{page.title}} -- {{site_title}} + + +

{{page.title}}

+

By {{page.author}}

+

Created: {{page.cdate}}

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

Modified: {{page.mdate}}

+ {%endif%} + + {{page.content}} + +

Tags: + {%for t in page.tags%} + {{t[0]}}{{", " if not loop.last else ""}} + {%endfor%} +

+ + + diff --git a/src/pyssg/plt/rss.xml b/src/pyssg/plt/rss.xml new file mode 100644 index 0000000..99b2b49 --- /dev/null +++ b/src/pyssg/plt/rss.xml @@ -0,0 +1,39 @@ + + + + {{site_title}} + {{site_base_url}} + + Short site description. + en-us + Blog + Copyright 2021 Somebody + some@one.com (Sombody) + some@one.com (Sombody) + {{run_date}} + {{run_date}} + pyssg v{{pyssg_version}} + https://validator.w3.org/feed/docs/rss2.html + 30 + + {{site_base_static_url}}/images/blog.png + {{site_title}} + {{site_base_url}} + + {%for p in all_pages%} + + {{p.title}} + {{p.url}} + {{p.url}} + {{p.cdate_rss}} + {%for t in p.tags%} + {{t[0]}} + {%endfor%} + {{p.summary}} + + + {%endfor%} + + diff --git a/src/pyssg/plt/sitemap.xml b/src/pyssg/plt/sitemap.xml new file mode 100644 index 0000000..a5b5404 --- /dev/null +++ b/src/pyssg/plt/sitemap.xml @@ -0,0 +1,22 @@ + + + {%for p in all_pages%} + + {{p.url}} + {{p.mdate_sitemap if p.mdate_sitemap else p.cdate_sitemap}} + weekly + 1.0 + + {%endfor%} + + {%for t in all_tags%} + + {{t[1]}} + {{run_date}} + daily + 0.5 + + {%endfor%} + diff --git a/src/pyssg/plt/tag.html b/src/pyssg/plt/tag.html new file mode 100644 index 0000000..2fdc27b --- /dev/null +++ b/src/pyssg/plt/tag.html @@ -0,0 +1,26 @@ + + + + + + Posts filtered by {{tag[0]}} -- {{site_title}} + + +

Posts filtered by {{tag[0]}}

+

Some text here.

+ +

Articles

+ + + -- cgit v1.2.3-70-g09d2