diff options
| author | Franck Cuny <franck@fcuny.net> | 2024-09-22 12:58:12 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2024-09-22 12:58:12 -0700 |
| commit | 6a20b0c18e5093219ae9393f3864354c46bb05cf (patch) | |
| tree | 4cad4c335d7681a4d64876ef56c51cad4ce74783 /templates/index.html | |
| parent | restructure a bit the index (diff) | |
| download | fcuny.net-6a20b0c18e5093219ae9393f3864354c46bb05cf.tar.gz | |
add a menu and improve readability
Add a menu with links to some sections. Tweak the CSS to make the
website a bit more readable.
Diffstat (limited to 'templates/index.html')
| -rw-r--r-- | templates/index.html | 59 |
1 files changed, 27 insertions, 32 deletions
diff --git a/templates/index.html b/templates/index.html index 5c11ab3..cf3e4b3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,38 +1,33 @@ {% extends "base.html" %} {%- block content -%} -<section id="blog" class="times"> -{% if section.content %} -<section id="introduction"> - {{ section.content | safe }} -</section> -{% endif %} - -<h2>articles ⇢</h2> -{%- set blog = get_section(path="blog/_index.md") -%} -{%- set post_count = blog.pages | length -%} -{%- for post in blog.pages %} -<article> - <h3><a href="{{- post.path|safe -}}">{{- post.title -}}</a></h3> - <time datetime="{{ post.date | date(format="%+")}}">{{ post.date | date(format="%B %m, %Y")}}</time> -</article> -{%- endfor %} - -<h2>notes ⇢</h2> -{%- set notes = get_section(path="notes/_index.md") -%} -{%- set post_count = notes.pages | length -%} -{%- for post in notes.pages %} -<article> - <h3><a href="{{- post.path|safe -}}">{{- post.title -}}</a></h3> - <time datetime="{{ post.date | date(format="%+")}}">{{ post.date | date(format="%B %m, %Y")}}</time> -</article> -{%- endfor %} - -<h2>contact</h2> - -Email: <a href="mailto:franck@fcuny.net">franck@fcuny.net</a> - -</section> +<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> {%- endblock content -%} |
