summaryrefslogtreecommitdiff
path: root/blog/plt
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-12-16 17:45:03 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-12-16 17:45:03 -0600
commit7e49db5ddefe8c515b5f3931a5c701efaac33d91 (patch)
treed7d1efda44837a466fe079266efda90021812399 /blog/plt
parent3112a76dac594fe715b59e53c399b0dec5b53193 (diff)
change structure for new pyssg version
Diffstat (limited to 'blog/plt')
-rw-r--r--blog/plt/base.html105
-rw-r--r--blog/plt/index.html31
-rw-r--r--blog/plt/page.html36
-rw-r--r--blog/plt/page_list.html15
-rw-r--r--blog/plt/page_nav.html28
-rw-r--r--blog/plt/rss.xml40
-rw-r--r--blog/plt/sitemap.xml22
-rw-r--r--blog/plt/tag.html20
-rw-r--r--blog/plt/tag_list.html9
9 files changed, 0 insertions, 306 deletions
diff --git a/blog/plt/base.html b/blog/plt/base.html
deleted file mode 100644
index 4cb4827..0000000
--- a/blog/plt/base.html
+++ /dev/null
@@ -1,105 +0,0 @@
-<!DOCTYPE html>
-<html class="theme-dark" lang="{%block html_lang%}{%endblock html_lang%}"
- prefix="og: https://ogp.me/ns#">
- <head>
- <base href="{{config.get("url", "static")}}">
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>{%block head_title%}{%endblock head_title%} -- {{config.get("info", "title")}}</title>
- <meta name="description" content"{%block head_description%}{%endblock head_description%}"/>
- <link rel="alternate" type="application/rss+xml" href="{{config.get("url", "main")}}/rss.xml" title="{{config.get("info", "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" src="hl/highlight-ln.min.js"></script>-->
- {%block gdscript_hl%}{%endblock gdscript_hl%}
- <script type="text/javascript">
- hljs.initHighlightingOnLoad();
- // hljs.initLineNumbersOnLoad();
- </script>
-
- <!-- theme related -->
- <script type="text/javascript" src="scripts/theme.js"></script>
- <link id="theme-css" rel="stylesheet" type="text/css" href="css/theme.css">
- <link id="code-theme-css" rel="stylesheet" type="text/css" href="hl/styles/nord.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>
- <a href="https://art.luevano.xyz/"><i class="fas fa-paint-brush" alt="Art"></i><span>Art</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>
-
- <button class="theme-switcher" onclick="toggleTheme()"><i class="fas fa-moon"></i><i class="fas fa-sun"></i></button>
- </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 target="_blank" 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="far 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
deleted file mode 100644
index 8616732..0000000
--- a/blog/plt/index.html
+++ /dev/null
@@ -1,31 +0,0 @@
-{%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.get("info", "title")}}"/>
- <meta property="og:type" content="article"/>
- <meta property="og:url" content="{{config.get("url", "main")}}/index.html"/>
- <meta property="og:image" content="{{config.get("url", "static")}}{{config.get("url", "default_image")}}"/>
- <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.get("info", "title")}}"/>
-{%endblock head_og%}
-{%block content%}
- <h1>Index -- {{config.get("info", "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.get("url", "main")}}/rss.xml">{{config.get("url", "main")}}/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/blog/plt/page.html b/blog/plt/page.html
deleted file mode 100644
index e2a7ecb..0000000
--- a/blog/plt/page.html
+++ /dev/null
@@ -1,36 +0,0 @@
-{%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 gdscript_hl%}
- <!-- Specific to GDScript -->
- <script type="text/javascript" src="hl/languages/gdscript.min.js"></script>
-{%endblock gdscript_hl%}
-{%block head_og%}
- <meta property="og:title" content="{{page.title}} -- {{config.get("info", "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.get("info", "title")}}"/>
-{%endblock head_og%}
-{%block content%}
- <h1>{{page.title}}</h1>
-
- {{page.content}}
-
- {%import "page_nav.html" as page_nav%}
- {{page_nav.print(page, config)}}
-
- <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/blog/plt/page_list.html b/blog/plt/page_list.html
deleted file mode 100644
index bd1f678..0000000
--- a/blog/plt/page_list.html
+++ /dev/null
@@ -1,15 +0,0 @@
-{%macro print(pages)%}
- <h2>Articles</h2>
- <ul class="page-list">
- {%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/blog/plt/page_nav.html b/blog/plt/page_nav.html
deleted file mode 100644
index 4d26ae3..0000000
--- a/blog/plt/page_nav.html
+++ /dev/null
@@ -1,28 +0,0 @@
-{%macro print(page, config)%}
-<div class="page-nav">
- {%if page.next is not none%}
- <span class="next">
- <a href="{{page.next.url}}" alt="Next">
- <i class="fas fa-arrow-left" alt="Arrow left"></i>
- <span>Next</span>
- </a>
- </span>
- {%endif%}
-
- <span class="index">
- <a href="{{config.get("url", "main")}}" alt="Index">
- <i class="fas fa-home" alt="Home"></i>
- <span>Index</span>
- </a>
- </span>
-
- {%if page.previous is not none%}
- <span class="previous">
- <a href="{{page.previous.url}}" alt="Previous">
- <i class="fas fa-arrow-right" alt="Arrow right"></i>
- <span>Previous</span>
- </a>
- </span>
- {%endif%}
-</div>
-{%endmacro%}
diff --git a/blog/plt/rss.xml b/blog/plt/rss.xml
deleted file mode 100644
index 3dc7908..0000000
--- a/blog/plt/rss.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<rss version="2.0"
- xml:base="https://static.luevano.xyz"
- xmlns:atom="http://www.w3.org/2005/Atom"
- xmlns:content="http://purl.org/rss/1.0/modules/content/">
- <channel>
- <title>{{config.get("info", "title")}}</title>
- <link>{{config.get("url", "main")}}</link>
- <atom:link href="{{config.get("url", "main")}}/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.get("info", "rss_run_date")}}</pubDate>
- <lastBuildDate>{{config.get("info", "rss_run_date")}}</lastBuildDate>
- <generator>pyssg v{{config.get("info", "version")}}</generator>
- <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
- <ttl>30</ttl>
- <image>
- <url>{{config.get("url", "static")}}/images/blog.png</url>
- <title>{{config.get("info", "title")}}</title>
- <link>{{config.get("url", "main")}}</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
deleted file mode 100644
index c364f54..0000000
--- a/blog/plt/sitemap.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?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.get("info", "sitemap_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
deleted file mode 100644
index 5c1b110..0000000
--- a/blog/plt/tag.html
+++ /dev/null
@@ -1,20 +0,0 @@
-{%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.get("info", "title")}}"/>
- <meta property="og:type" content="article"/>
- <meta property="og:url" content="{{tag[1]}}"/>
- <meta property="og:image" content="{{config.get("url", "static")}}{{config.get("url", "default_image")}}"/>
- <meta property="og:description" content="Posts filtered by {{tag[0]}}."/>
- <meta property="og:locale" content="en"/>
- <meta property="og:site_name" content="{{config.get("info", "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/blog/plt/tag_list.html b/blog/plt/tag_list.html
deleted file mode 100644
index 2dfb70c..0000000
--- a/blog/plt/tag_list.html
+++ /dev/null
@@ -1,9 +0,0 @@
-{%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%}