add preview images
This commit is contained in:
@@ -1,29 +1,51 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
<head>
|
||||
<!-- set variables -->
|
||||
{{- $title := "" -}}
|
||||
{{- if .IsHome -}}
|
||||
{{- $title = .Site.Title -}}
|
||||
{{- else -}}
|
||||
{{- if .Params.heading -}}
|
||||
{{- $title = .Params.heading -}}
|
||||
{{- else -}}
|
||||
{{- $title = print .Site.Title " | " .Title -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- $image := "/img/profile.jpg" -}}
|
||||
{{- if isset .Params "headerimage" }} {{ $image = .Params.headerimage }} {{ end -}}
|
||||
<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 }}
|
||||
{{ with .Site.Params.keywords }}<meta name="keywords" content="{{ . }}" />{{ end }}
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}img/favicon.ico" />
|
||||
<link href="/blog/index.xml" rel="alternate" type="application/rss+xml" title="Max Mehl - blog feed">
|
||||
<link href="/categories/english/index.xml" rel="alternate" type="application/rss+xml" title="Max Mehl - blog feed (EN)">
|
||||
<link href="/categories/deutsch/index.xml" rel="alternate" type="application/rss+xml" title="Max Mehl - blog feed (DE)">
|
||||
<title>
|
||||
{{- if .IsHome -}}
|
||||
{{- .Site.Title -}}
|
||||
{{- else -}}
|
||||
{{- if .Params.heading -}} {{- .Params.heading -}} {{- else -}} {{- .Site.Title -}} {{ print " | " }} {{- .Title -}} {{- end -}}
|
||||
{{- end -}}
|
||||
</title>
|
||||
<title>{{ $title }}</title>
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/bootstrap-3.3.7.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/main.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/luxbar.css" />
|
||||
<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 }}
|
||||
{{- range .Site.Params.custom_css }}
|
||||
<link rel="stylesheet" href="{{ $.Site.BaseURL}}{{ . }}?v={{ md5 hugo.BuildDate }}" />
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
|
||||
{{ "<!-- Open Graph meta-data (e.g. Facebook) -->" | safeHTML }}
|
||||
<meta property="og:title" content="{{ $title }}"/>
|
||||
<meta property="og:url" content="{{ .Permalink | absURL }}"/>
|
||||
<meta property="og:image" content="{{ $image | absURL }}"/>
|
||||
<meta property="og:description" content="{{ .Summary | truncate 200 }}"/>
|
||||
|
||||
{{ "<!-- Twitter meta-data -->" | safeHTML }}
|
||||
<meta name="twitter:card" content="summary_large_image"/>
|
||||
<meta name="twitter:site" content="@{{ .Site.Params.social.twitter }}"/>
|
||||
<meta name="twitter:title" content="{{ $title }}"/>
|
||||
<meta name="twitter:description" content="{{ .Summary | truncate 200 }}"/>
|
||||
<meta name="twitter:image" content="{{ $image | absURL }}"/>
|
||||
<meta name="twitter:url" content="{{ .Permalink | absURL }}"/>
|
||||
<meta name="twitter:creator" content="@{{ .Site.Params.social.twitter }}"/>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user