1
mirror of https://github.com/rclone/rclone synced 2024-12-21 11:45:56 +01:00

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">
{{ .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" . }}
{{ define "main" }}
{{ .Content }}
{{ 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,30 +1,30 @@
<div class="card">
<div class="card-header" style="padding: 5px 10px;">
Share and Enjoy.
</div>
<div class="card-body">
<p class="menu">
<!-- Non tracking sharing links from: https://sharingbuttons.io/ -->
<i class="fab fa-twitter" aria-hidden="true"></i> <a href="https://twitter.com/intent/tweet/?text=rclone%20-%20rsync%20for%20cloud%20storage%20from%20%40njcw&amp;url=https%3A%2F%2Frclone.org" target="_blank" rel="noopener" aria-label="Share on Twitter">Twitter.</a><br />
<i class="fab fa-facebook" aria-hidden="true"></i> <a href="https://facebook.com/sharer/sharer.php?u=https%3A%2F%2Frclone.org" target="_blank" rel="noopener" aria-label="Share on Facebook">Facebook.</a><br />
<i class="fab fa-reddit" aria-hidden="true"></i> <a href="https://reddit.com/submit/?url=https%3A%2F%2Frclone.org&amp;resubmit=true&amp;title=rclone%20-%20rsync%20for%20cloud%20storage" target="_blank" rel="noopener" aria-label="Share on Reddit">Reddit.</a><br />
<iframe src="//ghbtns.com/github-btn.html?user=rclone&amp;repo=rclone&amp;type=star&amp;count=true" allowtransparency="true" frameborder="0" scrolling="no" width="120" height="20"></iframe>
</p>
</div>
</div>
<div class="card">
<div class="card-header" style="padding: 5px 10px;">
Share and Enjoy.
</div>
<div class="card-body">
<p class="menu">
<!-- Non tracking sharing links from: https://sharingbuttons.io/ -->
<i class="fab fa-twitter" aria-hidden="true"></i> <a href="https://twitter.com/intent/tweet/?text=rclone%20-%20rsync%20for%20cloud%20storage%20from%20%40njcw&amp;url=https%3A%2F%2Frclone.org" target="_blank" rel="noopener" aria-label="Share on Twitter">Twitter.</a><br />
<i class="fab fa-facebook" aria-hidden="true"></i> <a href="https://facebook.com/sharer/sharer.php?u=https%3A%2F%2Frclone.org" target="_blank" rel="noopener" aria-label="Share on Facebook">Facebook.</a><br />
<i class="fab fa-reddit" aria-hidden="true"></i> <a href="https://reddit.com/submit/?url=https%3A%2F%2Frclone.org&amp;resubmit=true&amp;title=rclone%20-%20rsync%20for%20cloud%20storage" target="_blank" rel="noopener" aria-label="Share on Reddit">Reddit.</a><br />
<iframe src="//ghbtns.com/github-btn.html?user=rclone&amp;repo=rclone&amp;type=star&amp;count=true" allowtransparency="true" frameborder="0" scrolling="no" width="120" height="20"></iframe>
</p>
</div>
</div>
<div class="card">
<div class="card-header" style="padding: 5px 15px;">
Links.
</div>
<div class="card-body">
<p class="menu">
<i class="fa fa-comments" aria-hidden="true"></i> <a href="https://forum.rclone.org">Rclone forum.</a><br />
<i class="fab fa-github" aria-hidden="true"></i> <a href="https://github.com/rclone/rclone">GitHub project.</a><br />
<i class="fab fa-slack" aria-hidden="true"></i> <a href="https://slack-invite.rclone.org/">Rclone slack.</a><br />
<i class="fa fa-book" aria-hidden="true"></i> <a href="https://github.com/rclone/rclone/wiki">Rclone Wiki.</a><br />
<i class="fa fa-heart heart" aria-hidden="true"></i> <a href="/donate/">Donate.</a><br />
<i class="fab fa-twitter" aria-hidden="true"></i> <a href="https://twitter.com/njcw">@njcw</a>
</p>
</div>
</div>
<div class="card">
<div class="card-header" style="padding: 5px 15px;">
Links.
</div>
<div class="card-body">
<p class="menu">
<i class="fa fa-comments" aria-hidden="true"></i> <a href="https://forum.rclone.org">Rclone forum.</a><br />
<i class="fab fa-github" aria-hidden="true"></i> <a href="https://github.com/rclone/rclone">GitHub project.</a><br />
<i class="fab fa-slack" aria-hidden="true"></i> <a href="https://slack-invite.rclone.org/">Rclone slack.</a><br />
<i class="fa fa-book" aria-hidden="true"></i> <a href="https://github.com/rclone/rclone/wiki">Rclone Wiki.</a><br />
<i class="fa fa-heart heart" aria-hidden="true"></i> <a href="/donate/">Donate.</a><br />
<i class="fab fa-twitter" aria-hidden="true"></i> <a href="https://twitter.com/njcw">@njcw</a>
</p>
</div>
</div>

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">
{{ .Content }}
</div>
<!-- Sidebar -->
<div class="col-md-2">
{{ template "chrome/menu.html" . }}
</div>
</div>
{{ template "chrome/footer.copyright.html" . }}
</div>
{{ template "chrome/footer.html" . }}
{{ define "main" }}
{{ .Content }}
{{ 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,41 +1,23 @@
{{ 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">
<h1>Rclone Commands</h1>
<p>
This is an index of all commands in rclone. Run "rclone
command --help" to see the help for that command.
</p>
<table>
<thead>
<tr>
<th>Command</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{{ range .Data.Pages }}
<tr>
<td><a href="{{ .RelPermalink }}">{{ .Title }}</a></td>
<td>{{ .Description }}</td>
</tr>
{{ 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" . }}
{{ define "main" }}
<h1>Rclone Commands</h1>
<p>
This is an index of all commands in rclone. Run "rclone
command --help" to see the help for that command.
</p>
<table>
<thead>
<tr>
<th>Command</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{{ range .Data.Pages }}
<tr>
<td><a href="{{ .RelPermalink }}">{{ .Title }}</a></td>
<td>{{ .Description }}</td>
</tr>
{{ end }}
</tbody>
</table>
{{ end }}