Browse Source

Made strings of 404 page customizable

master
digitalcraftsman 9 years ago
parent
commit
4707d9b68c
  1. 4
      layouts/404.html
  2. 2
      layouts/partials/archive.html

4
layouts/404.html

@ -5,8 +5,8 @@
<section id="wrapper" class="home">
<article class="post">
<header>
<h1>404 - page not found</h1>
<h3>The page you're looking for doesn't seem to exist.</h3>
<h1>{{ with .Site.Params.title404 }}{{ . }}{{ else }}404 - Page not found{{ end }}</h1>
<h3>{{ with .Site.Params.subtitle404 }}{{ . }}{{ else }}The content you're looking for doesn't seem to exist.{{ end }}</h3>
</header>
{{ partial "archive.html" . }}

2
layouts/partials/archive.html

@ -1,5 +1,5 @@
<ul id="post-list" class="archive readmore">
<h3>Read more</h3>
<h3>{{ with .Site.Params.readMore }}{{ . }}{{ else }}Read more{{ end }}</h3>
{{ range first 10 .Site.Pages }}
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ if ne $url "about/" }}

Loading…
Cancel
Save