This commit is contained in:
Jeff MacKinnon 2022-12-22 23:08:37 -04:00
commit bfbdbe08c1
15 changed files with 81 additions and 65 deletions

View file

@ -1,6 +1,4 @@
# theme-jeffmackinnon.com # Jeff's Pelican SSG Theme
The base pelican theme for my site, [jeffmackinnon.com](https://jeffmackinnon.com) The base pelican theme for my site, [jeffmackinnon.com](https://jeffmackinnon.com)
@ -101,6 +99,7 @@ In order of percieved importance, but not in the order that I will get them done
- [ ] Make installable - [ ] Make installable
- [X] Create custom colours - [X] Create custom colours
- [ ] Figure out how to create a Dark Mode - [ ] Figure out how to create a Dark Mode
- [ ] Add paths for the .html files so I can take them out of the theme themselves.
### Roadmap notes ### Roadmap notes

View file

@ -1,5 +1,5 @@
/* /*
Deffault Colours Default Colours
*/ */
:root { :root {

View file

@ -3,14 +3,6 @@
@import url(../css-include/pygment.css); @import url(../css-include/pygment.css);
@import url(../css-include/pelican.css); @import url(../css-include/pelican.css);
/*
Some site colours
*/
/* /*
Editorial by HTML5 UP Editorial by HTML5 UP
html5up.net | @ajlkn html5up.net | @ajlkn

View file

@ -5,10 +5,6 @@
{% block content %} {% block content %}
<h1>Archives for {{ SITENAME }}</h1> <h1>Archives for {{ SITENAME }}</h1>
<dl class="archive"> {% include 'include/archive_list.html' %}
{% for article in dates %}
<dt class="archive">{{ article.locale_date }}</dt>
<dd class="archive"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
{% endfor %}
</dl>
{% endblock %} {% endblock %}

View file

@ -5,6 +5,12 @@
{% block title %}{{ SITENAME }} - {{ article.title|striptags }}{% endblock %} {% block title %}{{ SITENAME }} - {{ article.title|striptags }}{% endblock %}
{% block head %} {% block head %}
{% if article.status == "hidden" %}
<meta name="robots" content="noindex">
<meta name="robots" content="nofollow">
<meta name="robots" content="noarchive">
{% endif %}
{{ super() }} {{ super() }}
{% import 'translations.html' as translations with context %} {% import 'translations.html' as translations with context %}
{% if translations.entry_hreflang(article) %} {% if translations.entry_hreflang(article) %}
@ -128,7 +134,7 @@
<footer id="post-info"> <footer id="post-info">
{% if article.category %} {% if article.category %}
<div class="category"> <div class="category">
Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a> <p> In <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></p>
</div> </div>
{% endif %} {% endif %}
{% if article.tags %} {% if article.tags %}
@ -141,7 +147,6 @@
{% endif %} {% endif %}
</footer><!-- /.post-info --> </footer><!-- /.post-info -->
{% if COMMENTS is sameas True %} {% if COMMENTS is sameas True %}
<div class="comments"> <div class="comments">
<h3>Comments</h3> <h3>Comments</h3>

View file

@ -1,23 +0,0 @@
<footer class="post-info">
<abbr class="published" title="{{ article.date.isoformat() }}">
Published: {{ article.locale_date }}
</abbr>
{% if article.modified %}
<br />
<abbr class="modified" title="{{ article.modified.isoformat() }}">
Updated: {{ article.locale_modified }}
</abbr>
{% endif %}
{% if article.authors %}
<address class="vcard author">
By {% for author in article.authors %}
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
{% endfor %}
</address>
{% endif %}
<p>In <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>.</p>
{% include 'taglist.html' %}
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
</footer><!-- /.post-info -->

View file

@ -2,7 +2,7 @@
<html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}"> <html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}">
<head> <head>
{% block head %} {% block head %}
<title>{% if NASHOSTED %}NAS Hosted - {% endif %}{% block title %}{{ SITENAME }}{% endblock title %}</title> <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
{% if FAVICON %} {% if FAVICON %}
<link rel="icon" type="image/x-icon" href="{{ SITEURL }}/{{ FAVICON }}"> <link rel="icon" type="image/x-icon" href="{{ SITEURL }}/{{ FAVICON }}">
{% endif %} {% endif %}

View file

@ -1,14 +0,0 @@
{% if GOSQUARED_SITENAME %}
<script type="text/javascript">
var GoSquared={};
GoSquared.acct = "{{ GOSQUARED_SITENAME }}";
(function(w){
function gs(){
w._gstc_lt=+(new Date); var d=document;
var g = d.createElement("script"); g.type = "text/javascript"; g.async = true; g.src = "https://d1l6p2sc9645hc.cloudfront.net/tracker.js";
var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(g, s);
}
w.addEventListener?w.addEventListener("load",gs,false):w.attachEvent("onload",gs);
})(window);
</script>
{% endif %}

View file

@ -0,0 +1,6 @@
<dl class="archive">
{% for article in dates %}
<dt class="archive">{{ article.locale_date }}</dt>
<dd class="archive"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
{% endfor %}
</dl>

View file

@ -40,6 +40,6 @@
<div> <div>
{% if articles_page.has_other_pages() %} {% if articles_page.has_other_pages() %}
{% include 'pagination.html' %} {% include 'include/pagination.html' %}
{% endif %} {% endif %}
</div> </div>

View file

@ -160,6 +160,20 @@
</section> </section>
{% endif %} {% endif %}
{% if THEME_DARKMODE == 1 %}
<img src="https://media.geeksforgeeks.org/wp-content/uploads/20200122115631/GeeksforGeeks210.png"/>
<div>
<button onclick="darkMode()">Darkmode</button>
</div>
<script>
function darkMode() {
var element = document.body;
element.classList.toggle("dark-mode");
}
</script>
{% endif %}
<!-- Footer --> <!-- Footer -->
<footer id="footer"> <footer id="footer">
<p class="copyright">&copy; Untitled. All rights reserved. Original design inspired by: <a href="https://html5up.net">HTML5 UP</a>. <br /> <p class="copyright">&copy; Untitled. All rights reserved. Original design inspired by: <a href="https://html5up.net">HTML5 UP</a>. <br />

View file

@ -4,6 +4,12 @@
{% block title %}{{ SITENAME }} - {{ page.title|striptags }}{%endblock%} {% block title %}{{ SITENAME }} - {{ page.title|striptags }}{%endblock%}
{% block head %} {% block head %}
{% if page.status == "hidden" %}
<meta name="robots" content="noindex">
<meta name="robots" content="nofollow">
<meta name="robots" content="noarchive">
{% endif %}
{{ super() }} {{ super() }}
{% import 'translations.html' as translations with context %} {% import 'translations.html' as translations with context %}

View file

@ -5,10 +5,6 @@
{% block content %} {% block content %}
<h1>Archives for {{ period | reverse | join(' ') }}</h1> <h1>Archives for {{ period | reverse | join(' ') }}</h1>
<dl class="archive"> {% include 'include/archive_list.html' %}
{% for article in dates %}
<dt class="archive">{{ article.locale_date }}</dt>
<dd class="archive"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
{% endfor %}
</dl>
{% endblock %} {% endblock %}

View file

@ -0,0 +1,39 @@
This is my future
######################################
:date: 2022-12-24
:author: jeffmackinnon
:category: microblog
:tags: gripe, rbc, royal-bank
:slug: testing-a-future-thing
:status: published
:image: {photo}microblog/20221017-124028-865A6948.jpg
.. image:: {photo}microblog/20221017-124028-865A6948.jpg
:alt: Pretty Blue Morning Glory
I had to get on the phone today with RBC support to dispute a charge on my card. The vendor decided to not cancel my account like I asked in the winter, they then switched platforms, locked me out of my account, and then told me that its been more than 30 days so they can't refund me.
This was a service that I was a paying member for 7y, first with two services they discontinued, then this new membership service. However, the founder sold it to a partner and it went downhill fast from there. This partner is more of the, "all you need to do is write a blog post and then cut it up into things to post everywhere. Its that easy, 1 blog post is 1000000 pieces of content" types of guys. The founder ran a much better ship.
Anyway, I've been waiting on the phone with RBC Royal Bank for 20min so far, them reminding me that they have high call volumes and I should just do it online.
First, this can't be done online, I checked.
Second, if you are experiencing high call volumes for almost 3 years, that just tells me that you don't respect my time and I should always be looking for a better deal. I've been a RBC customer for almost 30y and the best they can do for me is....nothing.
I was able to do the following while I hold.
---------------------------------------------------
1. Write this post
#. Start darktable.
#. Edit the picture.
#. Re-write this post.
#. Edit the batch scipt that I use to publish this site.
#. Publish this site.
#. Tweak the theme.
#. Publish the site again.
And still, 30 minutes in, I'm still just hearing really bad hold music and an automated voice telling me not to give information to people if "it seems to good to be true".
For this rant, may I present to you, a pretty blue morning glory.