From cb8cf1f3ea5ef8515cb955410f3bbc59dea1ee16 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 23 Sep 2024 08:20:03 -0700 Subject: get rid of the about page Move it to the index. --- static/css/custom.css | 2 +- templates/base.html | 1 - templates/index.html | 30 +++--------------------------- 3 files changed, 4 insertions(+), 29 deletions(-) diff --git a/static/css/custom.css b/static/css/custom.css index e81f61c..b8e52b7 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -159,7 +159,7 @@ blockquote { /* Responsive layout */ @media (max-width: 768px) { .main-nav { - padding: 0.5em 1em; + padding: 0.5em 0em; } .main-nav li { diff --git a/templates/base.html b/templates/base.html index add20f0..71d81b3 100644 --- a/templates/base.html +++ b/templates/base.html @@ -23,7 +23,6 @@
  • Home
  • Blog
  • Notes
  • -
  • About
  • Code
  • diff --git a/templates/index.html b/templates/index.html index cf3e4b3..9c8f98d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,32 +2,8 @@ {%- block content -%} -
    -
    - articles ⇢ - {%- set blog = get_section(path="blog/_index.md") -%} - {%- set post_count = blog.pages | length -%} -
      - {%- for post in blog.pages %} -
    • - {{ post.title }} - -
    • - {%- endfor %} -
    - - notes ⇢ - {%- set notes = get_section(path="notes/_index.md") -%} - {%- set post_count = notes.pages | length -%} -
      - {%- for post in notes.pages %} -
    • - {{ post.title }} - -
    • - {%- endfor %} -
    -
    -
    +{% if section.content %} + {{ section.content | safe }} +{% endif %} {%- endblock content -%} -- cgit v1.2.3