Skip to content

Commit

Permalink
Fix 404 implementation
Browse files Browse the repository at this point in the history
Hugo has taken ownership of this now, which I like because no more alias
hacking, but I had to clean up the mess I made.
  • Loading branch information
tummychow committed Jan 2, 2016
1 parent 9240acf commit 6e058aa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ Hugo's universal config file is [`config.json`](config.json) (or YAML, or TOML).

The original Lanyon had a layout for "pages", fixed content that didn't have a date. Lanyon-Hugo retains this concept, and refers to these pages as "fixed" (that's the content type, if you're familiar with Hugo concepts). Fixed pages will not display a date, only a title, and they will not be listed on the homepage of your site. Pages such as About (an example `about.md` has been lifted from the parent Lanyon) should generally be fixed.

You can alter the content of the custom 404 via [`fixed/404.md`](content/fixed/404.md). This is useful if you want a custom 404 for your GitHub Page.

### Sidebar Links

To indicate that a given piece of content should be linked in the sidebar, add a key `sidebar` to the front matter, and set it to `true`. See [`about.md`](content/fixed/about.md) for an example of this. You can pin content to the sidebar regardless of whether it is a post, or if it is fixed.
Expand Down
6 changes: 0 additions & 6 deletions content/fixed/404.md

This file was deleted.

8 changes: 8 additions & 0 deletions layouts/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{ partial "default_head.html" . }}

<div class="page">
<h1 class="page-title">404</h1>
<p>Sorry, we&rsquo;ve misplaced that URL or it&rsquo;s pointing to something that doesn&rsquo;t exist. <a href="/">Head back home</a> to try finding it again.</p>
</div>

{{ partial "default_foot.html" . }}

0 comments on commit 6e058aa

Please sign in to comment.