summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Allen <dan@opendevise.com>2018-03-27 01:19:03 -0600
committerDan Allen <dan@opendevise.com>2018-03-27 01:19:03 -0600
commitcf22e15f05b709715e61c4f08af18a668ea5a8b5 (patch)
tree96b6901c73c9de828fd68bad9934f7702b6b6d6c /src
parenta340c3c7b2fc499637c9ee9a8398bbabf0dc458c (diff)
downloadalpine-antora-theme-cf22e15f05b709715e61c4f08af18a668ea5a8b5.tar.bz2
alpine-antora-theme-cf22e15f05b709715e61c4f08af18a668ea5a8b5.tar.xz
add title and contents for 404 page
Diffstat (limited to 'src')
-rw-r--r--src/partials/article.hbs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/partials/article.hbs b/src/partials/article.hbs
index a4c23a0..5b68a72 100644
--- a/src/partials/article.hbs
+++ b/src/partials/article.hbs
@@ -1,6 +1,17 @@
<article class="doc">
+{{#if (eq page.layout '404')}}
+<h1>{{{or page.title 'Page Not Found'}}}</h1>
+<div class="paragraph">
+<p>The page you're looking for does not exist. It may have been moved.</p>
+</div>
+<div class="paragraph">
+<p>If you arrived on this page by clicking on a link, please notify the owner of the site that the link is broken.
+If you typed the URL of this page manually, please double check that you entered the address correctly.</p>
+</div>
+{{else}}
{{#if page.title}}
<h1>{{{page.title}}}</h1>
{{/if}}
{{{page.contents}}}
+{{/if}}
</article>