Browse Source

Made strings of 404 page customizable

master
digitalcraftsman 10 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"> <section id="wrapper" class="home">
<article class="post"> <article class="post">
<header> <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> </header>
{{ partial "archive.html" . }} {{ partial "archive.html" . }}

2
layouts/partials/archive.html

@ -1,5 +1,5 @@
<ul id="post-list" class="archive readmore"> <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 }} {{ range first 10 .Site.Pages }}
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} {{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ if ne $url "about/" }} {{ if ne $url "about/" }}

Loading…
Cancel
Save