Browse Source

format baseof.html

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

35
layouts/_default/baseof.html

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

Loading…
Cancel
Save