| layouts/partials/document.html | ●●●●● patch | view | raw | blame | history | |
| layouts/partials/nav.html | ●●●●● patch | view | raw | blame | history |
layouts/partials/document.html
@@ -2,7 +2,8 @@ <div> {{- partial "sidebar.html" . }} </div> <div class="content"> <section class="content"> <h1>{{ .Title }}</h1> {{- .Content }} <div class="pager"> {{- with .Next }} @@ -12,5 +13,5 @@ <a href="{{ .Permalink }}" id="next">{{ .Title }}</a> {{- end }} </div> </div> </section> </div> layouts/partials/nav.html
@@ -1,5 +1,13 @@ <nav class="wrap nav"> <a href="{{ .Site.BaseURL }}"><img src='{{ absURL "images/compose.svg" }}'> <a href="{{ .Site.BaseURL }}"> <picture> {{- $logos := .Site.Params.logo }} {{- $normalPath := absURL (printf "images/%s" $logos.lightMode) }} {{- $darkPath := absURL (printf "images/%s" $logos.darkMode) }} <source srcset = '{{ $darkPath }}' media="(prefers-color-scheme: dark)"> <img srcset = '{{ $normalPath }}' alt = '{{ .Site.Title }} Logo'> </picture> </a> {{- partial "search.html" . }} <ul class="nav_body">