aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/404.html10
-rw-r--r--layouts/partials/site-navigation.html72
2 files changed, 10 insertions, 72 deletions
diff --git a/layouts/404.html b/layouts/404.html
new file mode 100644
index 0000000..378b736
--- /dev/null
+++ b/layouts/404.html
@@ -0,0 +1,10 @@
+{{ define "main"}}
+ <main id="main">
+ <div>
+ <h1 id="title">Not found</h1>
+ <p>Oops! This page doesn't exist. Try going back to our <a href="{{ "/" | relURL }}">home page</a>.</p>
+
+ <p>You can learn how to make a 404 page like this in <a href="https://gohugo.io/templates/404/">Custom 404 Pages</a>.</p>
+ </div>
+ </main>
+{{ end }}
diff --git a/layouts/partials/site-navigation.html b/layouts/partials/site-navigation.html
deleted file mode 100644
index ba94825..0000000
--- a/layouts/partials/site-navigation.html
+++ /dev/null
@@ -1,72 +0,0 @@
-<nav class="pv3 ph3 ph4-ns" role="navigation">
- <div class="flex-l justify-between items-center center">
- <a href="{{ .Site.BaseURL }}" class="f3 fw2 hover-white no-underline white-90 dib">
- {{ .Site.Title }}
- </a>
- <div class="flex-l items-center">
-
- {{ $currentPage := . }}
- <!-- start .main-menu -->
- <ul class="pl0 mr3">
- {{ range .Site.Menus.main }}
- {{ if .HasChildren }}
- <li class="list f5 f4-ns fw4 dib pr3 {{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}">
- <a class="hover-white no-underline white-90" href="{{ .URL }}" title="{{ .Name }} page">
- {{ .Pre }}
- <span>{{ .Name }}</span>
- </a>
- <span id="about_chevron" class="fa fa-chevron-down"></span>
- <ul class="sub-menu dn pa0 w-33 center mt0">
- {{ range .Children }}
- <li class="db {{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
- <a href="{{ .URL }}">{{ .Name }}</a>
- </li>
- {{ end }}
- </ul>
- </li>
- {{ else }}
- <li class="list f5 f4-ns fw4 dib pr3">
- <a class="hover-white no-underline white-90" href="{{ .URL }}" title="{{ .Name }} page">
- {{ .Name }}
- </a>
- </li>
-
- {{ end }}
- {{ end }}
- </ul><!-- end /.main-menu -->
-
- {{ partial "social-follow.html" . }}
- </div>
- </div>
-</nav>
-<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
-<script type="text/javascript" src="/javascript/dropdown.js"></script>
-<style type="text/css">
- span.fa {
- color: #FFF;
- }
- @media (max-width: 991px) {
- ul.sub-menu {
- display: block;
- }
- }
- @media (min-width: 992px) {
- ul.sub-menu:not(.dn){
- position: absolute;
- top: auto;
- width: 100%;
- max-width: 320px;
- background: rgba(0,0,0,0.333);
- }
- }
- ul.sub-menu li a {
- color: #FFF;
- display: block;
- text-decoration: none;
- padding: 8px;
- }
- ul.sub-menu li a:hover,
- ul.sub-menu li a:focus {
- background: rgba(0,0,0,0.7);
- }
-</style>