Welcome to mirror list, hosted at ThFree Co, Russian Federation.

top.html « partials « layouts - github.com/damiencaselli/hugo-journal.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1ef2e86f330ac2ae961cca0402710391efcd1b51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!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 }}

  {{- if .Site.Params.useCDN | default false }}
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Arvo:400,700">
  {{- else }}
  <link rel="stylesheet" href="{{ "css/fonts.css" | relURL }}">
  {{- end }}

  <link rel="stylesheet" href="{{ "css/highlight.css" | relURL }}">
  <link rel="stylesheet" href="{{ "css/journal.css" | relURL }}">
  <link href="{{ "index.xml" | relURL }}" 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 }}">Index</a>
    </nav>
    {{- end }}