hugo-internet-weblog/layouts/partials/site_header.html

33 lines
1.8 KiB
HTML
Raw Normal View History

2016-02-19 23:35:42 -05:00
<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="{{ with .Site.Author.firstname }}{{ . }}{{ end }} {{ with .Site.Author.lastname }}{{ . }}{{ end }}">
<meta name="description" content="{{ with .Site.Params.description }}{{ . }}{{ end }}">
2016-02-19 23:35:42 -05:00
{{ $siteTitle := .Site.Title }} {{ $title := $siteTitle }}{{ if .IsPage }}{{ $title = .Title }}
<meta property="og:type" content="article" />
<meta property="og:title" content="{{ $title }}">
{{ if .Param "feature" }}<meta property="og:image" content="{{ .Site.BaseURL }}{{ .Params.feature }}">{{ end }}
<meta property="og:url" content="{{ .Page.Permalink }}">
<meta property="og:description" content="{{ .Summary }}">
<meta property="og:site_name" content="@{{ .Site.Author.handle }}s {{ .Site.Title }}">
<meta name="twitter:card" content="summary_large_image">
{{ end }}
{{ hugo.Generator }}
2016-02-19 23:35:42 -05:00
{{ $.Scratch.Add "title" .Site.Title }}
<title>{{ with .Title }}{{ if ne . ($.Scratch.Get "title") }}{{ . }} &middot; {{ end }}{{ end }}@{{ .Site.Author.handle }}s {{ .Site.Title }}</title>
2016-02-19 23:35:42 -05:00
2019-08-17 18:54:03 -04:00
<link rel="stylesheet" href="{{.Site.BaseURL}}css/weblog.css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/1.2.14/css/lightgallery.min.css" type="text/css" />
2016-02-19 23:35:42 -05:00
{{ partial "custom_stylesheets.html" . }}
{{ if .Site.Params.rssenabled }}
<link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{.Site.Title}}" />
{{ end }}
2016-02-19 23:35:42 -05:00
</head>
<body class="site">