summaryrefslogtreecommitdiff
path: root/art/plt
diff options
context:
space:
mode:
Diffstat (limited to 'art/plt')
-rw-r--r--art/plt/base.html103
-rw-r--r--art/plt/index.html31
-rw-r--r--art/plt/page.html29
-rw-r--r--art/plt/page_list.html15
-rw-r--r--art/plt/rss.xml39
-rw-r--r--art/plt/sitemap.xml22
-rw-r--r--art/plt/tag.html20
-rw-r--r--art/plt/tag_list.html9
8 files changed, 268 insertions, 0 deletions
diff --git a/art/plt/base.html b/art/plt/base.html
new file mode 100644
index 0000000..6c56ac4
--- /dev/null
+++ b/art/plt/base.html
@@ -0,0 +1,103 @@
+<!DOCTYPE html>
+<html lang="{%block html_lang%}{%endblock html_lang%}"
+ prefix="og: https://ogp.me/ns#">
+ <head>
+ <base href="{{config.static_url}}">
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>{%block head_title%}{%endblock head_title%} -- {{config.title}}</title>
+ <meta name="description" content"{%block head_description%}{%endblock head_description%}"/>
+ <link rel="alternate" type="application/rss+xml" href="{{config.url}}/rss.xml" title="{{config.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">
+
+ <!-- og meta -->
+ {%block head_og%}{%endblock head_og%}
+ </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/art/plt/index.html b/art/plt/index.html
new file mode 100644
index 0000000..5b1c9e1
--- /dev/null
+++ b/art/plt/index.html
@@ -0,0 +1,31 @@
+{%extends "base.html"%}
+{%block html_lang%}en{%endblock html_lang%}
+{%block head_title%}Index{%endblock head_title%}
+{%block head_description%}My personal blog where I post about my thoughts, some how-to's, or general ranting.{%endblock head_description%}
+{%block head_og%}
+ <meta property="og:title" content="Index -- {{config.title}}"/>
+ <meta property="og:type" content="article"/>
+ <meta property="og:url" content="{{config.url}}/index.html"/>
+ <meta property="og:image" content="{{config.static_url}}{{config.default_image_url}}"/>
+ <meta property="og:description" content="My personal blog where I post about my thoughts, some how-to's, or general ranting."/>
+ <meta property="og:locale" content="en"/>
+ <meta property="og:site_name" content="{{config.title}}"/>
+{%endblock head_og%}
+{%block content%}
+ <h1>Index -- {{config.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="{{config.url}}/rss.xml">{{config.url}}/rss.xml</a>
+ </p>
+
+ {%import "tag_list.html" as tag_list%}
+ {{tag_list.print(all_tags)}}
+
+ {%import "page_list.html" as page_list%}
+ {{page_list.print(all_pages)}}
+
+{%endblock content%}
diff --git a/art/plt/page.html b/art/plt/page.html
new file mode 100644
index 0000000..dbb2734
--- /dev/null
+++ b/art/plt/page.html
@@ -0,0 +1,29 @@
+{%extends "base.html"%}
+{%block html_lang%}{{page.lang}}{%endblock html_lang%}
+{%block head_title%}{{page.title}}{%endblock head_title%}
+{%block head_description%}{{page.summary}}{%endblock head_description%}
+{%block head_og%}
+ <meta property="og:title" content="{{page.title}} -- {{config.title}}"/>
+ <meta property="og:type" content="article"/>
+ <meta property="og:url" content="{{page.url}}"/>
+ <meta property="og:image" content="{{page.image_url}}"/>
+ <meta property="og:description" content="{{page.summary}}"/>
+ <meta property="og:locale" content="{{page.lang}}"/>
+ <meta property="og:site_name" content="{{config.title}}"/>
+{%endblock head_og%}
+{%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%}
+ {%import "tag_list.html" as tag_list%}
+ {{tag_list.print(page.tags)}}
+ </div>
+{%endblock content%}
diff --git a/art/plt/page_list.html b/art/plt/page_list.html
new file mode 100644
index 0000000..16dc4d5
--- /dev/null
+++ b/art/plt/page_list.html
@@ -0,0 +1,15 @@
+{%macro print(pages)%}
+ <h2>Articles</h2>
+ <ul>
+ {%for p in 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>
+{%endmacro%}
diff --git a/art/plt/rss.xml b/art/plt/rss.xml
new file mode 100644
index 0000000..5be7c37
--- /dev/null
+++ b/art/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>{{config.title}}</title>
+ <link>{{config.url}}</link>
+ <atom:link href="{{config.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>{{config.run_date_rss}}</pubDate>
+ <lastBuildDate>{{config.run_date_rss}}</lastBuildDate>
+ <generator>pyssg v{{config.version}}</generator>
+ <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
+ <ttl>30</ttl>
+ <image>
+ <url>{{config.static_url}}/images/blog.png</url>
+ <title>{{config.title}}</title>
+ <link>{{config.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/art/plt/sitemap.xml b/art/plt/sitemap.xml
new file mode 100644
index 0000000..26ee5c1
--- /dev/null
+++ b/art/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>{{config.run_date_sitemap}}</lastmod>
+ <changefreq>daily</changefreq>
+ <priority>0.5</priority>
+ </url>
+ {%endfor%}
+</urlset>
diff --git a/art/plt/tag.html b/art/plt/tag.html
new file mode 100644
index 0000000..d379590
--- /dev/null
+++ b/art/plt/tag.html
@@ -0,0 +1,20 @@
+{%extends "base.html"%}
+{%block html_lang%}en{%endblock html_lang%}
+{%block head_title%}Posts filtered by {{tag[0]}}{%endblock head_title%}
+{%block head_description%}Posts filtered by {{tag[0]}}{%endblock head_description%}
+{%block head_og%}
+ <meta property="og:title" content="Posts filtered by {{tag[0]}} -- {{config.title}}"/>
+ <meta property="og:type" content="article"/>
+ <meta property="og:url" content="{{tag[1]}}"/>
+ <meta property="og:image" content="{{config.static_url}}{{config.default_image_url}}"/>
+ <meta property="og:description" content="Posts filtered by {{tag[0]}}."/>
+ <meta property="og:locale" content="en"/>
+ <meta property="og:site_name" content="{{config.title}}"/>
+{%endblock head_og%}
+{%block content%}
+ <h1>Posts filtered by {{tag[0]}}</h1>
+
+ {%import "page_list.html" as page_list%}
+ {{page_list.print(tag_pages)}}
+
+{%endblock content%}
diff --git a/art/plt/tag_list.html b/art/plt/tag_list.html
new file mode 100644
index 0000000..2dfb70c
--- /dev/null
+++ b/art/plt/tag_list.html
@@ -0,0 +1,9 @@
+{%macro print(tags)%}
+<div class="article-tags">
+ <p>Tags:
+ {%for t in tags-%}
+ <a href="{{t[1]}}">{{t[0]}}</a>{{", " if not loop.last else ""}}
+ {%-endfor%}
+ </p>
+</div>
+{%endmacro%}