Remove $baseUrl variable

I am convinced it is unused and occurs just because of being copy pasted.
This commit is contained in:
Vojtěch Káně 2020-11-10 20:41:06 +01:00
parent bd4ddefff3
commit d552a14513
4 changed files with 0 additions and 4 deletions

View File

@ -1,4 +1,3 @@
{{ $baseUrl := .Site.BaseURL }}
{{ $paginator := .Paginate (.Pages.ByPublishDate.Reverse) }}
{{ partial "paginator-buttons.html" $paginator }}
{{ range $paginator.Pages }}

View File

@ -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 }}

View File

@ -1,4 +1,3 @@
{{ $baseUrl := .Site.BaseURL }}
{{ $paginator := .Paginate (.Pages.ByPublishDate.Reverse) }}
{{ partial "paginator-buttons.html" $paginator }}
{{ range $paginator.Pages }}

View File

@ -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 }}