diff options
Diffstat (limited to 'layouts/partials/top.html')
-rw-r--r-- | layouts/partials/top.html | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/layouts/partials/top.html b/layouts/partials/top.html new file mode 100644 index 0000000..8d073d1 --- /dev/null +++ b/layouts/partials/top.html @@ -0,0 +1,44 @@ +<!DOCTYPE html> +<html lang="{{ .Site.LanguageCode }}"> + + <head> + <meta charset="utf-8"> + {{ .Hugo.Generator }} + + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="author" content="{{ .Site.Author.name }}"> + <meta property="og:url" content="{{ .Permalink }}"> + + {{ if .IsHome -}} + <title>{{ .Site.Title }}</title> + <meta property="og:title" content="{{ .Site.Title }}"> + <meta property="og:type" content="website"> + <meta name="description" content="{{ .Site.Params.description }}"> + {{- else -}} + <title>{{ .Title }} - {{ .Site.Title }}</title> + <meta property="og:title" content="{{ .Title }} - {{ .Site.Title }}"> + <meta property="og:type" content="article"> + <meta name="description" content="{{ .Description }}"> + {{- end }} + + <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Arvo:400,700"> + <link rel="stylesheet" href="{{ .Site.BaseURL }}css/highlight.css"> + <link rel="stylesheet" href="{{ .Site.BaseURL }}css/journal.css"> + <link href="{{ .Site.BaseURL }}index.xml" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}"> + + </head> + + <body> + <div class="container"> + + {{ if .IsHome -}} + <header class="site-header"> + <h1>{{ .Site.Title }}</h1> + <p>{{ .Site.Params.tagline }}</p> + </header> + {{- else -}} + <nav class="site-nav"> + <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> + </nav> + {{- end }} |