Revision d29874d71285d1ca1fd4eff124ed8f5c4a0c23ea authored by Lars Bilke on 26 July 2023, 07:07:08 UTC, committed by Lars Bilke on 26 July 2023, 07:07:08 UTC
[ci] PETSc checks

See merge request ogs/ogs!4418
2 parent s 17cbb68 + 8519d6f
Raw File
footer-nav.html
{{ if .PrevInSection | or .NextInSection }}

{{ $segments := split .RelPermalink "/" }}
{{ $subsection := index $segments 2 }}

<div class="flex text-sm mb-4">
  <div class="w-1/2">
    {{ if .NextInSection }}
    {{ $nextSubsection := index (split .NextInSection.RelPermalink "/") 2 }}
    {{ if eq $nextSubsection $subsection }}
    <a href="{{ .NextInSection.Permalink }}" title="{{ .NextInSection.Permalink }}">
      <div class="mb-1"><i class="far fa-arrow-left"></i> Previous</div>
      <div class="italic">
        {{ .NextInSection.Title }}
      </div>
    </a>
    {{ end }}
    {{ end }}
  </div>
  <div class="w-1/2 text-right">
    {{ if .PrevInSection }}
    {{ $prevSubsection := index (split .PrevInSection.RelPermalink "/") 2 }}
    {{ if eq $prevSubsection $subsection }}
    <div class="tr">
      <a href="{{ .PrevInSection.Permalink }}" title="{{ .PrevInSection.Permalink }}">
        <div class="mb-1">Next <i class="far fa-arrow-right"></i></div>
        <div class="italic">
          {{ .PrevInSection.Title   }}
        </div>
      </a>
    </div>
    {{ end }}
    {{ end }}
  </div>
</div>
{{ end }}
back to top