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 0000000..1cf13b9 Binary files /dev/null and b/content/images/favicon.ico differ 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 %} - - - - - 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) }} +
+ +
+ {{ 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 %} + + + 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 %} +
+

{{ article.title }}

+
+ +
By + {% for author in article.authors %} + {{ author }} + {% endfor %} +
+
+
+ + {{ article.summary|striptags }} + +
+
+ {% 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 %}