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:
parent
52f713c378
commit
a88675fd79
@ -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 }}
|
||||
|
||||
@ -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" }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user