1
Fork 0

relative urls

main
Motiejus Jakštys 2022-04-12 12:13:41 +03:00
parent d9bc61848d
commit c6a769128f
2 changed files with 4 additions and 5 deletions

View File

@ -3,16 +3,15 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="{{ .Site.BaseURL }}">
{{ partial "html-meta.html" . -}}
<title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
{{ $ss := resources.Get "cheese/styles.scss" | resources.ToCSS (dict "enableSourceMap" true) | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $ss.Permalink }}">
{{ $css := resources.Get "_cheese/styles.scss" | resources.ToCSS (dict "enableSourceMap" true) | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
{{ with .Site.Params.favicon -}}
<link rel="shortcut icon" href="{{ . }}" type="image/x-icon">
{{ end -}}
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{ end -}}
</head>
<body>
@ -25,7 +24,7 @@
</nav>
{{ end -}}
<div>
<h1><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
<h1><a href="/">{{ .Site.Title }}</a></h1>
{{- if .Site.Params.subtitle }}<h2><a href="{{ .Site.BaseURL }}">{{ .Site.Params.subtitle }}</a></h2>{{- end }}
</div>
<nav>