mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
.. | ||
app-down.html | ||
cats.html | ||
connection.html | ||
embed_test.go | ||
embed.go | ||
ghost.html | ||
hacker-terminal.html | ||
l7.html | ||
lost-in-space.html | ||
noise.html | ||
orient.html | ||
readme.md | ||
shuffle.html |
Templates
Creating templates is a straightforward process, even for those unfamiliar with Go Template. Here are a few things to keep in mind:
- The template should be a single page, without additional
css
orjs
files. However, you can load them from a CDN or other GitHub repositories using jsdelivr.com - Be sure to include the
<meta name="robots" content="nofollow,noarchive,noindex">
tag in the header - You can use special "placeholders" (wrapped in
{{
and}}
) for the rendering error code, message, and other details
Built-in "placeholders" and functions with their examples can be found in the following files: