summaryrefslogtreecommitdiff
path: root/pyssg.xyz/plt
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-12-13 00:11:16 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-12-13 00:11:16 -0600
commitdb4b3736d4f45137a733ce5eb1e50aec968ca1d2 (patch)
treea68b12886c8fbf9952c19a4f3cc7f819a6913bfe /pyssg.xyz/plt
parentca643e729e585d4077c0e84de97a020d04bf551a (diff)
update pyssg.xyz site files
Diffstat (limited to 'pyssg.xyz/plt')
-rw-r--r--pyssg.xyz/plt/base.html44
-rw-r--r--pyssg.xyz/plt/body_footer.html27
-rw-r--r--pyssg.xyz/plt/body_header.html21
-rw-r--r--pyssg.xyz/plt/highlightjs.html9
-rw-r--r--pyssg.xyz/plt/root_index.html31
-rw-r--r--pyssg.xyz/plt/rss.xml10
6 files changed, 137 insertions, 5 deletions
diff --git a/pyssg.xyz/plt/base.html b/pyssg.xyz/plt/base.html
new file mode 100644
index 0000000..8f9fbdc
--- /dev/null
+++ b/pyssg.xyz/plt/base.html
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html class="theme-dark" lang="{%block html_lang%}{%endblock html_lang%}"
+ prefix="og: https://ogp.me/ns#">
+ <head>
+ <base href="{{config['url']['static']}}">
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <link rel="icon" href="images/icons/favicon.ico">
+ {%block head_title%}{%endblock head_title%}
+ {%block head_description%}{%endblock head_description%}
+ {%block head_rss%}{%endblock head_rss%}
+
+ <!-- general style -->
+ <link rel="stylesheet" type="text/css" href="css/style.css">
+ <link rel="stylesheet" type="text/css" href="fork-awesome/css/fork-awesome.min.css">
+ <link rel="stylesheet" type="text/css" href="font-awesome/css/all.min.css">
+
+ <!-- theme related -->
+ <script type="text/javascript" src="scripts/theme.js"></script>
+ <link id="theme-css" rel="stylesheet" type="text/css" href="css/theme.css">
+
+ <!-- extra -->>
+ {%block head_extra%}{%endblock head_extra%}
+
+ <!-- og meta -->
+ {%block head_og%}{%endblock head_og%}
+ </head>
+
+ <body>
+ <header>
+ {%import "body_header.html" as body_header%}
+ {{body_header.print(config)}}
+ </header>
+
+ <main>
+ {%block body_content%}{%endblock body_content%}
+ </main>
+
+ <footer>
+ {%import "body_footer.html" as body_footer%}
+ {{body_footer.print(config)}}
+ </footer>
+ </body>
+</html> \ 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..1bcf4c6
--- /dev/null
+++ b/pyssg.xyz/plt/body_footer.html
@@ -0,0 +1,27 @@
+{%macro print(config)%}
+<span>
+ <i class="fas fa-address-card" alt="Contact"></i>
+ <a href="{{config['url']['main']}}/contact.html">Contact</a>
+</span>
+
+<span>
+ <i class="fas fa-donate" alt="Donate"></i>
+ <a href="{{config['url']['main']}}/donate.html">Donate</a>
+</span>
+
+<span>
+ <i class="fas fa-rss" alt="RSS"></i>
+ <a target="_blank" href="{{config['url']['main']}}/rss.xml">RSS</a>
+</span>
+
+<br>
+<span class="created-with">
+ <i class="fas fa-hammer" alt="Hammer"></i>
+ Created with <a href="https://github.com/luevano/pyssg">pyssg</a>
+</span>
+
+<br>
+<span class="copyright">
+ Copyright <i class="far fa-copyright" alt="Copyright"></i> 2023 David Luévano Alvarado
+</span>
+{%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)%}
+<nav>
+ <ul>
+ <li>
+ <a href="{{config['url']['main']}}"><i class="fas fa-home" alt="Home"></i><span>Home</span></a>
+ </li>
+
+ <li><i class="fab fa-git" alt="Git"></i><span>Git</span>
+ <ul>
+ <li><a href="https://git.luevano.xyz/" target="_blank"><i class="fab fa-git-alt" alt="Git-alt"></i></a></li>
+
+ <li><a href="https://github.com/luevano" target="_blank"><i class="fab fa-github" alt="Github"></i></a></li>
+
+ <li><a href="https://gitlab.com/dluevano" target="_blank"><i class="fab fa-gitlab" alt="Gitlab"></i></a></li>
+ </ul>
+ </li>
+ </ul>
+</nav>
+
+<button class="theme-switcher" onclick="toggleTheme()"><i class="fas fa-moon"></i><i class="fas fa-sun"></i></button>
+{%endmacro%} \ No newline at end of file
diff --git a/pyssg.xyz/plt/highlightjs.html b/pyssg.xyz/plt/highlightjs.html
new file mode 100644
index 0000000..0a1ded3
--- /dev/null
+++ b/pyssg.xyz/plt/highlightjs.html
@@ -0,0 +1,9 @@
+{%macro print()%}
+<!-- highlight support for code blocks -->
+<script type="text/javascript" src="hl/highlight.min.js"></script>
+{%block gdscript_hl%}{%endblock gdscript_hl%}
+<script type="text/javascript">
+ hljs.initHighlightingOnLoad();
+</script>
+<link id="code-theme-css" rel="stylesheet" type="text/css" href="hl/styles/nord.min.css">
+{%endmacro%} \ No newline at end of file
diff --git a/pyssg.xyz/plt/root_index.html b/pyssg.xyz/plt/root_index.html
new file mode 100644
index 0000000..73cd8a0
--- /dev/null
+++ b/pyssg.xyz/plt/root_index.html
@@ -0,0 +1,31 @@
+{%extends "base.html"%}
+{%block html_lang%}{{config['lang']}}{%endblock html_lang%}
+{%block head_title%}
+<title>{{config['title']}}</title>
+{%endblock head_title%}
+{%block head_description%}
+<meta name="description" content="{{config['description']}}"/>
+{%endblock head_description%}
+{%block head_rss%}
+<link rel="alternate" type="application/rss+xml" href="{{config['url']['main']}}/rss.xml" title="{{config['title']}} RSS">
+{%endblock head_rss%}
+{%block head_og%}
+ <meta property="og:title" content="{{config['title']}}"/>
+ <meta property="og:type" content="article"/>
+ <meta property="og:url" content="{{config['url']['main']}}/index.html"/>
+ <meta property="og:image" content="{{config['url']['static']}}{{config['url']['default_image']}}"/>
+ <meta property="og:description" content="{{config['description']}}"/>
+ <meta property="og:locale" content="{{config['lang']}}"/>
+ <meta property="og:site_name" content="{{config['title']}}"/>
+{%endblock head_og%}
+{%block body_content%}
+ <h1>{{config['info']['title']}}</h1>
+
+ <p>
+ Welcome to the official pyssg website. This is as of now serving as a testing ground when I'm making changes to it.
+ </p>
+
+ <p>
+ Get the RSS feed: <a target="_blank" href="{{config['url']['main']}}/rss.xml">{{config['url']['main']}}/rss.xml</a>
+ </p>
+{%endblock body_content%}
diff --git a/pyssg.xyz/plt/rss.xml b/pyssg.xyz/plt/rss.xml
index 6a3eb00..cc6c8fd 100644
--- a/pyssg.xyz/plt/rss.xml
+++ b/pyssg.xyz/plt/rss.xml
@@ -6,19 +6,19 @@
<title>{{config['title']}}</title>
<link>{{config['url']['main']}}</link>
<atom:link href="{{config['url']['main']}}/rss.xml" rel="self" type="application/rss+xml"/>
- <description>Short site description.</description>
+ <description>{{config['description']}}</description>
<language>en-us</language>
<category>Blog</category>
- <copyright>Copyright 2021 Somebody</copyright>
- <managingEditor>some@one.com (Sombody)</managingEditor>
- <webMaster>some@one.com (Sombody)</webMaster>
+ <copyright>Copyright 2023 {{config['author']}}</copyright>
+ <managingEditor>{{config['author_email']}} ({{config['author']}})</managingEditor>
+ <webMaster>{{config['author_email']}} ({{config['author']}})</webMaster>
<pubDate>{{config['info']['rss_run_date']}}</pubDate>
<lastBuildDate>{{config['info']['rss_run_date']}}</lastBuildDate>
<generator>pyssg v{{config['info']['version']}}</generator>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<ttl>30</ttl>
<image>
- <url>{{config['url']['static']}}/images/blog.png</url>
+ <url>{{config['url']['static']}}/{{config['url']['default_image']}}</url>
<title>{{config['title']}}</title>
<link>{{config['url']['main']}}</link>
</image>