error-pages/templates
2024-08-12 11:34:17 +04:00
..
app-down.html (templates): use "word-break: keep-all" (#302) 2024-08-12 11:34:17 +04:00
cats.html (templates): use "word-break: keep-all" (#302) 2024-08-12 11:34:17 +04:00
connection.html (templates): use "word-break: keep-all" (#302) 2024-08-12 11:34:17 +04:00
embed_test.go v3.0.0 (#287) 2024-07-03 18:12:13 +04:00
embed.go v3.0.0 (#287) 2024-07-03 18:12:13 +04:00
ghost.html (templates): use "word-break: keep-all" (#302) 2024-08-12 11:34:17 +04:00
hacker-terminal.html (templates): use "word-break: keep-all" (#302) 2024-08-12 11:34:17 +04:00
l7.html (templates): use "word-break: keep-all" (#302) 2024-08-12 11:34:17 +04:00
lost-in-space.html (templates): use "word-break: keep-all" (#302) 2024-08-12 11:34:17 +04:00
noise.html (templates): use "word-break: keep-all" (#302) 2024-08-12 11:34:17 +04:00
orient.html (templates): use "word-break: keep-all" (#302) 2024-08-12 11:34:17 +04:00
readme.md v3.0.0 (#287) 2024-07-03 18:12:13 +04:00
shuffle.html (templates): use "word-break: keep-all" (#302) 2024-08-12 11:34:17 +04:00

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 or js 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: