Change all urls to absolute ones

alternate-navbar
Maik de Kruif 3 years ago
parent 99c0d62efe
commit 2fb51ad906
Signed by: maik
GPG Key ID: 44A55AD1F0673FA6
  1. 2
      themes/maik-blog/layouts/_default/list.html
  2. 12
      themes/maik-blog/layouts/partials/favicons.html
  3. 2
      themes/maik-blog/layouts/partials/head.html
  4. 2
      themes/maik-blog/layouts/partials/javascript.html
  5. 2
      themes/maik-blog/layouts/portfolio/list.html
  6. 2
      themes/maik-blog/layouts/writeups/list.html

@ -62,7 +62,7 @@
{{- end }}
</div>
{{- if not .Params.hideReadMore }}
<div><a class="read-more button" href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore | default "Read more" }}
<div><a class="read-more button" href="{{.Permalink}}">{{ $.Site.Params.ReadMore | default "Read more" }}
</a></div>
{{- end }}
</div>

@ -1,10 +1,10 @@
{{- with .Site.Params.favicon.color }}
<link rel="apple-touch-icon" sizes="180x180" href="{{"apple-touch-icon.png" | relURL}}">
<link rel="icon" type="image/png" sizes="32x32" href="{{"favicon-32x32.png" | relURL}}">
<link rel="icon" type="image/png" sizes="16x16" href="{{"favicon-16x16.png" | relURL}}">
<link rel="manifest" href="{{"site.webmanifest" | relURL}}">
<link rel="mask-icon" href="{{"safari-pinned-tab.svg" | relURL}}" color="{{.mask}}">
<link rel="shortcut icon" href="{{"favicon.ico" | relURL}}">
<link rel="apple-touch-icon" sizes="180x180" href="{{"apple-touch-icon.png" | absURL}}">
<link rel="icon" type="image/png" sizes="32x32" href="{{"favicon-32x32.png" | absURL}}">
<link rel="icon" type="image/png" sizes="16x16" href="{{"favicon-16x16.png" | absURL}}">
<link rel="manifest" href="{{"site.webmanifest" | absURL}}">
<link rel="mask-icon" href="{{"safari-pinned-tab.svg" | absURL}}" color="{{.mask}}">
<link rel="shortcut icon" href="{{"favicon.ico" | absURL}}">
<meta name="msapplication-TileColor" content="{{.msapplication}}">
<meta name="theme-color" content="{{.theme}}">
{{ end }}

@ -11,7 +11,7 @@
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" true) }}
{{- $style := resources.Get "scss/main.scss" | resources.ToCSS $options | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
<link rel="stylesheet" href="{{ $style.Permalink }}">
{{- range $val := $.Site.Params.customCSS }}
{{- if gt (len $val) 0 }}

@ -3,7 +3,7 @@
{{- $theme := resources.Get "js/theme.js" }}
{{- $nav := resources.Get "js/nav.js" }}
{{- $secureJS := slice $main $menu $theme $nav | resources.Concat "bundle.js" | resources.Minify | resources.Fingerprint "sha512" }}
<script type="text/javascript" src="{{ $secureJS.RelPermalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
<script type="text/javascript" src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
{{- if .Site.GoogleAnalytics }}
<!-- Global site tag (gtag.js) - Google Analytics -->

@ -69,7 +69,7 @@
{{- end}}
{{- if not .Params.hideReadMore }}
<div><a class="read-more button"
href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore | default "Read more" }}
href="{{.Permalink}}">{{ $.Site.Params.ReadMore | default "Read more" }}
</a></div>
{{- end }}
</div>

@ -64,7 +64,7 @@
</div>
{{- if not .Params.hideReadMore }}
<div><a class="read-more button"
href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore | default "Read more" }}
href="{{.Permalink}}">{{ $.Site.Params.ReadMore | default "Read more" }}
</a></div>
{{- end }}
</div>

Loading…
Cancel
Save