feat: update for netlify dev support

This commit is contained in:
Henk Verlinde
2021-04-02 19:45:05 +02:00
parent 73cc63324e
commit 10d0b45203
37 changed files with 112 additions and 102 deletions

View File

@ -7,10 +7,10 @@
<div class="card-list">
{{ $currentSection := .CurrentSection }}
{{ range where .Site.RegularPages.ByTitle "Section" .Section }}
{{ if in (.Permalink | string) $currentSection.RelPermalink }}
{{ if in (.RelPermalink | string) $currentSection.RelPermalink }}
<div class="card my-3">
<div class="card-body">
<a class="stretched-link" href="{{ .Permalink }}">{{ .Params.title | title }} &rarr;</a>
<a class="stretched-link" href="{{ .RelPermalink }}">{{ .Params.title | title }} &rarr;</a>
</div>
</div>
{{ end }}