From abc0de079b895af1b705894eb2b63596e3e37274 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Tue, 13 Dec 2022 20:44:08 -0600 Subject: add pyssg.xyz configs and templates --- pyssg.xyz/plt/base.html | 12 +++------- pyssg.xyz/plt/body/footer.html | 33 ++++++++++++++++++++++++++++ pyssg.xyz/plt/body/header.html | 21 ++++++++++++++++++ pyssg.xyz/plt/body_footer.html | 27 ----------------------- pyssg.xyz/plt/body_header.html | 21 ------------------ pyssg.xyz/plt/root_index.html | 31 -------------------------- pyssg.xyz/plt/root_page.html | 50 ++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 107 insertions(+), 88 deletions(-) create mode 100644 pyssg.xyz/plt/body/footer.html create mode 100644 pyssg.xyz/plt/body/header.html delete mode 100644 pyssg.xyz/plt/body_footer.html delete mode 100644 pyssg.xyz/plt/body_header.html delete mode 100644 pyssg.xyz/plt/root_index.html create mode 100644 pyssg.xyz/plt/root_page.html (limited to 'pyssg.xyz/plt') diff --git a/pyssg.xyz/plt/base.html b/pyssg.xyz/plt/base.html index 8f9fbdc..d5cb77b 100644 --- a/pyssg.xyz/plt/base.html +++ b/pyssg.xyz/plt/base.html @@ -9,27 +9,22 @@ {%block head_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%}
- {%import "body_header.html" as body_header%} - {{body_header.print(config)}} + {%block body_header%}{%endblock body_header%}
@@ -37,8 +32,7 @@
\ No newline at end of file diff --git a/pyssg.xyz/plt/body/footer.html b/pyssg.xyz/plt/body/footer.html new file mode 100644 index 0000000..32dcaf0 --- /dev/null +++ b/pyssg.xyz/plt/body/footer.html @@ -0,0 +1,33 @@ +{%macro contact(config)%} + + + Contact + +{%endmacro%} + +{%macro donate(config)%} + + + Donate + +{%endmacro%} + +{%macro rss(config)%} + + + RSS + +{%endmacro%} + +{%macro created_with()%} + + + Created with pyssg + +{%endmacro%} + +{%macro copyright()%} + + Copyright 2023 David Luévano Alvarado + +{%endmacro%} \ No newline at end of file diff --git a/pyssg.xyz/plt/body/header.html b/pyssg.xyz/plt/body/header.html new file mode 100644 index 0000000..9b38511 --- /dev/null +++ b/pyssg.xyz/plt/body/header.html @@ -0,0 +1,21 @@ +{%macro print(config)%} + + + +{%endmacro%} \ No newline at end of file diff --git a/pyssg.xyz/plt/body_footer.html b/pyssg.xyz/plt/body_footer.html deleted file mode 100644 index 1bcf4c6..0000000 --- a/pyssg.xyz/plt/body_footer.html +++ /dev/null @@ -1,27 +0,0 @@ -{%macro print(config)%} - - - Contact - - - - - Donate - - - - - RSS - - -
- - - Created with pyssg - - -
- - Copyright 2023 David Luévano Alvarado - -{%endmacro%} \ No newline at end of file diff --git a/pyssg.xyz/plt/body_header.html b/pyssg.xyz/plt/body_header.html deleted file mode 100644 index 9b38511..0000000 --- a/pyssg.xyz/plt/body_header.html +++ /dev/null @@ -1,21 +0,0 @@ -{%macro print(config)%} - - - -{%endmacro%} \ No newline at end of file diff --git a/pyssg.xyz/plt/root_index.html b/pyssg.xyz/plt/root_index.html deleted file mode 100644 index 73cd8a0..0000000 --- a/pyssg.xyz/plt/root_index.html +++ /dev/null @@ -1,31 +0,0 @@ -{%extends "base.html"%} -{%block html_lang%}{{config['lang']}}{%endblock html_lang%} -{%block head_title%} -{{config['title']}} -{%endblock head_title%} -{%block head_description%} - -{%endblock head_description%} -{%block head_rss%} - -{%endblock head_rss%} -{%block head_og%} - - - - - - - -{%endblock head_og%} -{%block body_content%} -

{{config['info']['title']}}

- -

- Welcome to the official pyssg website. This is as of now serving as a testing ground when I'm making changes to it. -

- -

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

-{%endblock body_content%} diff --git a/pyssg.xyz/plt/root_page.html b/pyssg.xyz/plt/root_page.html new file mode 100644 index 0000000..7d04d98 --- /dev/null +++ b/pyssg.xyz/plt/root_page.html @@ -0,0 +1,50 @@ +{%extends "base.html"%} + +{%block html_lang%} +{{config['lang']}} +{%endblock html_lang%} + +{%block head_title%} +{{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%} +

{{page.title}}

+ + {{page.content}} +{%endblock body_content%} + +{%block body_footer%} +{%import 'body/footer.html' as body_footer%} +{{body_footer.contact(config)}} +{{body_footer.donate(config)}} +
+{{body_footer.created_with()}} +
+{{body_footer.copyright()}} +{%endblock body_footer%} \ No newline at end of file -- cgit v1.2.3-54-g00ecf