Hugo Bilberry First commit to gitea@cowbay.org

This commit is contained in:
2018-11-09 16:23:58 +08:00
commit 16f4228909
1090 changed files with 399555 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
{{ if .Resources.GetMatch "featuredImage.*" }}
<div class="featured-image">
<a href="{{ .URL }}">
{{ if and (.Site.Params.resizeImages | default true) (.Params.resizeImages | default true) }}
<img src="{{ ((.Resources.GetMatch "featuredImage.*").Fill "700x350 q95").RelPermalink }}" alt="">
{{ else }}
<img src="{{ (.Resources.GetMatch "featuredImage.*").RelPermalink }}" alt="">
{{ end }}
</a>
</div>
{{ else if and (isset .Params "featuredimage") (ne .Params.featuredImage "") }}
<div class="featured-image">
<a href="{{ .URL }}">
<img src="{{ .Params.featuredImage | relURL }}" alt="">
</a>
</div>
{{ end }}