Skip to content

Commit 351389b

Browse files
committed
[🔧HUGO] URL -> Permalink and no twitter.svg
comment out the twitter.svg as it no longer lives in svg/ but in themes/ananke/assets/ananke/socials/twitter.svg and I could not work out how to render it from there? also with gohugo-ananke/ananke#275 .URL was renamed to .Permalink
1 parent d4070b4 commit 351389b

7 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎layouts/index.html‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h2 class="flex-none mt-5 w-80 mw8 center text-center">
4242
{{/* Range through the first $n_posts items of the section */}}
4343
{{ range (first $n_posts $section) }}
4444
{{ $event := .Params.event }}
45-
{{ $url := .URL }}
45+
{{ $url := .Permalink }}
4646
<div class="col-md-12 mb5">
4747
<div class="font-italic">
4848
{{ .Params.event_date }}
@@ -79,7 +79,7 @@ <h2 class="font-weight-bold text-primary">
7979
{{ .Params.excerpt }}
8080
</div>
8181
<div class="text-right">
82-
<a href="{{.URL}}">{{$.Param "read_more_copy" | default "watch now" }}</a>
82+
<a href="{{.Permalink}}">{{$.Param "read_more_copy" | default "watch now" }}</a>
8383
</div>
8484
</div>
8585
{{ end }}
@@ -93,7 +93,7 @@ <h2 class="font-weight-bold text-primary">
9393
{{ with .Site.GetPage "section" $section_name }}
9494
<!--
9595
<button class="float-right f5">
96-
<a href="{{ .URL }}">See all from {{ .Title }}</a>
96+
<a href="{{ .Permalink }}">See all from {{ .Title }}</a>
9797
</button>
9898
-->
9999
{{ end }}
@@ -145,7 +145,7 @@ <h2 class="flex-none w-80 mw8 center text-center">
145145
exists */}}
146146
{{ with .Site.GetPage "section" $section_name }}
147147
<button class="float-right f5">
148-
<a href="{{ .URL }}">See all from {{ .Title }}</a>
148+
<a href="{{ .Permalink }}">See all from {{ .Title }}</a>
149149
</button>
150150
{{ end }}
151151
</section>
@@ -313,7 +313,7 @@ <h4 class="flex-none mt-5 w-80 mw8 center text-center">
313313
<ul class="list-group list-group-flush">
314314
<li class="list-group-item text-right"
315315
style="padding-left:0; background-color: transparent;">
316-
<a href="{{ .URL }}">See all {{ $section_name }}</a>
316+
<a href="{{ .Permalink }}">See all {{ $section_name }}</a>
317317
</li>
318318
</ul>
319319
{{ end }}

‎layouts/partials/list-item.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
<span class="f6">{{ .Date.Format "January 2, 2006" }}</span>
55
{{ end }}
66

7-
<a href="{{ .URL }}" class="link black db">
7+
<a href="{{ .Permalink }}" class="link black db">
88
{{ .Title }}
99
</a>

‎layouts/partials/social-follow.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
{{ end }}
88
{{ with .Param "twitter" }}
99
<a href="{{ . }}" class="link-transition twitter link dib z-999 pt3 pt0-l mr2" title="Twitter link">
10-
{{ partial "svg/twitter.svg" (dict "size" $icon_size) }}
10+
<!-- { { partial "svg/twitter.svg" (dict "size" $icon_size) }} -->
1111
</a>
1212
{{ end }}
1313
{{ with .Param "twitter_2" }}
1414
<a href="{{ . }}" class="link-transition twitter link dib z-999 pt3 pt0-l mr2" title="Twitter link">
15-
{{ partial "svg/twitter.svg" (dict "size" $icon_size) }}
15+
<!-- { { partial "svg/twitter.svg" (dict "size" $icon_size) }} -->
1616
</a>
1717
{{ end }}
1818
{{ with .Param "instagram" }}

‎layouts/partials/summary-with-image.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
99
{{ $featured_image := (trim $featured_image "/") | absURL }}
1010
<div class="mb4 mb0-ns w-100 w-40-ns">
11-
<a href="{{.URL}}" class="db grow">
11+
<a href="{{.Permalink}}" class="db grow">
1212
<img src="{{ $featured_image }}" class="img w-100" alt="image from {{ .Title }}">
1313
</a>
1414
</div>
1515
{{ end }}
1616
<div class="blah w-100{{ if .Params.featured_image }} w-60-ns {{ end }}">
1717
<h1 class="f3 fw1 athelas mt0 lh-title">
18-
<a href="{{.URL}}" class="color-inherit dim link">
18+
<a href="{{.Permalink}}" class="color-inherit dim link">
1919
{{ .Title }}
2020
</a>
2121
</h1>
@@ -31,7 +31,7 @@ <h1 class="f3 fw1 athelas mt0 lh-title">
3131
{{ .Params.excerpt }}
3232
</div>
3333

34-
<div class="text-right"><a href="{{.URL}}">{{$.Param "read_more_copy" | default "read more" }}</a></div>
34+
<div class="text-right"><a href="{{.Permalink}}">{{$.Param "read_more_copy" | default "read more" }}</a></div>
3535
</div>
3636
</div>
3737
</div>

‎layouts/partials/summary.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<span class="f6">{{ .Date.Format "January 2, 2006" }}</span>
33
{{ end }}
44
<h3 class="f3 near-black">
5-
<a href="{{ .URL }}" class="link black dim">
5+
<a href="{{ .Permalink }}" class="link black dim">
66
{{ .Title }}
77
</a>
88
</h3>

‎layouts/post/summary-with-image.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<article class="pr3-ns pl3-ns pb3-ns">
2-
<a class="db pv2 ph3 ph0-l no-underline dark-gray dim" href="{{ .URL }}"></a>
2+
<a class="db pv2 ph3 ph0-l no-underline dark-gray dim" href="{{ .Permalink }}"></a>
33
<div class="row">
44
{{ if .Params.featured_image }}
55
<div class="col-md-4">

‎layouts/rails-camp/summary-with-image.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
77
{{ $featured_image := (trim $featured_image "/") | absURL }}
88
<div class="pr3-ns pl3-ns pb3-ns mb4 mb0-ns w-100 w-40-ns">
9-
<a href="{{.URL}}" class="db grow">
9+
<a href="{{.Permalink}}" class="db grow">
1010
<img src="{{ $featured_image }}" class="img" alt="image from {{ .Title }}">
1111
</a>
1212
</div>
1313
{{ end }}
1414
<div class="blah w-100{{ if .Params.featured_image }} w-60-ns pl3-ns{{ end }}">
1515
<h1 class="f3 fw1 athelas mt0 lh-title">
16-
<a href="{{.URL}}" class="color-inherit dim link">
16+
<a href="{{.Permalink}}" class="color-inherit dim link">
1717
{{ .Title }}
1818
</a>
1919
</h1>
@@ -23,7 +23,7 @@ <h1 class="f3 fw1 athelas mt0 lh-title">
2323
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
2424
{{ .Params.excerpt }}
2525
</div>
26-
<a href="{{.URL}}" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">{{$.Param "read_more_copy" | default "read more" }}</a>
26+
<a href="{{.Permalink}}" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">{{$.Param "read_more_copy" | default "read more" }}</a>
2727
{{/* TODO: add author
2828
<p class="f6 lh-copy mv0">By {{ .Author }}</p> */}}
2929
</div>

0 commit comments

Comments
 (0)