summaryrefslogtreecommitdiffstats
path: root/docs/layouts
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-07-18 10:33:58 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-07-18 10:33:58 +0200
commit4c220c4ac2302b6c0a535c1099f2d393d57049c6 (patch)
tree76036635bff9d53416f0de68c266dd989a30de45 /docs/layouts
parentdeccc54004cbe88ddbf8f3f951d3178dc0693189 (diff)
parent6dbde8d731f221b027c0c60b772ba82dad759943 (diff)
Fixes #3709
Diffstat (limited to 'docs/layouts')
-rw-r--r--docs/layouts/404.html5
-rw-r--r--docs/layouts/_default/baseof.html12
-rw-r--r--docs/layouts/_default/list.html12
-rw-r--r--docs/layouts/_default/single.html1
-rw-r--r--docs/layouts/index.html319
-rw-r--r--docs/layouts/index.redir6
-rw-r--r--docs/layouts/partials/analytics.html10
-rw-r--r--docs/layouts/partials/footer.html59
-rw-r--r--docs/layouts/partials/header.html93
-rw-r--r--docs/layouts/partials/menu.html40
-rw-r--r--docs/layouts/partials/quotes.html12
-rw-r--r--docs/layouts/partials/search.html1
-rw-r--r--docs/layouts/section/commands.html12
-rw-r--r--docs/layouts/section/release-notes.html6
-rw-r--r--docs/layouts/section/showcase.html17
-rw-r--r--docs/layouts/shortcodes/articlelist.html18
-rw-r--r--docs/layouts/shortcodes/code.html15
-rw-r--r--docs/layouts/shortcodes/datatable-vertical.html26
-rw-r--r--docs/layouts/shortcodes/datatable.html3
-rw-r--r--docs/layouts/shortcodes/directoryindex.html2
-rw-r--r--docs/layouts/shortcodes/docfile.html11
-rw-r--r--docs/layouts/shortcodes/exfile.html12
-rw-r--r--docs/layouts/shortcodes/exfm.html13
-rw-r--r--docs/layouts/shortcodes/gh.html16
-rw-r--r--docs/layouts/shortcodes/ghrepo.html1
-rw-r--r--docs/layouts/shortcodes/nohighlight.html2
-rw-r--r--docs/layouts/shortcodes/note.html8
-rw-r--r--docs/layouts/shortcodes/output.html11
-rw-r--r--docs/layouts/shortcodes/readfile.html7
-rw-r--r--docs/layouts/shortcodes/tip.html8
-rw-r--r--docs/layouts/shortcodes/todo.html1
-rw-r--r--docs/layouts/shortcodes/warning.html8
-rw-r--r--docs/layouts/shortcodes/youtube.html4
-rw-r--r--docs/layouts/shortcodes/yt.html11
-rw-r--r--docs/layouts/showcase/thumbnail.html17
35 files changed, 134 insertions, 665 deletions
diff --git a/docs/layouts/404.html b/docs/layouts/404.html
deleted file mode 100644
index 4b140fbdb..000000000
--- a/docs/layouts/404.html
+++ /dev/null
@@ -1,5 +0,0 @@
-{{ partial "header.html" . }}
-<div class="col-lg-8 col-md-12">
-Page Not Found.
-</div>
-{{ partial "footer.html" . }}
diff --git a/docs/layouts/_default/baseof.html b/docs/layouts/_default/baseof.html
deleted file mode 100644
index 076f46dda..000000000
--- a/docs/layouts/_default/baseof.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{{ partial "header.html" . }}
-{{ if .Params.toc }}
-<div class="col-lg-8 col-md-12">
-{{block "main" .}}{{end}}
-</div>
-<div id="toc" class="col-lg-offset-6 toc {{ if gt (len .TableOfContents) 2500 }}compact{{ end }}">
- {{ .TableOfContents }}
-</div>
-{{ else }}
-{{block "main" .}}{{end}}
-{{ end }}
-{{ partial "footer.html" . }}
diff --git a/docs/layouts/_default/list.html b/docs/layouts/_default/list.html
deleted file mode 100644
index f2b122c40..000000000
--- a/docs/layouts/_default/list.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{{ define "main" }}
-{{ with .Content }}
-{{ . }}
-{{ end }}
-<ul style="margin-top: 20px">
- {{ range .Data.Pages }}
- <li>
- <a href="{{ .Permalink }}">{{ .Title }}</a> <em>Updated {{ .Lastmod.Format "Mon, Jan 2, 2006" }}</em>
- </li>
- {{ end }}
-</ul>
-{{ end }}
diff --git a/docs/layouts/_default/single.html b/docs/layouts/_default/single.html
deleted file mode 100644
index b8bcfa70c..000000000
--- a/docs/layouts/_default/single.html
+++ /dev/null
@@ -1 +0,0 @@
-{{ define "main" }}{{ .Content }}{{ end }}
diff --git a/docs/layouts/index.html b/docs/layouts/index.html
deleted file mode 100644
index a212e1229..000000000
--- a/docs/layouts/index.html
+++ /dev/null
@@ -1,319 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="description" content="Hugo, a fast and flexible static site generator built with love by spf13, bep, and friends in Go">
- <meta name="author" content="Steve Francia (spf13), Bjørn Erik Pedersen (bep), and friends">
- <title>Hugo :: A fast and modern static website engine</title>
-
- {{ "<!--icon for browser shortcuts-->" | safeHTML }}
- <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
-
- {{ "<!--icon to represent this web page on Apple iOS-->" | safeHTML }}
- <link rel="apple-touch-icon" href="/apple-touch-icon.png">
-
- {{ "<!--Bootstrap core CSS-->" | safeHTML }}
- <link rel="stylesheet" type="text/css" href="/css/bootstrap-stripped-gohugo.css">
- <link rel="stylesheet" type="text/css" href="/css/bootstrap-changes-gohugo.css">
- <link rel="stylesheet" type="text/css" href="/css/bootstrap-additions-gohugo.css">
-
- {{ "<!--non-Bootstrap CSS (keep below Bootstrap CSS)-->" | safeHTML }}
- <link rel="stylesheet" type="text/css" href="/vendor/OwlCarousel2/css/owl.carousel.css">
- <link rel="stylesheet" type="text/css" href="/vendor/OwlCarousel2/css/owl.theme.default.css">
- <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Arbutus+Slab%7CCabin:600%7CSource+Code+Pro">
- <link rel="stylesheet" type="text/css" href="/css/hugofont.css">
- <link rel="stylesheet" type="text/css" href="/css/home-page-style.css">
- <link rel="stylesheet" type="text/css" href="/css/home-page-style-responsive.css">
- </head>
- <body>
-
- {{ "<!--full page image header area start-->" | safeHTML }}
- <div id="top" class="header">
- <div class="vert-text">
- <a href="#intro">
- <img class="logo" src="/img/hugo.png" alt="Hugo logo">
- </a>
- <div class="buttonbox">
- <a class="btn-primary btn btn-lg" href="/overview/introduction/">
- Docs <i class="icon-idea"></i>
- </a>
- <a class="btn-success btn btn-lg" href="#action">
- Install <i class="icon-arrow-down"></i>
- </a>
- <a class="btn-info btn btn-lg" href="https://discourse.gohugo.io/">
- Community <i class="icon-talking"></i>
- </a>
- <a class="btn-repo btn btn-lg" href="https://github.com/gohugoio/hugo">
- GitHub <i class="icon-circlestar"></i>
- </a>
- </div>
- </div>
- </div>
- {{ "<!--full page image header area end-->" | safeHTML }}
-
- {{ "<!--main start-->" | safeHTML }}
- <div id="main">
-
- {{ "<!--intro start-->" | safeHTML }}
- <div id="intro" class="counterpoint">
- <div class="container">
-
- {{ "<!--row start-->" | safeHTML }}
- <div class="row">
- <div class="text-center col-md-6 col-md-offset-3">
- <i class="lead-icon icon-pacman"></i>
- <h2>Make the Web Fun Again</h2>
- <p class="lead">
- Introducing Hugo, a new idea for making website creation simple again.
- Hugo works flexibly with many formats, and is ideal for
- blogs, docs, portfolios and much more.
- Hugo’s speed fosters
- creativity&mdash;it makes building a website fun again.
- </p>
- </div>
- </div>
- {{ "<!--row end-->" | safeHTML }}
-
- </div>
- </div>
- {{ "<!--intro end-->" | safeHTML }}
-
- {{ "<!--point start-->" | safeHTML }}
- <div class="point">
- <div class="container">
-
- {{ "<!--row start-->" | safeHTML }}
- <div class="row">
- <div class="text-center col-md-6 col-md-offset-3">
- <i class="point-icon icon-tux"></i>
- <i class="point-icon icon-apple"></i>
- <i class="point-icon icon-windows8"></i>
- <h2>Run Anywhere</h2>
- <p class="lead">
- Hugo is quite possibly the easiest software to install you’ve ever used:
- simply download and run!
- <b>
- Hugo doesn’t depend on administrative privileges, databases, runtimes,
- interpreters or external libraries.
- </b>
- Sites built with Hugo can be deployed on S3, GitHub Pages, Dropbox or any web host.
- </p>
- </div>
- </div>
- {{ "<!--row end-->" | safeHTML }}
-
- </div>
- </div>
- {{ "<!--point end-->" | safeHTML }}
-
- {{ "<!--counterpoint start-->" | safeHTML }}
- <div class="counterpoint">
- <div class="container">
-
- {{ "<!--row start-->" | safeHTML }}
- <div class="row">
- <div class="text-center col-md-6 col-md-offset-3">
- <i class="lead-icon icon-rocket"></i>
- <h2>Fast &amp; Powerful</h2>
- <p class="lead">
- Hugo is designed for speed and performance. Great care has been
- taken to ensure build time with Hugo is as short as possible.
- We’re talking milliseconds to build your entire site&mdash;for most setups!
- </p>
- </div>
- </div>
- {{ "<!--row end-->" | safeHTML }}
-
- </div>
- </div>
- {{ "<!--counterpoint end-->" | safeHTML }}
-
- {{ "<!--point start-->" | safeHTML }}
- <div class="point">
- <div class="container">
-
- {{ "<!--row start-->" | safeHTML }}
- <div class="row">
- <div class="text-center col-md-6 col-md-offset-3">
- <i class="point-icon icon-fork"></i>
- <h2>Flexible</h2>
- <p class="lead">
- Hugo is designed to work the way you do.
- Organize your content however you want with any URL structure.
- Group your content using your own indexes and categories.
- Define your own metadata in any format: YAML, TOML or JSON.
- Best of all, Hugo handles all these variations
- with virtually no configuration. Hugo
- just works.
- </p>
- </div>
- </div>
- {{ "<!--row end-->" | safeHTML }}
-
- </div>
- </div>
- {{ "<!--point end-->" | safeHTML }}
-
-
- {{ "<!--quote carousel start-->" | safeHTML }}
- <div class="callout">
- <div class="container">
-
- {{ "<!--row start-->" | safeHTML }}
- <div class="row">
- <div class="text-center col-md-12">
- <i class="callout-icon icon-circlestar"></i>
- <p></p>
- </div>
- </div>
- {{ "<!--row end-->" | safeHTML }}
-
- {{ "<!--row start-->" | safeHTML }}
- <div class="row">
- <div class="text-center col-md-12">
-
- {{ "<!--wrapper for slides start-->" | safeHTML }}
- <div class="carousel-inner owl-carousel">
-{{ partial "quotes.html" ((where $.Site.Data.references.quotes "date" "ge" (now.AddDate -2 0 0) | shuffle )) }}
- </div>
- {{ "<!--wrapper for slides end-->" | safeHTML }}
-
- </div>
- </div>
- {{ "<!--row end-->" | safeHTML }}
-
- </div>
- </div>
- {{ "<!--quote carousel end-->" | safeHTML }}
-
- </div>
- {{ "<!--main end-->" | safeHTML }}
-
- {{ "<!--counterpoint start-->" | safeHTML }}
- <div class="counterpoint">
- <div class="container">
-
- {{ "<!--row start-->" | safeHTML }}
- <div class="row">
- <div class="text-center col-md-6 col-md-offset-3">
- <i class="lead-icon icon-octocat"></i>
- <h2>Open and Free</h2>
- <p class="lead">
- Hugo is <a href="https://github.com/gohugoio/hugo">open source</a> and completely free.
- </p>
- </div>
- </div>
- {{ "<!--row end-->" | safeHTML }}
-
- </div>
- </div>
- {{ "<!--counterpoint end-->" | safeHTML }}
-
- {{ "<!--point start-->" | safeHTML }}
- <div class="point">
- <div class="container">
-
- {{ "<!--row start-->" | safeHTML }}
- <div class="row">
- <div class="text-center col-md-6 col-md-offset-3">
- <i class="point-icon icon-beaker-alt"></i>
- <i class="point-icon icon-heart"></i>
- <i class="point-icon icon-spf13"></i>
- <h2>Built with <i class="icon-heart"></i></h2>
- <p class="lead">
- Hugo is developed with love by <a href="http://spf13.com">spf13</a> and friends.
- We welcome all contributions.
- New to Go? We’ll help you.
- Not a developer? No problem! Help
- with <a href="/overview/introduction/">docs,</a> testing
- and <a href="https://github.com/gohugoio/hugoThemes/">themes.</a>
- </p>
- </div>
- </div>
- {{ "<!--row end-->" | safeHTML }}
-
- </div>
- </div>
- {{ "<!--counterpoint end-->" | safeHTML }}
-
- {{ "<!--call to action start-->" | safeHTML }}
- <div id="action" class="call-to-action">
- <div class="container">
-
- {{ "<!--row start-->" | safeHTML }}
- <div class="row">
- <div class="text-center col-md-10 col-md-offset-1">
- <h1>Getting Started</h1>
- <a class="btn-primary btn btn-lg" href="https://github.com/gohugoio/hugo/releases">
- Download
- <i class="icon-arrow-down"></i>
- </a>
- <a class="quickstart" href="/overview/quickstart/">
- Quickstart Guide
- </a>
- <p>&nbsp;</p>
- <h4>Using Homebrew?</h4>
- <pre><code>brew install hugo</code></pre>
- </div>
- </div>
- {{ "<!--row end-->" | safeHTML }}
-
- </div>
- </div>
- {{ "<!--call to action end-->" | safeHTML }}
-
- {{ "<!--footer start-->" | safeHTML }}
- <footer>
- <div class="container">
-
- {{ "<!--row start-->" | safeHTML }}
- <div class="row">
- <div class="text-center col-md-6 col-md-offset-3">
- <ul class="list-inline">
- <li><a class="icon-twitter icon-2x" href="https://twitter.com/gohugoio"></a></li>
- <li><a class="icon-octocat icon-2x" href="https://github.com/gohugoio/hugo"></a></li>
- </ul>
- <hr>
- <p>Copyright &copy; Steve Francia 2013&ndash;{{ now.Format "2006" }}</p>
- </div>
- </div>
- {{ "<!--row end-->" | safeHTML }}
-
- </div>
- </footer>
- {{ "<!--footer end-->" | safeHTML }}
-
- {{ "<!--JavaScript: Keep at the end of the document so the page loads faster-->" | safeHTML }}
- <script src="/vendor/jquery/js/jquery-2.1.4.min.js"></script>
-
- {{ "<!--Bootstrap core JavaScript here-->" | safeHTML }}
- {{ `<!--<script src="/vendor/twitter/js/bootstrap.min.js"></script>-->` | safeHTML }}
-
- <script src="/vendor/OwlCarousel2/js/owl.carousel.min.js"></script>
- <script src="/js/owl.carousel-custom.js"></script>
-
- {{ "<!--custom JavaScript-->" | safeHTML }}
- <script>
- $(function() {
- $('a[href*=#]:not([href=#])').click(function() {
- if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
- || location.hostname == this.hostname) {
-
- var target = $(this.hash);
- target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
- if (target.length) {
- $('html,body').animate({
- scrollTop: target.offset().top
- }, 1000);
- return false;
- }
- }
- });
- });
- </script>
-
-{{ "<!--Google analytics-->" | safeHTML }}
-{{ template "partials/analytics.html" . }}
- </body>
-</html>
diff --git a/docs/layouts/index.redir b/docs/layouts/index.redir
deleted file mode 100644
index 2dfd2bc0f..000000000
--- a/docs/layouts/index.redir
+++ /dev/null
@@ -1,6 +0,0 @@
-# Netlify redirects. See https://www.netlify.com/docs/redirects/
-{{ range $p := .Site.Pages -}}
-{{ range .Aliases }}
-{{ . | printf "%-35s" }} {{ $p.RelPermalink -}}
-{{ end -}}
-{{- end -}}
diff --git a/docs/layouts/partials/analytics.html b/docs/layouts/partials/analytics.html
deleted file mode 100644
index a30754c0a..000000000
--- a/docs/layouts/partials/analytics.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
- ga('create', 'UA-7131036-4', 'spf13.com');
- ga('send', 'pageview');
-
-</script>
diff --git a/docs/layouts/partials/footer.html b/docs/layouts/partials/footer.html
deleted file mode 100644
index 6f9976448..000000000
--- a/docs/layouts/partials/footer.html
+++ /dev/null
@@ -1,59 +0,0 @@
- <div class="row">
- <div class="footer-panel">
- <p>Last revision: {{ .Lastmod.Format "January 2, 2006" }}{{ if .IsPage }}{{ with .GitInfo }} | <a href="https://github.com/gohugoio/hugoDocs/commit/{{ .Hash }}">{{ .Subject }} ({{ .AbbreviatedHash }})</a>{{end }}{{ end }}
- <span style="float: right;">Hugo v{{ .Site.Params.release }} documentation</span>
- </p>
- {{ with getenv "REPOSITORY_URL" -}}
- <a href="https://www.netlify.com" style="float: right; padding-right: 20px;">
- <img src="https://www.netlify.com/img/global/badges/netlify-color-bg.svg"/>
- </a>
- {{- end }}
- </div>
- </div>
-
- </div>
- </section>
-
- </div>
-
- <div class="col-md-1">
- {{ if .IsPage }}
- {{ with .GetParam "next" }}
- <a class="navigation next" href="{{.}}">
- <i class="fa fa-angle-right"> </i>
- </a>
- {{ end }}
- {{ end }}
- </div>
- </div>
- <!-- page start-->
- </section>
- </section>
- <!--main content end-->
- </section>
- <!-- container section end -->
-
- <!-- javascripts -->
- <script type="text/javascript" src="/vendor/jquery/js/jquery-2.1.4.min.js"></script>
- <script type="text/javascript" src="/vendor/flesler/js/jquery.scrollTo.min.js"></script>
- <script type="text/javascript" src="/vendor/twitter/js/bootstrap.min.js"></script>
- <!--custom script for all page-->
- <script type="text/javascript" src="/vendor/highlightjs/js/highlight.pack.js"></script>
- <script>hljs.initHighlightingOnLoad();</script>
- <script src="/js/scripts.js"></script>
- <!-- Algolia search -->
- <script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script>
- <script type="text/javascript">
- docsearch({
- apiKey: '167e7998590aebda7f9fedcf86bc4a55',
- indexName: 'hugodocs',
- inputSelector: '#search-input',
- algoliaOptions: {
- hitsPerPage: 5
- }
- });
- </script>
- <!-- Google Analytics -->
- {{ template "partials/analytics.html" . }}
- </body>
-</html>
diff --git a/docs/layouts/partials/header.html b/docs/layouts/partials/header.html
deleted file mode 100644
index 8149a7bb6..000000000
--- a/docs/layouts/partials/header.html
+++ /dev/null
@@ -1,93 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
- {{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
- {{ .Hugo.Generator }}
- <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
-{{ .Scratch.Add "title" "" }}{{ if isset .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}}
- <title>Hugo - {{ .Scratch.Get "title" }}</title>
-
- <link rel="stylesheet" type="text/css" href="/css/bootstrap-stripped-gohugo.css">
- <link rel="stylesheet" type="text/css" href="/css/bootstrap-changes-gohugo.css">
- <link rel="stylesheet" type="text/css" href="/css/bootstrap-additions-gohugo.css">
-
- <link rel="stylesheet" type="text/css" href="/vendor/font-awesome/css/font-awesome.min.css">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" />
- <link href="/css/style.css" rel="stylesheet">
- <link rel="stylesheet" type="text/css" href="/css/content-style.css" />
- <link href="/css/style-responsive.css" rel="stylesheet" />
- <link rel="stylesheet" type="text/css" href="/vendor/highlightjs/css/monokai-sublime.css">
-
- </head>
-
- <body>
- <!-- container section start -->
- <section id="container" class="">
-
- <!--header start-->
- <header class="header black-bg">
- <div class="toggle-nav">
- <i class="fa fa-bars"></i>
- <div class="icon-reorder tooltips" data-original-title="Toggle Navigation" data-placement="bottom"></div>
- </div>
-
- <!--logo start-->
- <a href="/" class="logo"><img src="/img/hugo-logo.png" style="height: 40px; vertical-align: bottom;"> <span style="font-size: small; text-transform: none;">v{{ .Site.Params.release }