docs: move most of the chrome into baseof.html as per a modern hugo install

This commit is contained in:
Nick Craig-Wood 2020-05-22 16:16:40 +01:00
parent 74b8cbfb84
commit 1b12d5d346
12 changed files with 119 additions and 185 deletions

View File

@ -1,7 +1,4 @@
{{ define "main"}}
<main id="main">
<div>
<h1 id="title"><a href="{{ "/" | relURL }}">Go Home</a></h1>
</div>
</main>
<h1>Page not found :-(</h1>
<a href="{{ "/" | relURL }}">Click here to return to the homepage</a>.
{{ end }}

View File

@ -0,0 +1,59 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="{{ .Description }}">
<meta name="author" content="Nick Craig-Wood">
<link rel="shortcut icon" type="image/png" href="/img/rclone-32x32.png"/>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-51081799-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-51081799-1');
</script>
<title>{{ block "title" . }}{{ .Title }}{{ end }}</title>
<link rel="canonical" href="{{ .Permalink }}">
<link href="/css/bootstrap.min.4.4.1.css" rel="stylesheet">
<link href="/css/font-awesome.min.5.10.2.css" rel="stylesheet">
<link href="/css/custom.css?r={{ .Date.Unix }}" rel="stylesheet">
{{ $RSSLink := "" }}{{ with .OutputFormats.Get "RSS" }}{{ $RSSLink = .RelPermalink }}{{ end }}{{ if $RSSLink }}<link href="{{ $RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />{{ end }}
</head>
<body>
{{ template "chrome/navbar.html" . }}
<div class="container">
<div class="row">
<div class="col-md-10">
{{ block "main" . }}
{{ end }}
</div>
<div class="col-md-2">
{{ template "chrome/menu.html" . }}
</div>
</div>
{{ block "footer" . }}
<footer>
<div class="row">
<div class="col-md-10">
<div class="card card-body">
<p style="font-size: 90%;">
&copy; <a href="https://www.craig-wood.com/nick/">Nick Craig-Wood</a> 2014-{{ now.Format "2006" }}<br>
Website hosted on a <a href="https://www.memset.com/dedicated-servers/vps/"><span style="font-weight: bold; font-family: arial black, arial, sans-serif; font-style: italic;">MEMSET CLOUD VPS</span></a>,
uploaded with <a href="https://rclone.org">rclone</a>
and built with <a href="https://github.com/spf13/hugo">Hugo</a>.
Logo by <a href="https://twitter.com/andy23">@andy23</a>.
</p>
</div>
</div>
</div>
</footer>
{{ end }}
</div>
<script src="/js/jquery.min.3.5.1.js"></script>
<script src="/js/popper.min.1.16.0.js"></script>
<script src="/js/bootstrap.min.4.4.1.js"></script>
<script src="/js/custom.js?r={{ .Date.Unix }}"></script>
</body>
</html>

View File

@ -1,24 +1,3 @@
{{ template "chrome/header.html" . }}
<body>
{{ template "chrome/navbar.html" . }}
<div class="container">
<div class="row">
<div class="col-md-10">
<div class="card">
<!-- <div class="card-header"> -->
<!-- <h3>{{ .Title }}<br> <small>{{ .Description }}</small></h3> -->
<!-- </div> -->
<div class="card-body bg-light">
{{ define "main" }}
{{ .Content }}
</div>
</div>
</div>
<!-- Sidebar -->
<div class="col-md-2">
{{ template "chrome/menu.html" . }}
</div>
</div>
{{ template "chrome/footer.copyright.html" . }}
</div>
{{ template "chrome/footer.html" . }}
{{ end }}

View File

@ -1,15 +0,0 @@
<footer>
<div class="row">
<div class="col-md-10">
<div class="card card-body">
<p style="font-size: 90%;">
&copy; <a href="https://www.craig-wood.com/nick/">Nick Craig-Wood</a> 2014-{{ now.Format "2006" }}<br>
Website hosted on a <a href="https://www.memset.com/dedicated-servers/vps/"><span style="font-weight: bold; font-family: arial black, arial, sans-serif; font-style: italic;">MEMSET CLOUD VPS</span></a>,
uploaded with <a href="https://rclone.org">rclone</a>
and built with <a href="https://github.com/spf13/hugo">Hugo</a>.
Logo by <a href="https://twitter.com/andy23">@andy23</a>.
</p>
</div>
</div>
</div>
</footer>

View File

@ -1,6 +0,0 @@
<script src="/js/jquery.min.3.5.1.js"></script>
<script src="/js/popper.min.1.16.0.js"></script>
<script src="/js/bootstrap.min.4.4.1.js"></script>
<script src="/js/custom.js?r={{ .Date.Unix }}"></script>
</body>
</html>

View File

@ -1,9 +0,0 @@
<!doctype html>
<html lang="en">
<head>
{{ template "chrome/meta.html" . }}
<title>{{ .Title }}</title>
<link rel="canonical" href="{{ .Permalink }}">
{{ template "chrome/header.includes.html" . }}
{{ $RSSLink := "" }}{{ with .OutputFormats.Get "RSS" }}{{ $RSSLink = .RelPermalink }}{{ end }}{{ if $RSSLink }}<link href="{{ $RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />{{ end }}
</head>

View File

@ -1,3 +0,0 @@
<link href="/css/bootstrap.min.4.4.1.css" rel="stylesheet">
<link href="/css/font-awesome.min.5.10.2.css" rel="stylesheet">
<link href="/css/custom.css?r={{ .Date.Unix }}" rel="stylesheet">

View File

@ -1,13 +0,0 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="{{ .Description }}">
<meta name="author" content="Nick Craig-Wood">
<link rel="shortcut icon" type="image/png" href="/img/rclone-32x32.png"/>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-51081799-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-51081799-1');
</script>

View File

@ -1,16 +1,3 @@
{{ template "chrome/header.html" . }}
<body>
{{ template "chrome/navbar.html" . }}
<div class="container">
<div class="row">
<div class="col-md-10">
{{ define "main" }}
{{ .Content }}
</div>
<!-- Sidebar -->
<div class="col-md-2">
{{ template "chrome/menu.html" . }}
</div>
</div>
{{ template "chrome/footer.copyright.html" . }}
</div>
{{ template "chrome/footer.html" . }}
{{ end }}

View File

@ -1,24 +0,0 @@
{{ template "chrome/header.html" . }}
<body>
{{ template "chrome/navbar.html" . }}
<div class="container">
<div class="row">
<div class="col-md-10">
<div class="card">
<!-- <div class="card-header"> -->
<!-- <h3>{{ .Title }}<br> <small>{{ .Description }}</small></h3> -->
<!-- </div> -->
<div class="card-body bg-light">
{{ .Content }}
</div>
</div>
</div>
<!-- Sidebar -->
<div class="col-md-2">
{{ template "chrome/menu.html" . }}
</div>
</div>
{{ template "chrome/footer.copyright.html" . }}
</div>
{{ template "chrome/footer.html" . }}

View File

@ -1,11 +1,4 @@
{{ template "chrome/header.html" . }}
<body>
{{ template "chrome/navbar.html" . }}
<div class="container">
<div class="row">
<div class="col-md-10">
<div class="card">
<div class="card-body bg-light">
{{ define "main" }}
<h1>Rclone Commands</h1>
<p>
This is an index of all commands in rclone. Run "rclone
@ -27,15 +20,4 @@
{{ end }}
</tbody>
</table>
</div>
</div>
</div>
<!-- Sidebar -->
<div class="col-md-2">
{{ template "chrome/menu.html" . }}
</div>
</div>
{{ template "chrome/footer.copyright.html" . }}
</div>
{{ template "chrome/footer.html" . }}
{{ end }}