1
0
mirror of https://github.com/danbee/danbarber.me.hugo.git synced 2025-03-04 08:59:18 +00:00

.URL is deprecated

This commit is contained in:
Daniel Barber 2021-12-15 20:48:35 -06:00
parent 52f713c378
commit a88675fd79
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<article class="post outer">
<header>
<div class="container">
<h3 class="post__title"><a href="{{.URL}}">{{.Title}}</a></h3>
<h3 class="post__title"><a href="{{.RelPermalink}}">{{.Title}}</a></h3>
<p class="post__date">{{.Date.Format "Jan 2, 2006"}}</p>
</div>
@ -10,7 +10,7 @@
{{ if .Truncated }}
{{.Summary}}
<p class="post__read-more"><a href="{{.URL}}">Read on →</a></p>
<p class="post__read-more"><a href="{{.RelPermalink}}">Read on →</a></p>
{{ else }}
{{.Content}}
{{ end }}

View File

@ -15,7 +15,7 @@
{{ $tiny := .Scratch.Get "tiny" }}
{{ $small := .Scratch.Get "small" }}
<a class="photos__link" href={{.URL}}>
<a class="photos__link" href={{.RelPermalink}}>
<img class="photos__thumb"
srcset="
{{ if ge $src.Width "300" }}