logo

Grimgrains

[mirror] Plant-based cooking website <https://grimgrains.com/>
commit: 5cf84e03d45833f0636906c2b5d5c889ed9415f2
parent 162ae0496f91a4e4ffa09d764ff9b1fa0660fe7c
Author: microlith57 <microlith57@gmail.com>
Date:   Mon, 24 Jun 2019 13:56:22 +1200

Add page creation instructions to 404 page

Signed-off-by: microlith57 <microlith57@gmail.com>

Diffstat:

Mscripts/templates/search.js3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/templates/search.js b/scripts/templates/search.js @@ -32,7 +32,8 @@ function SearchTemplate (id, rect) { <h1 class='name'>Could not find "${q.name}"</h1> <h2 class='serving'>404</h2> <hr /> - <p>Did you mean <a onclick="Ø('query').bang('${similar[0].word.toLowerCase()}')" href='#${similar[0].word.toLowerCase().to_url()}'>${similar[0].word.toLowerCase()}</a>, <a onclick="Ø('query').bang('${similar[1].word.toLowerCase()}')" href='#${similar[1].word.toLowerCase().to_url()}'>${similar[1].word.toLowerCase()}</a> or <a onclick="Ø('query').bang('${similar[2].word.toLowerCase()}')" href='#${similar[2].word.toLowerCase().to_url()}'>${similar[2].word.toLowerCase()}</a>.</p>` + <p>Did you mean <a onclick="Ø('query').bang('${similar[0].word.toLowerCase()}')" href='#${similar[0].word.toLowerCase().to_url()}'>${similar[0].word.toLowerCase()}</a>, <a onclick="Ø('query').bang('${similar[1].word.toLowerCase()}')" href='#${similar[1].word.toLowerCase().to_url()}'>${similar[1].word.toLowerCase()}</a>, or <a onclick="Ø('query').bang('${similar[2].word.toLowerCase()}')" href='#${similar[2].word.toLowerCase().to_url()}'>${similar[2].word.toLowerCase()}</a>?</p> + <p>To create this page, open an issue or pull request ${"{{on GitHub|https://github.com/hundredrabbits/Grimgrains}}".to_markup()}.</p>` return html }