From e1b3d69d162e218dd47e44c04cd1d6aa0925aec1 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Thu, 20 Jul 2023 16:09:02 -0400 Subject: [PATCH] modify waterspill: --- pelicanconf.py | 2 +- themes/waterspill-en/static/css/style.css | 10 ++++ themes/waterspill-en/templates/archives.html | 13 ++--- themes/waterspill-en/templates/article.html | 7 +-- themes/waterspill-en/templates/base.html | 21 ++++--- themes/waterspill-en/templates/index.html | 61 +++++++------------- themes/waterspill-en/templates/page.html | 1 - 7 files changed, 51 insertions(+), 64 deletions(-) diff --git a/pelicanconf.py b/pelicanconf.py index f2006ba..3b9b95a 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -16,7 +16,7 @@ MENUITEMS = [ ('Categories', f'{SITEBASE}/categories.html'), ] LINKS = ( - ('All My Accounts', 'https://tyrel.dev/links'), + ('Find Me', 'https://tyrel.dev/links'), ('Book Me', 'https://cal.com/tyrelsouza'), ) diff --git a/themes/waterspill-en/static/css/style.css b/themes/waterspill-en/static/css/style.css index 6fd1871..5bd7794 100644 --- a/themes/waterspill-en/static/css/style.css +++ b/themes/waterspill-en/static/css/style.css @@ -213,3 +213,13 @@ ol { font-size: 1px; line-height: 0px; } + +div.figure img { + max-width: 100%; +} + + +#site-notes { + margin-top: 3rem; + +} diff --git a/themes/waterspill-en/templates/archives.html b/themes/waterspill-en/templates/archives.html index c485aeb..c460e01 100644 --- a/themes/waterspill-en/templates/archives.html +++ b/themes/waterspill-en/templates/archives.html @@ -4,13 +4,12 @@
-

Archives of {{ SITENAME }}

- {% for article in dates %} -
{{ article.locale_date }}
-
{{ article.title }}
- - {% endfor %} -
+

Archives of {{ SITENAME }}

+ {% for article in dates %} +
{{ article.locale_date }}
+
{{ article.title }}
+ {% endfor %} +
diff --git a/themes/waterspill-en/templates/article.html b/themes/waterspill-en/templates/article.html index 5b4856a..5b50c7c 100644 --- a/themes/waterspill-en/templates/article.html +++ b/themes/waterspill-en/templates/article.html @@ -9,11 +9,10 @@

{{ article.locale_date }}

{{ article.content }} - {% include 'twitter.html' %} -

By {{ article.author }}{% if not SUPPRESS_ITEM_CATEGORIES %}, Category: {{ article.category }}{% endif %}

- {% if article.tags %}

Tags: {% for tag in article.tags %} -{{ tag }} / +

{% if not SUPPRESS_ITEM_CATEGORIES %}Category: {{ article.category }}{% endif %} + | {% if article.tags %}Tags: {% for tag in article.tags %} + {{ tag }} {% if not loop.last %} / {% endif %} {% endfor %}

{% endif %} diff --git a/themes/waterspill-en/templates/base.html b/themes/waterspill-en/templates/base.html index dd7962d..23e44c4 100644 --- a/themes/waterspill-en/templates/base.html +++ b/themes/waterspill-en/templates/base.html @@ -61,6 +61,16 @@ {% endif %} + {% if LINKS %} +
  • +

    External Links

    + +
  • + {% endif %} {% if not SUPPRESS_CATEGORIES_ON_MENU %}
  • Categories

    @@ -71,16 +81,6 @@
  • {% endif %} - {% if LINKS %} -
  • -

    Blogroll

    - -
  • - {% endif %} {% if SOCIAL %}
  • Social

    @@ -121,7 +121,6 @@ diff --git a/themes/waterspill-en/templates/index.html b/themes/waterspill-en/templates/index.html index 338155a..7f14be6 100644 --- a/themes/waterspill-en/templates/index.html +++ b/themes/waterspill-en/templates/index.html @@ -1,46 +1,27 @@ {% extends "base.html" %} {% block content_title %}{% endblock %} {% block content %} - {% if articles %} - {% for article in articles %} - {% if loop.index == 1 %} - -
    - -

    {{ article.title }}

    -

    {{ article.locale_date }}

    - - {{ article.content }} - - -

    By {{ article.author }}{% if not SUPPRESS_ITEM_CATEGORIES %}, Category: {{ article.category }}{% endif %}

    - {% if article.tags %}

    Tags: {% for tag in article.tags %} -{{ tag }} / -{% endfor %}

    {% endif %} - -
    - {% if loop.length > 1 %} + {% if articles %} + {% for article in articles %} + {% if loop.index <= 3 %}
    -

    Other articles

    -
    -{% endif %} -{% else %} -
    - -

    {{ article.title }}

    -

    {{ article.locale_date }}

    - - {{ article.summary }} -

    By {{ article.author }}{% if not SUPPRESS_ITEM_CATEGORIES %}, Category: {{ article.category }}{% endif %}

    - Continue reading … - - - - -
    - {% endif %} -{% endfor %} -{% else %} - +

    {{ article.title }}

    +

    {{ article.locale_date }}

    + {{ article.content }} +

    {% if not SUPPRESS_ITEM_CATEGORIES %}Category: {{ article.category }}{% endif %} | {% if article.tags %} Tags: {% for tag in article.tags %} {{ tag }} {% if not loop.last %} / {% endif %} {% endfor %}

    {% endif %} + {% endif %} + {% endfor %} + + +
    +

    Archives of {{ SITENAME }}

    + {% for article in dates %} + {% if loop.index > 3 %} +
    {{ article.locale_date }}
    +
    {{ article.title }}
    + {% endif %} + {% endfor %} +
    + {% endif %} {% endblock content %} diff --git a/themes/waterspill-en/templates/page.html b/themes/waterspill-en/templates/page.html index f9a091a..9812e31 100644 --- a/themes/waterspill-en/templates/page.html +++ b/themes/waterspill-en/templates/page.html @@ -5,7 +5,6 @@

    {{ page.title }}

    {{ page.content }} - {% include 'twitter.html' %} {% if PDF_PROCESSOR %}

    get the pdf

    {% endif %}