mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
layouts: use absURL to construct absolute URLs instead of concatenating with .Site.BaseURL
This commit is contained in:
parent
b3b4386d01
commit
3eedfa1f8d
@ -1,6 +1,6 @@
|
|||||||
<footer class="{{ .Site.Params.background_color_class | default "bg-black" }} bottom-0 w-100 pa3" role="contentinfo">
|
<footer class="{{ .Site.Params.background_color_class | default "bg-black" }} bottom-0 w-100 pa3" role="contentinfo">
|
||||||
<div class="flex justify-between">
|
<div class="flex justify-between">
|
||||||
<a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="{{ .Site.BaseURL }}" >
|
<a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="{{ "/" | absURL }}" >
|
||||||
© {{ with .Site.Copyright | default .Site.Title }} {{ . | safeHTML }} {{ now.Format "2006"}} {{ end }}
|
© {{ with .Site.Copyright | default .Site.Title }} {{ . | safeHTML }} {{ now.Format "2006"}} {{ end }}
|
||||||
</a>
|
</a>
|
||||||
<div>{{ partial "social-follow.html" . }}</div>
|
<div>{{ partial "social-follow.html" . }}</div>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
User-agent: *
|
User-agent: *
|
||||||
# robotstxt.org - if ENV production variable is false robots will be disallowed.
|
{{/* robotstxt.org - if ENV production variable is false robots will be disallowed. */ -}}
|
||||||
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") -}}
|
||||||
Allow: /
|
Allow: /
|
||||||
Sitemap: {{.Site.BaseURL}}/sitemap.xml
|
Sitemap: {{ "/sitemap.xml" | absURL }}
|
||||||
{{ else }}
|
{{ else -}}
|
||||||
Disallow: /
|
Disallow: /
|
||||||
{{ end }}
|
{{ end -}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user