mirror of https://github.com/onweru/compose.git

weru
20.42.2020 7053df09e3873dd79f0b85903e30369976f15fe2
update template
2 files modified
15 ■■■■ changed files
layouts/partials/document.html 5 ●●●●● patch | view | raw | blame | history
layouts/partials/nav.html 10 ●●●●● 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">