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

weru
27.35.2020 ad058d4e01c59e351252568b2744185d4345f671
update template #23
3 files modified
12 ■■■■ changed files
layouts/partials/nav.html 4 ●●● patch | view | raw | blame | history
layouts/partials/sidebar.html 5 ●●●● patch | view | raw | blame | history
layouts/partials/sprites.html 3 ●●●●● patch | view | raw | blame | history
layouts/partials/nav.html
@@ -11,7 +11,9 @@
            {{ end }}
            <img srcset = '{{ $litPath }}' alt = '{{ $s.Title }} Logo'>
        </picture>
        <label class="nav_toggle">Menu</label>
        <label class="nav_toggle toggle" title="Site Menu" role="button">
            {{ partial "sprite" (dict "icon" "harmburger") }}
        </label>
    </a>
    <ul class="nav_body">
        <li class="nav-item">
layouts/partials/sidebar.html
@@ -1,10 +1,13 @@
<aside class="aside">
  <div>
    <label class="aside_toggle toggle" title="Docs Menu" role="button">Docs Menu {{ partial "sprite" (dict "icon" "harmburger") }}</label>
  </div>
  {{- template "tree" (dict "page" . "section" .FirstSection)  }}
  {{- define "tree" }}
  {{- $section := .section }}
  {{- $page := .page }}
  {{- $permalink := $page.RelPermalink }}
  <section class="section">
  <section class="section aside_inner">
    <h2 class="section_title{{ if eq $section.RelPermalink $permalink }} active{{ end }}"><a  href="{{ $section.Permalink }}" class="group">{{ $section.Title }}</a></h2>
      {{- $pages := $section.Pages }}
      {{- with $pages }}
layouts/partials/sprites.html
@@ -5,4 +5,7 @@
  <symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 511.999 511.999" id="search">
    <path d="M508.874 478.708L360.142 329.976c28.21-34.827 45.191-79.103 45.191-127.309C405.333 90.917 314.416 0 202.666 0S0 90.917 0 202.667s90.917 202.667 202.667 202.667c48.206 0 92.482-16.982 127.309-45.191l148.732 148.732c4.167 4.165 10.919 4.165 15.086 0l15.081-15.082c4.165-4.166 4.165-10.92-.001-15.085zM202.667 362.667c-88.229 0-160-71.771-160-160s71.771-160 160-160 160 71.771 160 160-71.771 160-160 160z"></path>
  </symbol>
  <symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 241 179" id="harmburger">
    <path d="M1 10C1 4.477 5.477 0 11 0h220c5.523 0 10 4.477 10 10s-4.477 10-10 10H11C5.477 20 1 15.523 1 10zm0 80c0-5.523 4.477-10 10-10h220c5.523 0 10 4.477 10 10s-4.477 10-10 10H11c-5.523 0-10-4.477-10-10zm9 69c-5.523 0-10 4.477-10 10s4.477 10 10 10h220c5.523 0 10-4.477 10-10s-4.477-10-10-10H10z"></path>
  </symbol>
</svg>