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

header.html « partials « layouts - github.com/parsiya/Hugo-Octopress.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2ebd50ada975afc70738b485c92f5d1661c74e6c (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">

  <!-- added from octo -->
  <meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1">

  {{ if not .Site.Params.disableGoogleFonts }}
    <!-- if local Google fonts are enabled -->
    {{ if not .Site.Params.remoteFonts }}
      <link href="/css/fonts.css" rel="stylesheet" type="text/css">
    {{ else }}
      <link href="//fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
      <link href="//fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
    {{ end }}
  {{ end }}

  <!-- goes into the title bar -->
  <title>{{ .Title }}</title>

  <!-- css -->
  <!-- original css -->
  <link rel="stylesheet" href="/css/hugo-octopress.css">

  <!-- css overrides -->
  {{ range .Site.Params.customCSS }}
    <link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}">
  {{ end }}

  {{ if not .Site.Params.fontAwesome }}
    <link rel="stylesheet" href="/css/fork-awesome.min.css">
  {{ else }}
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
  {{ end }}

  <!-- favicon -->
  {{ if not .Site.Params.favicon }}
    <link href="{{ "/favicon.png" | absURL }}" rel="icon">
  {{ else }}
    <link href="{{ .Site.Params.favicon | absURL }}" rel="icon">
  {{ end }}

  <!-- RSS -->
  {{ with .OutputFormats.Get "RSS" }}<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />{{ end }}

  <meta name="description" content="{{ if .IsHome }}{{ $.Site.Params.description }}{{ else }}{{ .Description }}{{ end }}" />
  <meta name="keywords" content="{{ range $index, $element := .Keywords }}{{ if gt $index 0 }},{{ end }}{{ . }}{{ else }}{{ .Site.Params.defaultKeywords }}{{ end }}">
  <meta name="author" content="{{ .Site.Params.author }}">

  <!-- Generator version for usage tracking -->
  {{ hugo.Generator }}

  <!-- Enable Twitter card -->
  {{ with .Site.Params.twitterCardEnabled }}
    {{ partial "custom_twitter_card.html" $ }}
  {{ end }}

  <!-- Add extend_header.html -->
  {{ partial "extend_header.html" . }}

</head>
<body>

<!-- top header for octopress -->
<header role="banner">{{ partial "octo_header.html" . }}</header>

<!-- navigation -->
<nav role="navigation">{{ partial "navigation.html" . }}</nav>