Browse Source

format baseof.html

master
Alexander Avery 9 months ago
parent
commit
06048b5f3b
  1. 35
      layouts/_default/baseof.html

35
layouts/_default/baseof.html

@ -1,29 +1,30 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
<head>
<link rel="shortcut icon" href="/images/favicon.ico"/>
{{ with .OutputFormats.Get "rss" }}
{{- printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML -}}
{{ end }}
<link rel="shortcut icon" href="/images/favicon.ico">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
{{- with .OutputFormats.Get "rss" }}
{{- printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML -}}
{{ end }}
{{ if .Params.description -}}
<meta name="description" content="{{ .Params.description }}">
{{- end -}}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ if .Params.keywords -}}
<meta name="description" content="{{ delimit .Params.keywords "," }}">
{{- end }}
{{ with (default .Site.Params.description .Params.description) -}}
<meta name="description" content="{{- . -}}">
{{- end -}}
{{ $style := resources.Get "/sass/main.scss" | resources.ToCSS -}}
<link rel="stylesheet" href="{{ $style.Permalink }}" />
{{ with .Params.keywords -}}
<meta name="description" content="{{ delimit . "," }}">
{{- end }}
<title>
{{- block "title" . }}{{ .Site.Title }}{{ end -}}
</title>
{{ $style := resources.Get "/sass/main.scss" | resources.ToCSS -}}
<link rel="stylesheet" href="{{ $style.Permalink }}">
<title>
{{- block "title" . }}{{ .Site.Title }}{{ end -}}
</title>
</head>
<body>

Loading…
Cancel
Save