From 8a0ffa824cc10b037b2ce9aa5cfcf9049bd937fe Mon Sep 17 00:00:00 2001 From: Freezed <2160318-free_zed@users.noreply.gitlab.com> Date: Sat, 25 Jul 2020 23:06:29 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Fix=20URLs=20&=20remove=20useles?= =?UTF-8?q?s=20templates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TODO footer : * Add pages * Add last commit hash/link * Bottom line TODO plugin: * post_stats * tipue_search * neighbors * https://github.com/pelican-plugins/seo Source : https://gitlab.com/axil/pelican-uberspot/-/blob/master/README.md --- pelicanconf.py | 1 + theme-uberspot/templates/author.html | 2 -- theme-uberspot/templates/authors.html | 0 theme-uberspot/templates/base.html | 21 +++++---------- theme-uberspot/templates/categories.html | 2 +- theme-uberspot/templates/category.html | 2 +- theme-uberspot/templates/disqus.html | 32 ----------------------- theme-uberspot/templates/index.html | 2 +- theme-uberspot/templates/javascripts.html | 3 --- theme-uberspot/templates/pagination.html | 15 ----------- theme-uberspot/templates/piwik.html | 17 ------------ theme-uberspot/templates/search.html | 30 --------------------- 12 files changed, 10 insertions(+), 117 deletions(-) delete mode 100644 theme-uberspot/templates/author.html delete mode 100644 theme-uberspot/templates/authors.html delete mode 100644 theme-uberspot/templates/disqus.html delete mode 100644 theme-uberspot/templates/javascripts.html delete mode 100644 theme-uberspot/templates/pagination.html delete mode 100644 theme-uberspot/templates/piwik.html delete mode 100644 theme-uberspot/templates/search.html diff --git a/pelicanconf.py b/pelicanconf.py index 17e0a35..e6ae878 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -60,6 +60,7 @@ ARTICLE_URL = 'articles/{date:%Y}/{date:%m}/{slug}/' AUTHOR_URL = 'a-propos/' CATEGORY_SAVE_AS = '{slug}/index.html' CATEGORY_URL = '{slug}/' +CATEGORIES_URL = 'categories/' PAGE_LANG_SAVE_AS = '{slug}/{lang}/index.html' PAGE_LANG_URL = '{slug}/{lang}/' PAGE_SAVE_AS = '{slug}/index.html' diff --git a/theme-uberspot/templates/author.html b/theme-uberspot/templates/author.html deleted file mode 100644 index 12bdb2f..0000000 --- a/theme-uberspot/templates/author.html +++ /dev/null @@ -1,2 +0,0 @@ -{% extends "index.html" %} -{% block title %}{{ SITENAME }} - Publications par «{{ author }}»{% endblock %} diff --git a/theme-uberspot/templates/authors.html b/theme-uberspot/templates/authors.html deleted file mode 100644 index e69de29..0000000 diff --git a/theme-uberspot/templates/base.html b/theme-uberspot/templates/base.html index 296a71e..2ef8bb2 100644 --- a/theme-uberspot/templates/base.html +++ b/theme-uberspot/templates/base.html @@ -12,16 +12,13 @@ - {% if SITE_ICON %} - + {% if FAVICO %} + {% endif %} {% if FEED_ATOM %} - + {% endif %} - {% if FEED_RSS %} - - {% endif %} - +

{{ SITENAME }}

@@ -43,14 +40,8 @@
- {% block content %}{% endblock %} - {% if PDF_PROCESSOR %} - PDF - {% endif %} - {% if PRINT %} - Print - {% endif %} - {% block footnote %}{% endblock %} + {% block content %}{% endblock content %} + {% block footnote %}{% endblock footnote %}