diff --git a/content/blog/2012-02-08_vertical_bars_in_graphite.rst b/content/blog/2012-02-08_vertical_bars_in_graphite.rst index f41fc8a..696fd7e 100644 --- a/content/blog/2012-02-08_vertical_bars_in_graphite.rst +++ b/content/blog/2012-02-08_vertical_bars_in_graphite.rst @@ -3,7 +3,7 @@ Vertical Bars In Graphite :date: 2012-02-08 15:10 :author: tyrel :category: Tech -:tags: graphite, txStatsD +:tags: graphite, statsd :slug: vertical-bars-in-graphite :status: published diff --git a/content/blog/2012-11-07_cfengine3-install-on-centos-5-7.rst b/content/blog/2012-11-07_cfengine3-install-on-centos-5-7.rst index ea5330b..751ba7d 100644 --- a/content/blog/2012-11-07_cfengine3-install-on-centos-5-7.rst +++ b/content/blog/2012-11-07_cfengine3-install-on-centos-5-7.rst @@ -2,7 +2,7 @@ CFEngine3 Install on CentOS 5.7 ############################### :date: 2012-05-25 03:57 :author: tyrel -:category: outdated +:category: Outdated :tags: cfengine, centos :slug: cfengine3-install-on-centos-5-7 :status: published diff --git a/content/blog/2022-01-09_garage-door-opener.rst b/content/blog/2022-01-09_garage-door-opener.rst index 88604fa..0ed7321 100644 --- a/content/blog/2022-01-09_garage-door-opener.rst +++ b/content/blog/2022-01-09_garage-door-opener.rst @@ -2,8 +2,8 @@ Garage Door Opener ################## :date: 2022-01-09 22:46 :author: tyrel -:category: Tech, -:tags: HomeAssistant, home +:category: Tech +:tags: home-assistant, home :slug: garage-door-opener :status: published diff --git a/content/blog/2022-10-17_comparing-go-gorm-and-sqlx.rst b/content/blog/2022-10-17_comparing-go-gorm-and-sqlx.rst index c2aedac..9bab31e 100644 --- a/content/blog/2022-10-17_comparing-go-gorm-and-sqlx.rst +++ b/content/blog/2022-10-17_comparing-go-gorm-and-sqlx.rst @@ -19,13 +19,13 @@ You can do about 95% of your database queries automatically by using the ORM. .. code:: python - entry, created = Entry.objects.get_or_create(headline="blah blah blah") + entry, created = Entry.objects.get_or_create(headline="blah blah blah") .. code:: python - q = Entry.objects.filter(headline__startswith="What") - q = q.filter(pub_date__lte=datetime.date.today()) - q = q.exclude(body_text__icontains="food") + q = Entry.objects.filter(headline__startswith="What") + q = q.filter(pub_date__lte=datetime.date.today()) + q = q.exclude(body_text__icontains="food") Above are some samples from the DjangoDocs. But enough about Django. diff --git a/pelicanconf.py b/pelicanconf.py index f86aa2c..f4b2502 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -2,16 +2,18 @@ from pathlib import Path pwd = Path.cwd() AUTHOR = 'Tyrel Souza' -SITENAME = "Tyrel Souza's Blog" +SITENAME = "Tyrel's Blog" TWITTER_USERNAME = 'tyrelsouza' SITEURL = '' -SITESUBTITLE = 'Code, Tech, Home Automation, Personal Blog' +SITESUBTITLE = 'Code, Tech, Automation' + +SITEBASE = "" MENUITEMS = [ - ('Home', '/blog/'), - ('Tags', '/blog/tags.html'), - ('Categories', '/blog/categories.html'), + ('Home', f'{SITEBASE}/'), + ('Tags', f'{SITEBASE}/tags.html'), + ('Categories', f'{SITEBASE}/categories.html'), ] LINKS = ( ('Code', 'https://gitea.tyrel.dev/'), @@ -40,10 +42,15 @@ TRANSLATION_FEED_ATOM = None AUTHOR_FEED_ATOM = None AUTHOR_FEED_RSS = None +FEED_ATOM = 'tyrel-dev.atom.xml' +FEED_RSS = 'tyrel-dev.rss' +FEED_ALL_ATOM = 'tyrel-dev.all.xml' +FEED_ALL_RSS = 'tyrel-dev.all.rss' -PLUGINS = [ ] -DEFAULT_PAGINATION = 10 +PLUGINS = ["webassets"] + +DEFAULT_PAGINATION = False DISPLAY_CATEGORIES_ON_MENU = False DELETE_OUTPUT_DIRECTORY = True @@ -65,4 +72,4 @@ DEFAULT_METADATA = { 'extras/favicon.ico': {'path': 'favicon.ico'}, } -THEME = "./themes/custom" +THEME = "./themes/simple" diff --git a/publishconf.py b/publishconf.py index 5abf65e..42fe53b 100644 --- a/publishconf.py +++ b/publishconf.py @@ -5,6 +5,7 @@ import os import sys sys.path.append(os.curdir) from pelicanconf import * +SITEBASE = "/blog" # If your site is available via HTTPS, make sure SITEURL begins with https:// SITEURL = 'https://tyrel.dev/blog' diff --git a/themes/simple/static/css/main.css b/themes/simple/static/css/main.css index c548fa6..fcbe9aa 100644 --- a/themes/simple/static/css/main.css +++ b/themes/simple/static/css/main.css @@ -1,8 +1,8 @@ @import url("reset.css"); +@import url("pygment.css"); body { - font-size: 87.5%; /* Base font size: 14px */ - font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; + font-family: 'Lato', 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; line-height: 1.429; margin: 0; padding: 0; @@ -12,6 +12,7 @@ body { p { color: rgb(131, 148, 150); margin: 0 10 0 10; + padding-left: 0.75rem; line-height: 1.2rem; font-size: 14px; text-align: left @@ -27,16 +28,25 @@ p { } .literal-block { - width: 100%; + width: 95%; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; + background-color: #eee8d5; border: 1px solid #BCBEC0; padding: 0.5rem; margin: 0.75rem; font:12px Monaco,Consolas,"Andale Mono","DejaVu Sans Mono",monospace } + +article h2 { + line-height: 2rem; +} +article ul { + margin-left: 1rem; +} + .caps {font-size:.92em;} .amp {color:#666; font-size:1.05em;font-family:"Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua",serif; font-style:italic;} .dquo {margin-left:-.38em;} @@ -52,6 +62,7 @@ p { } .right-panel-content img { + margin: 1rem; max-width: 50rem; } .left-panel { @@ -71,7 +82,7 @@ p { font-size: 1.25rem; } -hr.article-split { +hr { border: 2px dotted #b58900;; border-style: none none dashed; } @@ -83,3 +94,20 @@ hr.article-split { hr.end { padding-top: 1rem; } + +.indent { + font-size: 0.6rem; + margin-left: 5.1rem; + /*border-bottom: 2px dotted #b58900;*/ +} + +h3.entry-title{ + border-bottom: 1px dotted #b58900; + padding-bottom: 0.25rem; +} + +.permalink { + float:right; +} + +a:link.permalink { text-decoration: none; } diff --git a/themes/simple/templates/archives.html b/themes/simple/templates/archives.html index cd12950..d23baa8 100644 --- a/themes/simple/templates/archives.html +++ b/themes/simple/templates/archives.html @@ -4,6 +4,7 @@ {% block content %}

Archives for {{ SITENAME }}

+
{% for article in dates %} diff --git a/themes/simple/templates/article.html b/themes/simple/templates/article.html index 20cfe9c..ea419b2 100644 --- a/themes/simple/templates/article.html +++ b/themes/simple/templates/article.html @@ -24,14 +24,15 @@ {% block content %}

- {{ article.title }}

+ {{ article.title }} + {% import 'translations.html' as translations with context %} {{ translations.translations_for(article) }} +
diff --git a/themes/simple/templates/categories.html b/themes/simple/templates/categories.html index 7999de4..3738972 100644 --- a/themes/simple/templates/categories.html +++ b/themes/simple/templates/categories.html @@ -4,6 +4,7 @@ {% block content %}

Categories on {{ SITENAME }}

+