From 71ba28ad874d62cd5c66188e75d11e5fd74fd944 Mon Sep 17 00:00:00 2001 From: Freezed <2160318-free_zed@users.noreply.gitlab.com> Date: Sun, 6 Sep 2020 23:56:42 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Edit=20theme=20for=20first=20rel?= =?UTF-8?q?ease?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pelicanconf.py | 6 +-- theme-uberspot/static/css/main.css | 43 +++++--------------- theme-uberspot/templates/article.html | 3 -- theme-uberspot/templates/article_header.html | 2 +- theme-uberspot/templates/base.html | 20 +++++---- theme-uberspot/templates/commit | 1 + theme-uberspot/templates/date | 1 + theme-uberspot/templates/footer.html | 22 ++++++---- theme-uberspot/templates/index.html | 2 +- theme-uberspot/templates/js_https.html | 9 ---- theme-uberspot/templates/page.html | 12 +++++- theme-uberspot/templates/time | 1 + 12 files changed, 54 insertions(+), 68 deletions(-) create mode 100644 theme-uberspot/templates/commit create mode 100644 theme-uberspot/templates/date delete mode 100644 theme-uberspot/templates/js_https.html create mode 100644 theme-uberspot/templates/time diff --git a/pelicanconf.py b/pelicanconf.py index e6ae878..9f76869 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -8,7 +8,7 @@ DEFAULT_PAGINATION = False PATH = 'content' SITEURL = 'http://127.0.0.1:8000' RELATIVE_URLS = False -SITENAME = 'pro.zind' +SITENAME = 'pro[zind]' SITE_SOURCE = "https://gitlab.com/free_zed/free_zed.gitlab.io" SITESUBTITLE = "Histoires d'un perfectioniste sous pression…" TIMEZONE = 'Europe/Paris' @@ -23,7 +23,7 @@ AUTHOR_FEED_RSS = None # Blogroll LINKS = (('Archives', '/articles/'), ('Tags', '/tags/'), - ('Mentions légales', '/mentions-legales/'),) + ('Contact', '/contact/'),) # Social widget SOCIAL = (('gitlab', 'https://gitlab.com/free_zed'), @@ -73,7 +73,7 @@ YEAR_ARCHIVE_SAVE_AS = 'articles/{date:%Y}/index.html' YEAR_ARCHIVE_URL = 'articles/{date:%Y}/' # URL of the repo to link build commit -REPO_COMMIT_URL = 'http://git.localhost/repo/commit' +REPO_COMMIT_URL = 'https://gitlab.com/free_zed/commit' # Max number of tags displayed in achives # Used in template `taglist_sort.html` diff --git a/theme-uberspot/static/css/main.css b/theme-uberspot/static/css/main.css index 51618b3..73b625c 100644 --- a/theme-uberspot/static/css/main.css +++ b/theme-uberspot/static/css/main.css @@ -538,38 +538,6 @@ iframe.twitter-follow-button { margin-top: 5px; } -/* Disqus comments */ - -#disqus_thread { - border-top: 4px solid #ddd; - margin-top: 50px; -} -#dsq-content { - font-size: 13px !important; -} -#dsq-content #dsq-global-toolbar, #dsq-content ul.dsq-login-buttons, #dsq-content div.dsq-options, -#dsq-content #dsq-comments, #dsq-content #dsq-pagination { - margin-bottom: 20px !important; -} -div.dsq-tooltip-small { - width: auto; -} -#dsq-content ul.dsq-login-buttons { - padding-top: 10px !important; -} -#dsq-comment-count { - background: url('/resources/comment.png') no-repeat left top; - padding-left: 20px; - text-transform: lowercase; - white-space: nowrap; -} -#dsq-footer a > em { - text-decoration: none !important; -} -a.dsq-brlink { - font-size: 13px !important; -} - /* Post and project lists */ #related-posts { @@ -648,6 +616,17 @@ img.gravatar { padding: 0 10px; } +body > nav { + font-size: 20px; + font-weight: bold; + line-height: 30px; + text-align: center; +} + +body > nav > a { + text-align: center; +} + /* =Footer -------------------------------------------------------------- */ diff --git a/theme-uberspot/templates/article.html b/theme-uberspot/templates/article.html index 0c63141..8859b37 100644 --- a/theme-uberspot/templates/article.html +++ b/theme-uberspot/templates/article.html @@ -28,8 +28,5 @@ {% endif %} - {% if DISQUS_SITENAME %} - {% include "disqus.html" %} - {% endif %} {% endblock %} diff --git a/theme-uberspot/templates/article_header.html b/theme-uberspot/templates/article_header.html index 3684acb..d7fffd5 100644 --- a/theme-uberspot/templates/article_header.html +++ b/theme-uberspot/templates/article_header.html @@ -13,7 +13,7 @@ {% endif %} {% if article.translations %} - | Traductions: + | Traductions : {% for translation in article.translations %} {{ translation.lang }} {% endfor %} diff --git a/theme-uberspot/templates/base.html b/theme-uberspot/templates/base.html index 2ef8bb2..263ad7f 100644 --- a/theme-uberspot/templates/base.html +++ b/theme-uberspot/templates/base.html @@ -31,11 +31,6 @@ {{ cat }} {% endfor %} {% endif %} - {% if DISPLAY_PAGES_ON_MENU -%} - {% for pg in pages %} - {{ pg.title }} - {% endfor %} - {% endif %} @@ -44,13 +39,20 @@ {% block footnote %}{% endblock footnote %} + +
{% include "footer.html" %}
- {% if JS_HTTPS %} - {% include "js_https.html" %} - {% endif %} - diff --git a/theme-uberspot/templates/commit b/theme-uberspot/templates/commit new file mode 100644 index 0000000..7bb9b33 --- /dev/null +++ b/theme-uberspot/templates/commit @@ -0,0 +1 @@ +<foobar> diff --git a/theme-uberspot/templates/date b/theme-uberspot/templates/date new file mode 100644 index 0000000..5ca0db6 --- /dev/null +++ b/theme-uberspot/templates/date @@ -0,0 +1 @@ +20/01/19 diff --git a/theme-uberspot/templates/footer.html b/theme-uberspot/templates/footer.html index 1ca3093..6a038ac 100644 --- a/theme-uberspot/templates/footer.html +++ b/theme-uberspot/templates/footer.html @@ -1,14 +1,18 @@ -{% if SOCIAL %} -{% include 'social.html' %} -{% endif %} +{% if SOCIAL %}{% include 'social.html' %}{% endif %} -Powered by Pelican using uberspot theme +Site construit le + + {% include 'date' %} à {% include 'time' %} [UTC] + +avec le commit + + {% include 'commit' %} + • -Background image from Subtle Patterns - -{% if SITE_SOURCE %} +Mentions légales +
+Motorisé par Pelican, qui tire grand avantage de Python • -Source code -{% endif %} +Image de fond par Subtle Patterns diff --git a/theme-uberspot/templates/index.html b/theme-uberspot/templates/index.html index 372bd9f..7caaef9 100644 --- a/theme-uberspot/templates/index.html +++ b/theme-uberspot/templates/index.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block content %} -

Notes récentes

+

Dernières publications

    {% if articles %} diff --git a/theme-uberspot/templates/js_https.html b/theme-uberspot/templates/js_https.html deleted file mode 100644 index c43c884..0000000 --- a/theme-uberspot/templates/js_https.html +++ /dev/null @@ -1,9 +0,0 @@ -{% if DOMAIN %} - -{% endif %} diff --git a/theme-uberspot/templates/page.html b/theme-uberspot/templates/page.html index 5ca814a..421c5f4 100644 --- a/theme-uberspot/templates/page.html +++ b/theme-uberspot/templates/page.html @@ -1,11 +1,21 @@ {% extends "base.html" %} {% block title %}{{ page.title|striptags }}{% endblock %} + {% block content %}

    {{ page.title|striptags }}

    + {% if page.translations %} +

    Traductions: + {% for translation in page.translations %} + [{{ translation.lang }}] + {% if not loop.last %} + • + {% endif %} + {% endfor %} +

    + {% endif %}
    -
    {{ page.content }}
    diff --git a/theme-uberspot/templates/time b/theme-uberspot/templates/time new file mode 100644 index 0000000..06a416b --- /dev/null +++ b/theme-uberspot/templates/time @@ -0,0 +1 @@ +22:11:50