From 8461a3b8d48bc772ef449e37e5c98ffc254930fe Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado <david@luevano.xyz> Date: Wed, 14 Dec 2022 22:02:30 -0600 Subject: add new files for pyssg.xyz, add multiple document support --- pyssg.xyz/plt/blog/index.html | 32 ++++++++++++++++++++++++++++++++ pyssg.xyz/plt/blog/page.html | 25 +++++++++++++++++++++++++ pyssg.xyz/plt/blog/tag.html | 26 ++++++++++++++++++++++++++ pyssg.xyz/plt/index.html | 32 -------------------------------- pyssg.xyz/plt/page.html | 25 ------------------------- pyssg.xyz/plt/tag.html | 26 -------------------------- 6 files changed, 83 insertions(+), 83 deletions(-) create mode 100644 pyssg.xyz/plt/blog/index.html create mode 100644 pyssg.xyz/plt/blog/page.html create mode 100644 pyssg.xyz/plt/blog/tag.html delete mode 100644 pyssg.xyz/plt/index.html delete mode 100644 pyssg.xyz/plt/page.html delete mode 100644 pyssg.xyz/plt/tag.html (limited to 'pyssg.xyz/plt') diff --git a/pyssg.xyz/plt/blog/index.html b/pyssg.xyz/plt/blog/index.html new file mode 100644 index 0000000..96d66ef --- /dev/null +++ b/pyssg.xyz/plt/blog/index.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <base href="{{config['url']['static']}}"> + <title>Index -- {{config['title']}}</title> + </head> + <body> + <h1>Index -- {{config['title']}}</h1> + <p>Some text here.</p> + + <p>Tags: + {%for t in all_tags%} + <a href="{{t[1]}}">{{t[0]}}</a>{{", " if not loop.last else ""}} + {%endfor%} + </p> + + <h2>Articles</h2> + <ul> + {%for p in all_pages%} + {%if loop.previtem%} + {%if loop.previtem.cdate_list_sep !=p.cdate_list_sep%} + <h3>{{p.cdate_list_sep}}</h3> + {%endif%} + {%else%} + <h3>{{p.cdate_list_sep}}</h3> + {%endif%} + <li>{{p.cdate_list}} - <a href="{{p.url}}">{{p.title}}</a></li> + {%endfor%} + </ul> + </body> +</html> diff --git a/pyssg.xyz/plt/blog/page.html b/pyssg.xyz/plt/blog/page.html new file mode 100644 index 0000000..d7f5e43 --- /dev/null +++ b/pyssg.xyz/plt/blog/page.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html lang="{{page.lang}}"> + <head> + <meta charset="utf-8"> + <base href="{{config['url']['static']}}"> + <title>{{page.title}} -- {{config['title']}}</title> + </head> + <body> + <h1>{{page.title}}</h1> + <p>By {{page.author}}</p> + <p>Created: {{page.cdate}}</p> + {%if page.mdate is not none%} + <p>Modified: {{page.mdate}}</p> + {%endif%} + + {{page.content}} + + <p>Tags: + {%for t in page.tags%} + <a href="{{t[1]}}">{{t[0]}}</a>{{", " if not loop.last else ""}} + {%endfor%} + </p> + </body> +</html> + diff --git a/pyssg.xyz/plt/blog/tag.html b/pyssg.xyz/plt/blog/tag.html new file mode 100644 index 0000000..59cbdf1 --- /dev/null +++ b/pyssg.xyz/plt/blog/tag.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <base href="{{config['url']['static']}}"> + <title>Posts filtered by {{tag[0]}} -- {{config['title']}}</title> + </head> + <body> + <h1>Posts filtered by {{tag[0]}}</h1> + <p>Some text here.</p> + + <h2>Articles</h2> + <ul> + {%for p in tag_pages%} + {%if loop.previtem%} + {%if loop.previtem.cdate_list_sep !=p.cdate_list_sep%} + <h3>{{p.cdate_list_sep}}</h3> + {%endif%} + {%else%} + <h3>{{p.cdate_list_sep}}</h3> + {%endif%} + <li>{{p.cdate_list}} - <a href="{{p.url}}">{{p.title}}</a></li> + {%endfor%} + </ul> + </body> +</html> diff --git a/pyssg.xyz/plt/index.html b/pyssg.xyz/plt/index.html deleted file mode 100644 index 96d66ef..0000000 --- a/pyssg.xyz/plt/index.html +++ /dev/null @@ -1,32 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> - <head> - <meta charset="utf-8"> - <base href="{{config['url']['static']}}"> - <title>Index -- {{config['title']}}</title> - </head> - <body> - <h1>Index -- {{config['title']}}</h1> - <p>Some text here.</p> - - <p>Tags: - {%for t in all_tags%} - <a href="{{t[1]}}">{{t[0]}}</a>{{", " if not loop.last else ""}} - {%endfor%} - </p> - - <h2>Articles</h2> - <ul> - {%for p in all_pages%} - {%if loop.previtem%} - {%if loop.previtem.cdate_list_sep !=p.cdate_list_sep%} - <h3>{{p.cdate_list_sep}}</h3> - {%endif%} - {%else%} - <h3>{{p.cdate_list_sep}}</h3> - {%endif%} - <li>{{p.cdate_list}} - <a href="{{p.url}}">{{p.title}}</a></li> - {%endfor%} - </ul> - </body> -</html> diff --git a/pyssg.xyz/plt/page.html b/pyssg.xyz/plt/page.html deleted file mode 100644 index d7f5e43..0000000 --- a/pyssg.xyz/plt/page.html +++ /dev/null @@ -1,25 +0,0 @@ -<!DOCTYPE html> -<html lang="{{page.lang}}"> - <head> - <meta charset="utf-8"> - <base href="{{config['url']['static']}}"> - <title>{{page.title}} -- {{config['title']}}</title> - </head> - <body> - <h1>{{page.title}}</h1> - <p>By {{page.author}}</p> - <p>Created: {{page.cdate}}</p> - {%if page.mdate is not none%} - <p>Modified: {{page.mdate}}</p> - {%endif%} - - {{page.content}} - - <p>Tags: - {%for t in page.tags%} - <a href="{{t[1]}}">{{t[0]}}</a>{{", " if not loop.last else ""}} - {%endfor%} - </p> - </body> -</html> - diff --git a/pyssg.xyz/plt/tag.html b/pyssg.xyz/plt/tag.html deleted file mode 100644 index 59cbdf1..0000000 --- a/pyssg.xyz/plt/tag.html +++ /dev/null @@ -1,26 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> - <head> - <meta charset="utf-8"> - <base href="{{config['url']['static']}}"> - <title>Posts filtered by {{tag[0]}} -- {{config['title']}}</title> - </head> - <body> - <h1>Posts filtered by {{tag[0]}}</h1> - <p>Some text here.</p> - - <h2>Articles</h2> - <ul> - {%for p in tag_pages%} - {%if loop.previtem%} - {%if loop.previtem.cdate_list_sep !=p.cdate_list_sep%} - <h3>{{p.cdate_list_sep}}</h3> - {%endif%} - {%else%} - <h3>{{p.cdate_list_sep}}</h3> - {%endif%} - <li>{{p.cdate_list}} - <a href="{{p.url}}">{{p.title}}</a></li> - {%endfor%} - </ul> - </body> -</html> -- cgit v1.2.3-70-g09d2