From 097f07df6e5405dfc0cfd6d2562e0e5e93e908ca Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Fri, 6 Aug 2021 08:15:43 -0700 Subject: [PATCH] rebuild with purecss instead of bootstrap --- .gitignore | 2 + content/battle-in-the-middle-ages.md | 1 + content/images/favicon.ico | Bin 0 -> 1870 bytes content/lohengrin.md | 1 + themes/bstrapplus/static/css/article.css | 7 -- themes/bstrapplus/static/css/main.css | 15 --- themes/bstrapplus/templates/base.html | 123 ----------------------- themes/simple/static/css/article.css | 5 + themes/simple/static/css/index.css | 13 +++ themes/simple/static/css/main.css | 45 +++++++++ themes/simple/static/css/search.css | 12 +++ themes/simple/templates/archives.html | 16 +++ themes/simple/templates/article.html | 85 ++++++++++++++++ themes/simple/templates/base.html | 98 ++++++++++++++++++ themes/simple/templates/index.html | 33 ++++++ themes/simple/templates/open_graph.html | 33 ++++++ themes/simple/templates/pagination.html | 11 ++ themes/simple/templates/search.html | 35 +++++++ themes/simple/templates/tags.html | 14 +++ 19 files changed, 404 insertions(+), 145 deletions(-) create mode 100644 content/images/favicon.ico delete mode 100644 themes/bstrapplus/static/css/article.css delete mode 100644 themes/bstrapplus/static/css/main.css delete mode 100644 themes/bstrapplus/templates/base.html create mode 100644 themes/simple/static/css/article.css create mode 100644 themes/simple/static/css/index.css create mode 100644 themes/simple/static/css/main.css create mode 100644 themes/simple/static/css/search.css create mode 100644 themes/simple/templates/archives.html create mode 100644 themes/simple/templates/article.html create mode 100644 themes/simple/templates/base.html create mode 100644 themes/simple/templates/index.html create mode 100644 themes/simple/templates/open_graph.html create mode 100644 themes/simple/templates/pagination.html create mode 100644 themes/simple/templates/search.html create mode 100644 themes/simple/templates/tags.html diff --git a/.gitignore b/.gitignore index bee8a64..23a4a90 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ __pycache__ +plugins/neighbors +plugins/tipue_search diff --git a/content/battle-in-the-middle-ages.md b/content/battle-in-the-middle-ages.md index 1ae3ca0..e438ac9 100644 --- a/content/battle-in-the-middle-ages.md +++ b/content/battle-in-the-middle-ages.md @@ -1,5 +1,6 @@ Title: Battle In The Middle Ages Date: 2021-07-27 +Tags: Battle, CrossBow, Sieges, Raids, Category: War There were three type of battles in Europe in the Middle Ages: diff --git a/content/images/favicon.ico b/content/images/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..1cf13b9f9d978896599290a74f77d5dbe7d1655c GIT binary patch literal 1870 zcmV-U2eJ5xP)Gc)JR9QMau)O=X#!i9;T z37kk-upj^(fsR36MHs_+1RCI)NNu9}lD0S{B^g8PN?Ww(5|~L#Ng*g{WsqleV}|#l zz8@ri&cTzw_h33bHI+12+kK6WN$h#n5cD8OQt`5kw6p~9H3()bUQ8OS4Q4HTQ=1Ol z_JAocz`fLbT2^{`8n~UAo=#AUOf=SOq4pYkt;XbC&f#7lb$*7=$na!mWCQ`dBQsO0 zLFBSPj*N?#u5&pf2t4XjEGH|=pPQ8xh7tpx;US5Cx_Ju;!O`ya-yF`)b%TEt5>eP1ZX~}sjjA%FJF?h7cX8=b!DZl<6%Cv z*G0uvvU+vmnpLZ2paivG-(cd*y3$hCIcsZcYOGh{$&)A6*XX&kXZd3G8m)G$Zz-LV z^GF3VAW^Mdv!)4OM8EgqRiz~*Cji;uzl2uC9^=8I84vNp;ltJ|q-*uQwGp2ma6cY7 z;`%`!9UXO@fr&Ebapfs34OmS9^u6$)bJxrucutf>`dKPKT%%*d3XlFVKunp9 zasduxjrjs>f8V=D|J=XNZp;_Zy^WgQ$9WDjgY=z@stwiEBm9u5*|34&1Na8BMjjgf3+SHcr`5~>oz1Y?SW^=K z^bTyO6>Gar#P_W2gEMwq)ot3; zREHn~U&Dp0l6YT0&k-wLwYjb?5zGK`W6S2v+K>AM(95m2C20L|3m~rN8dprPr@t)5lsk9Hu*W z?pS990s;Ez=+Rj{x7p``4>+c0G5^pYnB1^!TL=(?HLHZ+HicG{~4F1d^5Awl_2!1jICM-!9eoLhbbT^;yHcefyTAaqRcY zmuctDopPT!%k+}x%lZRKnzykr2}}XfG_ne?nRQO~?%hkzo;@RN{P6o`&mMUWBYMTe z6i8ChtjX&gXl`nvrU>jah)2iNM%JdjqoaeaU%yVn!^70x-flljp6Q5tK}5}&X8&&G zX3fpb3E(!rH=zVI_9Gjl45w@{(ITqngWFe7@9{mX;tO25Z_8 zQHEpI+FkTU#4xu>RkN>b3Tnc3UpWzPXWm#o55GKF09j^Mh~)K7{QqbO_~(@CVq! zS<8954|P8mXN2MRs86xZ&Q4EfM@JB94b=(YGuk)s&^jiSF=t3*oNK3`rD{H`yQ?d; ztE=laAUoZx5?RC8*WKOj`%LXEkgDd>&^Q4M^z`%u0rg-It=hLCVsq!Z%^6eB-OvOT zFZ28TN&cRmgU}Elrnk43)!>Z1FCPL2K$7}gwzIc48NX}#!A1BpJP?#v5wkNprhV** z?Cpalt1oH&{r!o3eSKc&ap)iz2BTn_VV`4>9M^b3;(YY}4>#ML6{~(4mH+?%07*qo IM6N<$f(jP3KmY&$ literal 0 HcmV?d00001 diff --git a/content/lohengrin.md b/content/lohengrin.md index 52a9c30..28455da 100644 --- a/content/lohengrin.md +++ b/content/lohengrin.md @@ -1,5 +1,6 @@ Title: Lohengrin Date: 2021-07-29 +Tags: Opera, Franks, Magyars, Mongols Category: Opera diff --git a/themes/bstrapplus/static/css/article.css b/themes/bstrapplus/static/css/article.css deleted file mode 100644 index b77e6e2..0000000 --- a/themes/bstrapplus/static/css/article.css +++ /dev/null @@ -1,7 +0,0 @@ -address { - margin-bottom: 0; -} - -.category { - margin-bottom: 1rem; -} diff --git a/themes/bstrapplus/static/css/main.css b/themes/bstrapplus/static/css/main.css deleted file mode 100644 index 38660e7..0000000 --- a/themes/bstrapplus/static/css/main.css +++ /dev/null @@ -1,15 +0,0 @@ -.entry-content p { - text-align: justify; -} - -.entry-title a { - text-decoration: none; -} - -a { - color: #212529; -} - -a:hover { - color: #6c757d; -} diff --git a/themes/bstrapplus/templates/base.html b/themes/bstrapplus/templates/base.html deleted file mode 100644 index a07ffc4..0000000 --- a/themes/bstrapplus/templates/base.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - {% block head %} - {% block title %}{{ SITENAME }}{% endblock title %} - - - - - - {% if FEED_ALL_ATOM %} - - {% endif %} - {% if FEED_ALL_RSS %} - - {% endif %} - {% if FEED_ATOM %} - - {% endif %} - {% if FEED_RSS %} - - {% endif %} - {% if CATEGORY_FEED_ATOM and category %} - - {% endif %} - {% if CATEGORY_FEED_RSS and category %} - - {% endif %} - {% if TAG_FEED_ATOM and tag %} - - {% endif %} - {% if TAG_FEED_RSS and tag %} - - {% endif %} - {% endblock head %} - - {% if article is defined %} - - - - - - - - - {% elif page is defined %} - - - - - - - - {% else %} - - - - - - - - {% endif %} - - - - - - - - {% block content %} - {% endblock %} -
-
- Proudly powered by Pelican, - which takes great advantage of Python. -
-
- - - - diff --git a/themes/simple/static/css/article.css b/themes/simple/static/css/article.css new file mode 100644 index 0000000..a0fbd8d --- /dev/null +++ b/themes/simple/static/css/article.css @@ -0,0 +1,5 @@ +.entry-content p{ + text-align: justify; + line-height: 1.5; + font-size: 1.1em; +} diff --git a/themes/simple/static/css/index.css b/themes/simple/static/css/index.css new file mode 100644 index 0000000..0267213 --- /dev/null +++ b/themes/simple/static/css/index.css @@ -0,0 +1,13 @@ +.entry-content { + text-align: justify; +} + +.entry-content a{ + text-decoration: none; + font-style: oblique; + font-size: 1.1em; +} + +.post-info { + margin-bottom: 1em; +} diff --git a/themes/simple/static/css/main.css b/themes/simple/static/css/main.css new file mode 100644 index 0000000..f0bfa2b --- /dev/null +++ b/themes/simple/static/css/main.css @@ -0,0 +1,45 @@ +:root { + --black: #343a40; + --gray: #6c757d; +} + +html, a{ + color: var(--black); +} + +body { + max-width: 1000px; + margin: 0 auto 0 auto; + padding: 5px; +} + +a:hover { + color: var(--gray); +} + +.pure-menu-heading { + color: var(--black); +} + +h1 a{ + font-size: smaller; + text-decoration: none; +} + +h1 { + text-align: center; +} + +#about { + text-align: center; +} + +.paginator text{ + line-height: 1; +} + +.paginator a{ + font-size: 4em; + text-decoration: none; + -webkit-tap-highlight-color:transparent; +} diff --git a/themes/simple/static/css/search.css b/themes/simple/static/css/search.css new file mode 100644 index 0000000..389094c --- /dev/null +++ b/themes/simple/static/css/search.css @@ -0,0 +1,12 @@ +.tipue_search_group { + display: flex; + justify-content: center; +} + +#tipue_search_content { + margin: 0 auto 0 auto; +} + +.tipue_search_content_text { + text-align: justify; +} diff --git a/themes/simple/templates/archives.html b/themes/simple/templates/archives.html new file mode 100644 index 0000000..19b25fa --- /dev/null +++ b/themes/simple/templates/archives.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Archives{% endblock %} + +{% block content %} +

Archives for {{ SITENAME }}

+ +
+{% for article in dates %} +
{{ article.locale_date }}
+
+ {{ article.title }} +
+{% endfor %} +
+{% endblock %} diff --git a/themes/simple/templates/article.html b/themes/simple/templates/article.html new file mode 100644 index 0000000..3b31cf0 --- /dev/null +++ b/themes/simple/templates/article.html @@ -0,0 +1,85 @@ +{% extends "base.html" %} +{% block html_lang %}{{ article.lang }}{% endblock %} + +{% block title %}{{ SITENAME }} - {{ article.title }}{% endblock %} + +{% block head %} + {{ super() }} + + {% import 'translations.html' as translations with context %} + {% if translations.entry_hreflang(article) %} + {{ translations.entry_hreflang(article) }} + {% endif %} + + {% if article.description %} + + {% endif %} + + {% for tag in article.tags %} + + {% endfor %} + + +{% endblock %} + +{% block content %} +
+
+

+ {{ article.title }}

+ {% import 'translations.html' as translations with context %} + {{ translations.translations_for(article) }} +
+
+ + {% if article.modified %} + + {% endif %} + {% if article.authors %} +
+ By {% for author in article.authors %} + {{ author }} + {% endfor %} +
+ {% endif %} + {% if article.category %} +
+ Category: {{ article.category }} +
+ {% endif %} + {% if article.tags %} +
+ Tags: + {% for tag in article.tags %} + {{ tag }} + {% endfor %} +
+ {% endif %} +
+
+ {{ article.content }} +
+
+{% if article.prev_article and article.next_article %} +
+ « + » +
+{% else %} + {% if article.prev_article %} +
+ » +
+ {% endif %} + {% if article.next_article %} +
+ « +
+ {% endif %} +{% endif %} +{% endblock %} diff --git a/themes/simple/templates/base.html b/themes/simple/templates/base.html new file mode 100644 index 0000000..e60b897 --- /dev/null +++ b/themes/simple/templates/base.html @@ -0,0 +1,98 @@ + + + + + + + + {% block head %} + {% block title %}{{ SITENAME }}{% endblock title %} + + {% if FEED_ALL_ATOM %} + + {% endif %} + {% if FEED_ALL_RSS %} + + {% endif %} + {% if FEED_ATOM %} + + {% endif %} + {% if FEED_RSS %} + + {% endif %} + {% if CATEGORY_FEED_ATOM and category %} + + {% endif %} + {% if CATEGORY_FEED_RSS and category %} + + {% endif %} + {% if TAG_FEED_ATOM and tag %} + + {% endif %} + {% if TAG_FEED_RSS and tag %} + + {% endif %} + {% endblock head %} + {% include 'open_graph.html' %} + {% block extra_head %} + {% endblock extra_head %} + + + + + + {% block content %} + {% endblock %} +
+
+ Proudly powered by Pelican, + which takes great advantage of Python. +
+
+ + diff --git a/themes/simple/templates/index.html b/themes/simple/templates/index.html new file mode 100644 index 0000000..6016b52 --- /dev/null +++ b/themes/simple/templates/index.html @@ -0,0 +1,33 @@ +{% extends "base.html" %} + +{% block content %} +
+ {% block content_title %} +

All articles

+ {% endblock %} + + + {% for article in articles_page.object_list %} + + {% endfor %} +
+ {% if articles_page.has_other_pages() %} + {% include 'pagination.html' %} + {% endif %} +
+{% endblock content %} diff --git a/themes/simple/templates/open_graph.html b/themes/simple/templates/open_graph.html new file mode 100644 index 0000000..85288d7 --- /dev/null +++ b/themes/simple/templates/open_graph.html @@ -0,0 +1,33 @@ +{% if article is defined %} + + + + + + + + + +{% elif page is defined %} + + + + + + + + + +{% else %} + + + + + + + + + +{% endif %} + + diff --git a/themes/simple/templates/pagination.html b/themes/simple/templates/pagination.html new file mode 100644 index 0000000..8c08e1c --- /dev/null +++ b/themes/simple/templates/pagination.html @@ -0,0 +1,11 @@ +{% if DEFAULT_PAGINATION %} +
+ {% if articles_page.has_previous() %} + « + {% endif %} +
Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
+ {% if articles_page.has_next() %} + » + {% endif %} +
+{% endif %} diff --git a/themes/simple/templates/search.html b/themes/simple/templates/search.html new file mode 100644 index 0000000..f32369e --- /dev/null +++ b/themes/simple/templates/search.html @@ -0,0 +1,35 @@ +{% extends "base.html" %} + +{% block title %} + Search {{ super() }} +{% endblock title %} + +{% block extra_head %} + + + + + + + + + +{% endblock %} + +{% block content %} +

Search

+
+
+ +
+
+
+{% endblock content %} diff --git a/themes/simple/templates/tags.html b/themes/simple/templates/tags.html new file mode 100644 index 0000000..8901554 --- /dev/null +++ b/themes/simple/templates/tags.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Tags{% endblock %} + +{% block content %} +

Tags for {{ SITENAME }}

+ +{% endblock %}