summaryrefslogtreecommitdiff
path: root/blog/plt
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2021-06-04 23:50:58 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2021-06-04 23:50:58 -0600
commitb171347f739b2ada7960ad50bcba47e898d890d2 (patch)
treec88d6c3cdfb39b7e8e7cb5ec5952160cd4cf9911 /blog/plt
parentfebe3173b7430266c36508927f3535c431f0aa8b (diff)
reflect changes on updated pyssg using jinja templates
Diffstat (limited to 'blog/plt')
-rw-r--r--blog/plt/base.html108
-rw-r--r--blog/plt/index.html34
-rw-r--r--blog/plt/page.html22
-rw-r--r--blog/plt/rss.xml39
-rw-r--r--blog/plt/sitemap.xml22
-rw-r--r--blog/plt/tag.html18
6 files changed, 243 insertions, 0 deletions
diff --git a/blog/plt/base.html b/blog/plt/base.html
new file mode 100644
index 0000000..9919829
--- /dev/null
+++ b/blog/plt/base.html
@@ -0,0 +1,108 @@
+<!DOCTYPE html>
+{%if page is defined%}
+<html lang="{{page.lang}}">
+{%else%}
+<html lang="en">
+{%endif%}
+ <head>
+ <base href="{{site_base_static_url}}">
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ {%if page is defined%}
+ <title>{{page.title}} -- {{site_title}}</title>
+ {%elif tag is defined%}
+ <title>Posts filtered by {{tag[0]}} -- {{site_title}}</title>
+ {%else%}
+ <title>Index -- {{site_title}}</title>
+ {%endif%}
+ <link rel="alternate" type="application/rss+xml" href="{{site_base_url}}/rss.xml" title="{{site_title}} RSS">
+ <link rel="icon" href="images/icons/favicon.ico">
+
+ <!-- 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">
+
+ <!-- highlight support for code blocks -->
+ <script type="text/javascript" src="hl/highlight.min.js"></script>
+ <script type="text/javascript">hljs.initHighlightingOnLoad();</script>
+
+ <!-- theme related -->
+ <script type="text/javascript" src="scripts/theme.js"></script>
+ <link id="theme-css" rel="stylesheet" type="text/css" href="css/dark.css">
+ <link id="code-theme-css" rel="stylesheet" type="text/css" href="hl/styles/solarized-dark.min.css">
+ </head>
+
+ <body>
+ <header>
+ <nav>
+ <ul>
+ <li>
+ <a href="https://luevano.xyz/"><i class="fas fa-home" alt="Home"></i><span>Home</span></a>
+ </li>
+
+ <li>
+ <a href="https://blog.luevano.xyz/"><i class="fas fa-book-open" alt="Blog"></i><span>Blog</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>
+
+ <li><i class="fas fa-box-open" alt="Stuff"></i><span>Stuff</span>
+ <ul>
+ <li><a href="https://gb.luevano.xyz/"><i class="fas fa-gamepad" alt="Gameboy"></i><span>Gameboy</span></a></li>
+ </ul>
+ </li>
+ </ul>
+ </nav>
+
+ <div class="theme-switch-container">
+ <i class="fas fa-sun"></i>
+ <label class="switch theme">
+ <input id="theme-switch" type="checkbox" onclick="toggleTheme()">
+ <span class="slider round"></span>
+ </label>
+ <i class="fas fa-moon"></i>
+ </div>
+ </header>
+
+ <main>
+ {%block content%}{%endblock content%}
+ </main>
+
+ <footer>
+ <span>
+ <i class="fas fa-address-card" alt="Contact"></i>
+ <a href="https://luevano.xyz/contact.html">Contact</a>
+ </span>
+
+ <span>
+ <i class="fas fa-donate" alt="Donate"></i>
+ <a href="https://luevano.xyz/donate.html">Donate</a>
+ </span>
+
+ <span>
+ <i class="fas fa-rss" alt="RSS"></i>
+ <a href="https://blog.luevano.xyz/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="fal fa-copyright" alt="Copyright"></i> 2021 David Luévano Alvarado
+ </span>
+ </footer>
+ </body>
+</html>
diff --git a/blog/plt/index.html b/blog/plt/index.html
new file mode 100644
index 0000000..7efcf20
--- /dev/null
+++ b/blog/plt/index.html
@@ -0,0 +1,34 @@
+{%extends "base.html"%}
+{%block content%}
+ <h1>Index -- {{site_title}}</h1>
+
+ <p>
+ 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).
+ </p>
+
+ <p>
+ Get the RSS feed: <a target="_blank" href="{{site_base_url}}/rss.xml">{{site_base_url}}/rss.xml</a>
+ </p>
+
+ <div class="article-tags">
+ <p>Tags:
+ {%for t in all_tags%}
+ <a href="{{t[1]}}">{{t[0]}}</a>{{", " if not loop.last else ""}}
+ {%endfor%}
+ </p>
+ </div>
+
+ <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>
+{%endblock content%}
diff --git a/blog/plt/page.html b/blog/plt/page.html
new file mode 100644
index 0000000..a98338e
--- /dev/null
+++ b/blog/plt/page.html
@@ -0,0 +1,22 @@
+{%extends "base.html"%}
+{%block content%}
+ <h1>{{page.title}}</h1>
+
+ {{page.content}}
+
+ <hr>
+ <div class="article-info">
+ <p>By {{page.author}}</p>
+ <p>Created: {{page.cdate}}</p>
+ {%if page.mdate is not none%}
+ <p>Modified: {{page.mdate}}</p>
+ {%endif%}
+ <div class="article-tags">
+ <p>Tags:
+ {%for t in page.tags%}
+ <a href="{{t[1]}}">{{t[0]}}</a>{{", " if not loop.last else ""}}
+ {%endfor%}
+ </p>
+ </div>
+ </div>
+{%endblock content%}
diff --git a/blog/plt/rss.xml b/blog/plt/rss.xml
new file mode 100644
index 0000000..5e06c36
--- /dev/null
+++ b/blog/plt/rss.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<rss version="2.0"
+ xmlns:atom="http://www.w3.org/2005/Atom"
+ xmlns:content="http://purl.org/rss/1.0/modules/content/">
+ <channel>
+ <title>{{site_title}}</title>
+ <link>{{site_base_url}}</link>
+ <atom:link href="{{site_base_url}}/rss.xml" rel="self" type="application/rss+xml"/>
+ <description>A personal weblog ranging from rants to how to's and other thoughts.</description>
+ <language>en-us</language>
+ <category>Blog</category>
+ <copyright>Copyright 2021 David Luévano Alvarado</copyright>
+ <managingEditor>david@luevano.xyz (David Luévano Alvarado)</managingEditor>
+ <webMaster>david@luevano.xyz (David Luévano Alvarado)</webMaster>
+ <pubDate>{{run_date}}</pubDate>
+ <lastBuildDate>{{run_date}}</lastBuildDate>
+ <generator>pyssg v{{pyssg_version}}</generator>
+ <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
+ <ttl>30</ttl>
+ <image>
+ <url>{{site_base_static_url}}/images/blog.png</url>
+ <title>{{site_title}}</title>
+ <link>{{site_base_url}}</link>
+ </image>
+ {%for p in all_pages%}
+ <item>
+ <title>{{p.title}}</title>
+ <link>{{p.url}}</link>
+ <guid isPermaLink="true">{{p.url}}</guid>
+ <pubDate>{{p.cdate_rss}}</pubDate>
+ {%for t in p.tags%}
+ <category>{{t[0].lower().capitalize()}}</category>
+ {%endfor%}
+ <description>{{p.summary}}</description>
+ <content:encoded><![CDATA[{{p.content}}]]></content:encoded>
+ </item>
+ {%endfor%}
+ </channel>
+</rss>
diff --git a/blog/plt/sitemap.xml b/blog/plt/sitemap.xml
new file mode 100644
index 0000000..a5b5404
--- /dev/null
+++ b/blog/plt/sitemap.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
+ {%for p in all_pages%}
+ <url>
+ <loc>{{p.url}}</loc>
+ <lastmod>{{p.mdate_sitemap if p.mdate_sitemap else p.cdate_sitemap}}</lastmod>
+ <changefreq>weekly</changefreq>
+ <priority>1.0</priority>
+ </url>
+ {%endfor%}
+
+ {%for t in all_tags%}
+ <url>
+ <loc>{{t[1]}}</loc>
+ <lastmod>{{run_date}}</lastmod>
+ <changefreq>daily</changefreq>
+ <priority>0.5</priority>
+ </url>
+ {%endfor%}
+</urlset>
diff --git a/blog/plt/tag.html b/blog/plt/tag.html
new file mode 100644
index 0000000..50b221f
--- /dev/null
+++ b/blog/plt/tag.html
@@ -0,0 +1,18 @@
+{%extends "base.html"%}
+{%block content%}
+ <h1>Posts filtered by {{tag[0]}}</h1>
+
+ <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>
+{%endblock content%}