First version of the theme
This commit is contained in:
commit
8dd30f6eb8
61 changed files with 1658 additions and 0 deletions
46
layouts/partials/header.html
Normal file
46
layouts/partials/header.html
Normal file
|
@ -0,0 +1,46 @@
|
|||
<!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>
|
Loading…
Add table
Add a link
Reference in a new issue