all repos — website @ 9f704c758226e3983ad62bf95f1e226f4671ce28

My website

Add post-author relationship
Alan Pearce alan@alanpearce.eu
Sat, 11 Jan 2020 22:42:15 +0100
commit

9f704c758226e3983ad62bf95f1e226f4671ce28

parent

8e93db7f9e380ae6ef2f9b4c54fda4cb6bd1b305

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M themes/xmin/layouts/_default/baseof.htmlthemes/xmin/layouts/_default/baseof.html
@@ -14,7 +14,7 @@ <body>     <nav>
       <ul>
         {{- range .Site.Menus.main }}
-        <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
+        <li><a {{- if eq .URL "/" }} class="author"{{ end }} href="{{ .URL | relURL }}">{{ .Name }}</a></li>
         {{- end }}
       </ul>
     </nav>