about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-09-23 08:20:03 -0700
committerFranck Cuny <franck@fcuny.net>2024-09-23 08:20:03 -0700
commitcb8cf1f3ea5ef8515cb955410f3bbc59dea1ee16 (patch)
tree7637711209acd87601394b49e322aa2c618fd4e0
parentno need to use a custom template for notes (diff)
downloadfcuny.net-cb8cf1f3ea5ef8515cb955410f3bbc59dea1ee16.tar.gz
get rid of the about page
Move it to the index.
-rw-r--r--static/css/custom.css2
-rw-r--r--templates/base.html1
-rw-r--r--templates/index.html30
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 @@
 	  <li><a href="/">Home</a></li>
 	  <li><a href="/blog">Blog</a></li>
 	  <li><a href="/notes">Notes</a></li>
-	  <li><a href="/about">About</a></li>
 	  <li><a href="https://git.fcuny.net">Code</a></li>
 	</ul>
       </nav>
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 -%}
 
-<div class="content">
-  <div id="blog" class="section times">
-    <b>articles ⇢</b>
-    {%- set blog = get_section(path="blog/_index.md") -%}
-    {%- set post_count = blog.pages | length -%}
-    <ul class="post-list">
-      {%- for post in blog.pages %}
-      <li>
-        <a href="{{ post.path | safe }}">{{ post.title }}</a>
-        <span class="post-date">{{ post.date | date(format="%B %d, %Y")}}</span>
-      </li>
-      {%- endfor %}
-    </ul>
-
-    <b>notes ⇢</b>
-    {%- set notes = get_section(path="notes/_index.md") -%}
-    {%- set post_count = notes.pages | length -%}
-    <ul class="post-list">
-      {%- for post in notes.pages %}
-      <li>
-        <a href="{{ post.path | safe }}">{{ post.title }}</a>
-        <span class="post-date">{{ post.date | date(format="%B %d, %Y")}}</span>
-      </li>
-      {%- endfor %}
-    </ul>
-  </div>
-</div>
+{% if section.content %}
+  {{ section.content | safe }}
+{% endif %}
 
 {%- endblock content -%}