47 lines
1.9 KiB
HTML
47 lines
1.9 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang='{{ .Site.Language.Lang }}'>
|
||
|
<head>
|
||
|
<title>{{ .Title }}</title>
|
||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
|
||
|
{{ if .Description }}
|
||
|
<meta name="description" content="{{ .Description }}">
|
||
|
{{ else }}
|
||
|
<meta name="description" content="{{ .Site.Params.description }}">
|
||
|
{{ end }}
|
||
|
{{ if .Params.Tags }}
|
||
|
<meta name="keywords" content="{{ delimit .Params.Tags ", "}}">
|
||
|
{{ else }}
|
||
|
<meta name="keywords" content="{{ .Site.Params.keywords }}">
|
||
|
{{ end }}
|
||
|
{{ if .Params.author }}
|
||
|
<meta name="author" content="{{ .Params.author }}">
|
||
|
{{ else }}
|
||
|
<meta name="author" content="{{ .Site.Params.author }}">
|
||
|
{{ end }}
|
||
|
<link rel="stylesheet" href="/css/style.css">
|
||
|
<link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}">
|
||
|
{{ if and (.Site.Params.favicon) (fileExists (print "static/images/" .Site.Params.favicon)) }}
|
||
|
{{ $name := .Site.Params.favicon }}
|
||
|
{{ $splitted := split $name "." }}
|
||
|
{{ $extension := index $splitted 1 }}
|
||
|
{{ if ( in "svg" $extension) }}
|
||
|
<link rel="icon" type="image/svg+xml" href="{{ $.Site.BaseURL }}images/{{ $name }}" sizes="any">
|
||
|
{{ else if (in "gif png" $extension) }}
|
||
|
<link rel="icon" type="image/{{ $extension }}" href="{{ $.Site.BaseURL }}images/{{ $name }}">
|
||
|
{{ end}}
|
||
|
{{ else if (fileExists "static/images/favicon.svg") }}
|
||
|
<link rel="icon" type="image/svg+xml" href="{{ $.Site.BaseURL }}images/favicon.svg">
|
||
|
{{ else if (fileExists "static/images/favicon.png") }}
|
||
|
<link rel="icon" type="image/png" href="{{ $.Site.BaseURL }}images/favicon.png">
|
||
|
{{ end }}
|
||
|
|
||
|
|
||
|
{{ partial "opengraph.html" . }}
|
||
|
|
||
|
{{ range .Site.Params.custom_css }}
|
||
|
<link rel="stylesheet" href="{{ . | relURL }}"/>
|
||
|
{{ end }}
|
||
|
{{ hugo.Generator }}
|
||
|
</head>
|