diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-04-27 00:56:19 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-04-27 00:56:19 +0200 |
| commit | 7f391e070f69ecf01ade7916c0f83df099b11d79 (patch) | |
| tree | 0916ac1c288e91806d455d7609656d51748600ae /layouts/partials/head.html | |
| parent | d356641e2b45db0f87f64956ff91240edadf0a97 (diff) | |
| download | gohugo-theme-ed-7f391e070f69ecf01ade7916c0f83df099b11d79.tar.gz | |
Reformat a bit layout structure
Diffstat (limited to 'layouts/partials/head.html')
| -rw-r--r-- | layouts/partials/head.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 51ec8e3..be1f666 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,3 +1,4 @@ +{{/* */}} <head prefix="og: http://ogp.me/ns#; dc: http://purl.org/dc/terms/#"> {{- $description := print .Params.Description -}} {{- if or .IsHome (eq .Params.Description "") (not .Params.Description) -}} @@ -5,11 +6,13 @@ {{- end -}} {{- $author := print .Site.Author.name -}} - {{- if .Params.author -}}{{ $author = .Params.author }}{{- end -}} + {{- if .Params.author -}}{{ $author = .Params.author }}{{- end }} <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width,initial-scale=1.0,shrink-to-fit=no"> + <link rel="canonical" href="{{ .Permalink }}"> + <title>{{ block "title" . }}{{ with .Params.Title }}{{ . }} - {{ end }}{{ .Site.Title }}{{ end }}</title> <meta name="description" content="{{ $description }}"> {{ hugo.Generator }} @@ -37,12 +40,9 @@ <meta property="og:description" content="{{ .Site.Params.Description }}"> <meta property="og:type" content="website"> - <!-- CSS link --> - {{- $sass := resources.Get "sass/style.scss" }} - {{- $style := $sass | resources.ToCSS | resources.Minify | resources.Fingerprint }} - <link rel="stylesheet" href="{{ $style.RelPermalink }}"> + {{ partial "styles.html" . -}} + {{ partial "scripts.html" . -}} - <!-- Icons --> <link rel="apple-touch-icon-precomposed" sizes="180x180" href="{{ "apple-touch-icon-precomposed.png" | relURL }}"> <link rel="shortcut icon" href="{{ "favicon.ico" | relURL }}"> |
