initial commit
This commit is contained in:
35
themes/hugo-sustain/layouts/partials/head.html
Normal file
35
themes/hugo-sustain/layouts/partials/head.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="author" content="{{ .Site.Params.Author }}" />
|
||||
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
|
||||
{{ with .Site.Params.keywords }}<meta name="description" content="{{ . }}">{{ end }}
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}img/favicon.ico">
|
||||
<title>
|
||||
{{- if .IsHome -}}
|
||||
{{- .Site.Title -}}
|
||||
{{- else -}}
|
||||
{{- if .Params.heading -}} {{- .Params.heading -}} {{- else -}} {{- .Site.Title -}} {{ print " | " }} {{- .Title -}} {{- end -}}
|
||||
{{- end -}}
|
||||
</title>
|
||||
{{ .Hugo.Generator }}
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/bootstrap-3.3.7.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/main.css" />
|
||||
{{- if .Params.highlight -}}
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/tomorrow-9.7.0.min.css">
|
||||
{{ end }}
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/fontawesome/css/all.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/fonts.css" />
|
||||
{{ range .Site.Params.custom_css }}
|
||||
<link rel="stylesheet" href="{{ $.Site.BaseURL}}{{ . }}">
|
||||
{{ end }}
|
||||
{{ `<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->` | safeHTML }}
|
||||
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
</head>
|
||||
Reference in New Issue
Block a user