about summary refs log tree commit diff
path: root/layouts/partials/postlist.html
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-04-22 12:44:27 -0700
committerFranck Cuny <franck@fcuny.net>2021-04-22 12:44:27 -0700
commitfedc092d3229ac87b11f8f22b7d7e170e9bc2e88 (patch)
tree2aef7e597b280e864d64ae0dff01c796b26683d8 /layouts/partials/postlist.html
parenttoml: re-configure markup (diff)
downloadfcuny.net-fedc092d3229ac87b11f8f22b7d7e170e9bc2e88.tar.gz
layout: add a navbar
I want to differentiate blog's entries from more general notes. For
this, we create two menu entries, and add a navbar at the top.

The nav bar let us select between the two kind of articles: blogs or
notes. For now we have a single blog entry, and no notes.

The page to list entries is simplified: we use the same layout for all
lists (tags, notes, blogs).

The CSS is updated to support the new nav bar.
Diffstat (limited to 'layouts/partials/postlist.html')
-rw-r--r--layouts/partials/postlist.html20
1 files changed, 1 insertions, 19 deletions
diff --git a/layouts/partials/postlist.html b/layouts/partials/postlist.html
index 3695d82..28fd9b2 100644
--- a/layouts/partials/postlist.html
+++ b/layouts/partials/postlist.html
@@ -1,28 +1,10 @@
-<p><a href="/">&larr; Back to Franck's homepage</a></p>
-
-{{ range .GroupByDate "2006-Jan" }}
+{{ range .GroupByDate "2006" }}
   <h2>{{ .Key }}</h2>
   <ul>
     {{ range .Pages.ByDate }}
     <li>
       <div>
         <a href="{{ .Permalink }}"><h3>{{ .Title }}</h3></a>
-	    {{ if .Params.tags }}
-	    <div>
-	      Tags:
-	      {{ range $idx, $tag := .Params.tags }}
-	      <span class="tags"><a href="/tags/{{ $tag | urlize }}/">{{ $tag }}</a></span>
-	      {{ end }}
-	    </div>
-	    {{ else }}
-	    <div></div>
-	    {{ end }}
-      </div>
-      <div>
-	    <p>
-	      {{ .Summary }}
-	      <span><a href="{{ .Permalink }}">Read more →</a></span>
-	    </p>
       </div>
     </li>
     {{ end }}