aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/head.html
blob: 3acf83736e43ca50551c49e10934305484b0d07e (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
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <meta name="author" content="{{ .Site.Author.name }}">

  <!-- conditionally load css, set title, description, etc -->
  <!-- add or remove these if you want to have more types of pages -->
  {{- if eq .Type "page" -}}
    <meta name="description" content="{{ .Title }}">
    <meta name="robots" content="index, follow">
    <link rel="stylesheet" type="text/css" href="/css/index.css">
    <title>{{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}</title>
  {{ else if eq .Type "blog"}}
    <meta name="description" content="{{ .Title }}">
    <meta name="robots" content="index, follow">
    <link rel="alternate" type="application/rss+xml" href="/blog/index.xml" title="">
    <link rel="stylesheet" type="text/css" href="/css/blog.css">
    <title>{{ .Title }} - {{ .Site.Params.blogTitle }}</title>
  {{ else if eq .Type "lists"}}
    <meta name="description" content="{{ .Title }}">
    <meta name="robots" content="index, follow">
    <link rel="stylesheet" type="text/css" href="/css/lists.css">
    <title>{{ .Title }} - {{ .Site.Params.listsTitle }}</title>
  {{ end }}
</head>