File context warning fixed (#153)

This commit is contained in:
Martin Hoefling 2019-05-14 22:28:57 +02:00 committed by Hanzei
parent 4c19d875de
commit 46f2ab37d4

View file

@ -55,6 +55,7 @@
{{ range sort $pages "Params.weight" }} {{ range sort $pages "Params.weight" }}
{{ if ne .Name "contact.md" }} {{ if ne .Name "contact.md" }}
{{ if .File }}
{{ if eq .File.Dir "projects/" }} {{ if eq .File.Dir "projects/" }}
<!-- Now for some cool projects --> <!-- Now for some cool projects -->
{{ partial "home/projects.html" . }} {{ partial "home/projects.html" . }}
@ -95,6 +96,7 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }}
<!-- Let`s chat, shall we? --> <!-- Let`s chat, shall we? -->
{{ with .Resources.GetMatch "contact.md" }} {{ with .Resources.GetMatch "contact.md" }}
<div class="section" id="{{ .File.TranslationBaseName }}"> <div class="section" id="{{ .File.TranslationBaseName }}">