mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-18 23:37:50 +00:00
Move everything into a “blog” directory
This commit is contained in:
42
blog/layouts/partials/head.html
Normal file
42
blog/layouts/partials/head.html
Normal file
@@ -0,0 +1,42 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<!-- Enable responsiveness on mobile devices-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
||||
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
|
||||
|
||||
<title>
|
||||
{{ .Title }}{{ if not .IsHome }} · {{ .Site.Title }}{{end}}
|
||||
</title>
|
||||
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
|
||||
<!-- CSS -->
|
||||
<link rel="stylesheet" href="/css/poole.css">
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
<link rel="stylesheet" href="/css/syntax.css">
|
||||
|
||||
<!-- Icons -->
|
||||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/images/apple-touch-icon-precomposed.png">
|
||||
<link rel="shortcut icon" href="/images/favicon.ico">
|
||||
|
||||
{{ if .RSSlink }}
|
||||
<link href="/atom.xml" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||
<link href="/atom.xml" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||
{{ end }}
|
||||
|
||||
<!-- JS -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/2.0.0/anchor.min.js"></script>
|
||||
<script src="js/toc.min.js"></script>
|
||||
<script src="js/main.js"></script>
|
||||
{{ partial "analytics.html" . }}
|
||||
|
||||
<!-- redirect from phil-opp.github.io/blog_os -->
|
||||
<script type="text/javascript">
|
||||
if (window.location.hostname == "phil-opp.github.io") {
|
||||
window.location.href = "http://os.phil-opp.com/";
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
Reference in New Issue
Block a user