From 7e49db5ddefe8c515b5f3931a5c701efaac33d91 Mon Sep 17 00:00:00 2001
From: David Luevano Alvarado <david@luevano.xyz>
Date: Fri, 16 Dec 2022 17:45:03 -0600
Subject: change structure for new pyssg version

---
 art/plt/art_entry.html |  5 ---
 art/plt/art_nav.html   | 28 ---------------
 art/plt/base.html      | 95 --------------------------------------------------
 art/plt/index.html     | 31 ----------------
 art/plt/page.html      | 33 ------------------
 art/plt/page_list.html | 22 ------------
 art/plt/rss.xml        | 40 ---------------------
 art/plt/sitemap.xml    | 22 ------------
 art/plt/tag.html       | 20 -----------
 art/plt/tag_list.html  |  9 -----
 10 files changed, 305 deletions(-)
 delete mode 100644 art/plt/art_entry.html
 delete mode 100644 art/plt/art_nav.html
 delete mode 100644 art/plt/base.html
 delete mode 100644 art/plt/index.html
 delete mode 100644 art/plt/page.html
 delete mode 100644 art/plt/page_list.html
 delete mode 100644 art/plt/rss.xml
 delete mode 100644 art/plt/sitemap.xml
 delete mode 100644 art/plt/tag.html
 delete mode 100644 art/plt/tag_list.html

(limited to 'art/plt')

diff --git a/art/plt/art_entry.html b/art/plt/art_entry.html
deleted file mode 100644
index 1790025..0000000
--- a/art/plt/art_entry.html
+++ /dev/null
@@ -1,5 +0,0 @@
-{%macro print(page, class='')%}
-<a class="zoom-in {{class}}" href="{{page.url}}" alt="{{page.title}}">
-  <img src="{{page.image_url}}" alt="{{page.title}}">
-</a>
-{%endmacro%}
diff --git a/art/plt/art_nav.html b/art/plt/art_nav.html
deleted file mode 100644
index 327242a..0000000
--- a/art/plt/art_nav.html
+++ /dev/null
@@ -1,28 +0,0 @@
-{%macro print(page, config)%}
-<div class="art-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/art/plt/base.html b/art/plt/base.html
deleted file mode 100644
index fe838e1..0000000
--- a/art/plt/base.html
+++ /dev/null
@@ -1,95 +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">
-
-    <!-- theme related -->
-    <script type="text/javascript" src="scripts/theme.js"></script>
-    <link id="theme-css" rel="stylesheet" type="text/css" href="css/theme.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 class="art">
-      {%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://art.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/art/plt/index.html b/art/plt/index.html
deleted file mode 100644
index 03bfbc3..0000000
--- a/art/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 space where I post all my drawings, sketches and more art related stuff.{%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 space where I post all my drawings, sketches, and more art related stuff."/>
-  <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>
-  Here is where I will post all of my drawings, sketches and more art related stuff. Right now this is managed similar to the <a href="https://blog.luevano.xyz" alt="Luévano's Blog">blog</a>, but more "gallery" oriented. The structure is kind of a 3-level zoom, where you see all the images in this index (or on a tag index), then you see the whole image in its separate link with additional information and then you can see the raw image itself.
-  </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/art/plt/page.html b/art/plt/page.html
deleted file mode 100644
index 536f4d0..0000000
--- a/art/plt/page.html
+++ /dev/null
@@ -1,33 +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 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>
-
-  <a class="zoom-in" href="{{page.image_url}}" alt="See raw.">
-    <img src="{{page.image_url}}" alt="{{page.summary}}">
-  </a>
-
-  {{page.content}}
-
-  {%import "art_nav.html" as art_nav%}
-  {{art_nav.print(page, config)}}
-
-  <hr>
-  <div class="art-info">
-    <p>By: {{page.author}}</p>
-    <p>Posted: {{page.cdate}}</p>
-    {%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
deleted file mode 100644
index 8cdebd8..0000000
--- a/art/plt/page_list.html
+++ /dev/null
@@ -1,22 +0,0 @@
-{%macro print(pages)%}
-{%import "art_entry.html" as art_entry%}
-<div class="art-grid">
-  {%for p in pages%}
-    {%if p.meta['tall'] is defined%}
-      {%if p.meta['wide'] is defined%}
-        {{art_entry.print(p, 'tall wide')}}
-      {%else%}
-        {{art_entry.print(p, 'tall')}}
-      {%endif%}
-    {%elif p.meta['wide'] is defined%}
-      {%if p.meta['tall'] is defined%}
-        {{art_entry.print(p, 'tall wide')}}
-      {%else%}
-        {{art_entry.print(p, 'tall')}}
-      {%endif%}
-    {%else%}
-      {{art_entry.print(p)}}
-    {%endif%}
-  {%endfor%}
-</div>
-{%endmacro%}
diff --git a/art/plt/rss.xml b/art/plt/rss.xml
deleted file mode 100644
index 60d2807..0000000
--- a/art/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 collection of drawings, sketches and more art related stuff.</description>
-    <language>en-us</language>
-    <category>Art</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")}}{{config.get("url", "default_image")}}</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/art/plt/sitemap.xml b/art/plt/sitemap.xml
deleted file mode 100644
index c364f54..0000000
--- a/art/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/art/plt/tag.html b/art/plt/tag.html
deleted file mode 100644
index e5f2152..0000000
--- a/art/plt/tag.html
+++ /dev/null
@@ -1,20 +0,0 @@
-{%extends "base.html"%}
-{%block html_lang%}en{%endblock html_lang%}
-{%block head_title%}Art filtered by {{tag[0]}}{%endblock head_title%}
-{%block head_description%}Art filtered by {{tag[0]}}{%endblock head_description%}
-{%block head_og%}
-  <meta property="og:title" content="Art 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="Art 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>Art 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
deleted file mode 100644
index b1d6f72..0000000
--- a/art/plt/tag_list.html
+++ /dev/null
@@ -1,9 +0,0 @@
-{%macro print(tags)%}
-<div class="art-tags">
-  <p>Tags:
-  {%for t in tags-%}
-    <a href="{{t[1]}}">{{t[0]}}</a>{{", " if not loop.last else ""}}
-  {%-endfor%}
-  </p>
-</div>
-{%endmacro%}
-- 
cgit v1.2.3-70-g09d2