From 4707d9b68c76e2c8ade54b8b8b0216d261f62f65 Mon Sep 17 00:00:00 2001 From: digitalcraftsman Date: Sun, 21 Jun 2015 11:48:45 +0200 Subject: [PATCH] Made strings of 404 page customizable --- layouts/404.html | 4 ++-- layouts/partials/archive.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/404.html b/layouts/404.html index c29a518..06f00d0 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -5,8 +5,8 @@
-

404 - page not found

-

The page you're looking for doesn't seem to exist.

+

{{ with .Site.Params.title404 }}{{ . }}{{ else }}404 - Page not found{{ end }}

+

{{ with .Site.Params.subtitle404 }}{{ . }}{{ else }}The content you're looking for doesn't seem to exist.{{ end }}

{{ partial "archive.html" . }} diff --git a/layouts/partials/archive.html b/layouts/partials/archive.html index 2194ba5..fedc57b 100644 --- a/layouts/partials/archive.html +++ b/layouts/partials/archive.html @@ -1,5 +1,5 @@
    -

    Read more

    +

    {{ with .Site.Params.readMore }}{{ . }}{{ else }}Read more{{ end }}

    {{ range first 10 .Site.Pages }} {{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} {{ if ne $url "about/" }}