space-router
Version:
All the routing essentials.
69 lines (54 loc) • 3.04 kB
HTML
<html lang="{{ .Site.LanguageCode }}">
<head>
{{ hugo.Generator }}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
{{ with .Description }}
<meta name="description" content="{{ . }}"> {{ end }}
<!-- noindex meta -->
{{ $default_noindex_kinds := slice "section" "taxonomy" "taxonomyTerm" }}
{{ $noindex_kinds := .Site.Params.noindex_kinds | default $default_noindex_kinds }}
{{ $is_noindex_true := and (isset .Params "noindex") .Params.noindex }}
{{ if or (in $noindex_kinds .Kind) ($is_noindex_true) }}
<meta name="robots" content="noindex">
{{ end }}
{{ partial "meta/name-author" . }}
{{ template "_internal/opengraph.html" . }}
{{ partial "meta/ogimage" . }}
<!-- Site verification -->
{{ if .IsHome }} {{ partial "site-verification" . }} {{ end }}
<!-- add googleAnalytics in config.toml -->
{{ template "_internal/google_analytics_async.html" . }}
<link rel="canonical" href="{{ .Permalink }}"> {{ if (isset .Params "prev") }}
<link rel="prev" href="{{ .Params.prev }}"> {{ end }} {{ if (isset .Params "next") }}
<link rel="next" href="{{ .Params.next }}"> {{ end }}
<meta name="twitter:title" content="Space Router">
<meta name="twitter:description" content="Framework agnostic router for single page apps">
<meta name="twitter:card" content="summary"/>
<meta name="twitter:image" content="https://humaans.github.io/space-router/space.png"/>
<meta name="twitter:image:alt" content="Space Router"/>
<meta property="og:title" content="Space Router" />
<meta property="og:description" content="Framework agnostic router for single page apps">
<meta property="og:url" content="https://humaans.github.io/space-router/" />
<meta property="og:image" content="https://humaans.github.io/space-router/space.png" />
{{ partial "favicon" . }}
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@200;300;400;500;600;700&family=Vollkorn:wght@400;600;700;900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Vollkorn:wght@400;600;700;900&display=swap" rel="stylesheet">
{{ $base := resources.Get "styles/base.scss" | toCSS }}
{{ $syntax := resources.Get "styles/syntax.scss" | toCSS }}
{{ $main := resources.Get "styles/main.scss" | toCSS }}
<link href="{{ $base.RelPermalink }}" rel="stylesheet" type="text/css" />
<link href="{{ $syntax.RelPermalink }}" rel="stylesheet" type="text/css" />
<link href="{{ $main.RelPermalink }}" rel="stylesheet" type="text/css" />
</head>
<body class="page-kube">
<header>{{ block "header" . }}{{ end }}</header>
<main>{{ block "main" . }}{{ end }}</main>
<script src="{{ "/js/master.js" | relURL }}" type="text/javascript"></script>
{{ $bg := resources.Get "js/bg.js" }}
<script src="{{ $bg.RelPermalink }}" type="text/javascript"></script>
</body>
</html>