Browse Source

format baseof.html

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

19
layouts/_default/baseof.html

@ -1,25 +1,26 @@
<!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 -}}
{{- with .OutputFormats.Get "rss" }}
{{- printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML -}}
{{ end }} {{ end }}
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ if .Params.description -}} {{ with (default .Site.Params.description .Params.description) -}}
<meta name="description" content="{{ .Params.description }}"> <meta name="description" content="{{- . -}}">
{{- end -}} {{- end -}}
{{ if .Params.keywords -}} {{ with .Params.keywords -}}
<meta name="description" content="{{ delimit .Params.keywords "," }}"> <meta name="description" content="{{ delimit . "," }}">
{{- end }} {{- end }}
{{ $style := resources.Get "/sass/main.scss" | resources.ToCSS -}} {{ $style := resources.Get "/sass/main.scss" | resources.ToCSS -}}
<link rel="stylesheet" href="{{ $style.Permalink }}" /> <link rel="stylesheet" href="{{ $style.Permalink }}">
<title> <title>
{{- block "title" . }}{{ .Site.Title }}{{ end -}} {{- block "title" . }}{{ .Site.Title }}{{ end -}}

Loading…
Cancel
Save