about summary refs log tree commit diff
path: root/users/fcuny/notes/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--users/fcuny/notes/layouts/partials/header.html15
-rw-r--r--users/fcuny/notes/layouts/partials/postlist.html20
2 files changed, 16 insertions, 19 deletions
diff --git a/users/fcuny/notes/layouts/partials/header.html b/users/fcuny/notes/layouts/partials/header.html
new file mode 100644
index 0000000..f918823
--- /dev/null
+++ b/users/fcuny/notes/layouts/partials/header.html
@@ -0,0 +1,15 @@
+<header>
+  <nav>
+    <a href="{{ .Site.Home.Permalink }}">{{ .Site.Home.Title }}</a>
+    <ul>
+      {{ $currentPage := . }}
+      {{ range .Site.Menus.main }}
+      <li>
+        <a class='{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}menu-active{{ end }}' href="{{ absURL .URL }}">
+          {{ .Title }}
+        </a>
+      </li>
+      {{ end }}
+    </ul>
+  </nav>
+</header>
diff --git a/users/fcuny/notes/layouts/partials/postlist.html b/users/fcuny/notes/layouts/partials/postlist.html
index 3695d82..28fd9b2 100644
--- a/users/fcuny/notes/layouts/partials/postlist.html
+++ b/users/fcuny/notes/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 }}