theme work more
This commit is contained in:
parent
a173b791d9
commit
7899f1a42e
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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'
|
||||
|
@ -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; }
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
{% block content %}
|
||||
<h1>Archives for {{ SITENAME }}</h1>
|
||||
<hr class="article-split">
|
||||
|
||||
<dl>
|
||||
{% for article in dates %}
|
||||
|
@ -24,14 +24,15 @@
|
||||
{% block content %}
|
||||
<header>
|
||||
<h1 class="entry-title">
|
||||
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
|
||||
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1>
|
||||
{{ article.title }}
|
||||
</h1>
|
||||
{% import 'translations.html' as translations with context %}
|
||||
{{ translations.translations_for(article) }}
|
||||
<hr class="article-split">
|
||||
</header>
|
||||
|
||||
<footer class="post-info">
|
||||
<hr class="article-split">
|
||||
<a class="permalink" href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}"> 🔗 </a>
|
||||
<time class="published" datetime="{{ article.date.isoformat() }}">
|
||||
<h3>{{ article.locale_date }}</h3>
|
||||
</time>
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
{% block content %}
|
||||
<h1>Categories on {{ SITENAME }}</h1>
|
||||
<hr class="article-split">
|
||||
<ul>
|
||||
{% for category, articles in categories|sort %}
|
||||
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li>
|
||||
|
@ -4,5 +4,6 @@
|
||||
|
||||
{% block content_title %}
|
||||
<h1>Articles in the {{ category }} category</h1>
|
||||
<hr class="article-split">
|
||||
{% endblock %}
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
<section id="content">
|
||||
{% block content_title %}
|
||||
<h1>All articles</h1>
|
||||
<hr class="article-split">
|
||||
{% endblock %}
|
||||
|
||||
<ul id="post-list">
|
||||
@ -11,8 +12,17 @@
|
||||
<article class="hentry">
|
||||
<header>
|
||||
<h3 class="entry-title">
|
||||
<div>
|
||||
<span class="small"><time class="published" datetime="{{ article.date.isoformat() }}"> {{ article.date.isoformat().split("T")[0] }} </time></span>
|
||||
<span class="article-list-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></span>
|
||||
</div>
|
||||
<span class="small indent">
|
||||
<span class="category">{{ article.category }}</span>
|
||||
<span class="">
|
||||
{% for tag in article.tags|sort %}
|
||||
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
|
||||
{% endfor %}</span>
|
||||
</span>
|
||||
</h3>
|
||||
</header>
|
||||
</article>
|
||||
|
@ -14,6 +14,7 @@
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ page.title }}</h1>
|
||||
<hr class="article-split">
|
||||
{% import 'translations.html' as translations with context %}
|
||||
{{ translations.translations_for(page) }}
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
{% block content %}
|
||||
<h1>Tags for {{ SITENAME }}</h1>
|
||||
<hr class="article-split">
|
||||
<ul>
|
||||
{% for tag, articles in tags|sort %}
|
||||
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li>
|
||||
|
Loading…
Reference in New Issue
Block a user