Open Graph metadata, Discord icon
This commit is contained in:
37
layouts/partials/head.html
Normal file
37
layouts/partials/head.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="description" content="{{ if .Description }}{{ .Description }}{{else if .IsPage}}{{ .Summary | plainify}}{{ else }}{{.Site.Params.description}}{{ end }}">
|
||||
<meta name="author" content="{{ with .Params.author }}{{ . }}{{else}}{{ with .Site.Params.author}}{{ . }}{{ end }}{{end}}">
|
||||
|
||||
{{ "<!-- Mobile Specific Meta -->" | safeHTML }}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{{ hugo.Generator }}
|
||||
|
||||
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else if .IsPage}}{{ .Title }}{{" | "}}{{ .CurrentSection.Title }}{{else if eq .Section "author" }}{{if .Params.name}}{{.Params.name}} | {{ i18n "authorOfPostsOnBlog" }} „{{.Site.Title}}" {{else}}{{ i18n "authorsOfPostsOnBlog" }} „{{.Site.Title}}"{{end}}{{else if eq .Section "blog" }}{{ i18n "blogs" }} | {{ .Site.Title}}{{else}}{{ .Title }}{{with .Params.Description}}{{" | " .}}{{ end }}{{ end }}</title>
|
||||
|
||||
|
||||
{{"<!-- Favicon -->" |safeHTML}}
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{ "images/favicon.ico" | absURL }}"/>
|
||||
|
||||
{{"<!-- CSS -->"|safeHTML}}
|
||||
{{"<!-- Fontawesome Icon font -->"|safeHTML}}
|
||||
<link rel="stylesheet" href="{{"plugins/themefisher-font/style.css" | absURL}}">
|
||||
{{"<!-- bootstrap.min css -->"|safeHTML}}
|
||||
<link rel="stylesheet" href="{{"plugins/bootstrap/dist/css/bootstrap.min.css"|absURL}}">
|
||||
{{"<!-- Animate.css -->"|safeHTML}}
|
||||
<link rel="stylesheet" href="{{"plugins/animate-css/animate.css"|absURL}}">
|
||||
{{"<!-- Magnific popup css -->"|safeHTML}}
|
||||
<link rel="stylesheet" href="{{"plugins/magnific-popup/dist/magnific-popup.css"|absURL}}">
|
||||
{{"<!-- Slick Carousel -->"|safeHTML}}
|
||||
<link rel="stylesheet" href="{{"plugins/slick-carousel/slick/slick.css"|absURL}}">
|
||||
<link rel="stylesheet" href="{{"plugins/slick-carousel/slick/slick-theme.css"|absURL}}">
|
||||
{{"<!-- Main Stylesheet -->"|safeHTML}}
|
||||
{{ $styles := resources.Get "css/style.css" | minify}}
|
||||
<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen">
|
||||
{{ "<!-- Custom CSS -->" | safeHTML }}
|
||||
{{ range .Site.Params.custom_css }}
|
||||
<link rel="stylesheet" href="{{ . | absURL }}">
|
||||
{{ end }}
|
||||
|
||||
{{- partial "head_custom.html" . }}
|
||||
</head>
|
||||
Reference in New Issue
Block a user