Remove $baseUrl variable
I am convinced it is unused and occurs just because of being copy pasted.
This commit is contained in:
parent
bd4ddefff3
commit
d552a14513
@ -1,4 +1,3 @@
|
||||
{{ $baseUrl := .Site.BaseURL }}
|
||||
{{ $paginator := .Paginate (.Pages.ByPublishDate.Reverse) }}
|
||||
{{ partial "paginator-buttons.html" $paginator }}
|
||||
{{ range $paginator.Pages }}
|
||||
|
@ -4,7 +4,6 @@
|
||||
<p class="has-text-grey">
|
||||
{{- T "author" -}}: {{ range .Params.authors }}{{ with $.Site.GetPage (printf "authors/%s" .) }}<a class="separateWithCommas" href="{{ .Permalink }}">{{ .Title }}</a>{{ end }}{{ end }}
|
||||
</p>
|
||||
{{ $baseUrl := .Site.BaseURL }}
|
||||
{{ if .Params.tags }}
|
||||
<p class="has-text-grey">
|
||||
{{- T "tags" -}}: {{ range .Params.tags }}{{ with $.Site.GetPage (printf "tags/%s" .) }}<a class="separateWithCommas" href="{{ .Permalink }}">{{ .Title }}</a>{{ end }}{{ end }}
|
||||
|
@ -1,4 +1,3 @@
|
||||
{{ $baseUrl := .Site.BaseURL }}
|
||||
{{ $paginator := .Paginate (.Pages.ByPublishDate.Reverse) }}
|
||||
{{ partial "paginator-buttons.html" $paginator }}
|
||||
{{ range $paginator.Pages }}
|
||||
|
@ -4,7 +4,6 @@
|
||||
{{ .Content }}
|
||||
</div>
|
||||
<h3 class="title">{{ T "talks-paginator-heading" }}:</h3>
|
||||
{{ $baseUrl := .Site.BaseURL }}
|
||||
{{ $paginator := .Paginate ((.Pages.ByParam "when").Reverse) }}
|
||||
{{ partial "paginator-buttons.html" $paginator }}
|
||||
{{ range $paginator.Pages }}
|
||||
|
Loading…
Reference in New Issue
Block a user