forked from tsc-vfl/hugo-page
Fix layout to compile with latest hugo version
This commit is contained in:
parent
2c57279611
commit
3377517655
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
{{ .Get "url"}}{{ page.Resources}}
|
||||
-->
|
||||
{{ $res := page.Resources.GetMatch (.Get "url") }}
|
||||
{{ $res := .Page.Resources.GetMatch (.Get "url") }}
|
||||
<a target="_blank" class="download press-download" href="{{ $res.RelPermalink }}">
|
||||
{{ .Inner }}
|
||||
</a>
|
||||
|
@ -1,7 +1,11 @@
|
||||
<!--
|
||||
{{ .Get "src"}}{{ page.Resources}}
|
||||
<p>{{ page.Resources }}</p>
|
||||
<p>Page: {{ page }}</p>
|
||||
{{ .Get "src"}}
|
||||
Scratch: {{ page.Scratch.Get "article" }}
|
||||
<p>[{{/* $article.Resources */}}]</p>
|
||||
-->
|
||||
<div class="press-img">
|
||||
{{- $res := page.Resources.GetMatch (.Get "src") -}}
|
||||
{{- $res := .Page.Resources.GetMatch (.Get "src") -}}
|
||||
<img{{ with .Get "alt" }} alt="{{ . }}"{{ end }} src="{{ $res.RelPermalink }}">
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user