diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 355342b..385c422 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -57,6 +57,7 @@ jobs: # Docs: test -f ./out/l7-light/404.html test -f ./out/shuffle/404.html test -f ./out/noise/404.html + test -f ./out/hacker-terminal/404.html docker-build: name: Build docker image diff --git a/CHANGELOG.md b/CHANGELOG.md index efdcb30..654de13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver]. +## v1.7.0 + +### Added + +- Template `hacker-terminal` [#13] +- HTML comments with error code and description into each template (header and footer, it seems more readable for curl usage) + +[#10]:https://github.com/tarampampam/error-pages/pull/13 + ## v1.6.0 ### Added diff --git a/README.md b/README.md index 7c6a38b..af1e957 100644 --- a/README.md +++ b/README.md @@ -22,13 +22,14 @@ Generated pages (from the latest release) always **[accessible here][link_gh_pag ## Templates - Name | Preview -:--------: | :-----: -`ghost` | [![ghost](https://hsto.org/webt/oj/cl/4k/ojcl4ko_cvusy5xuki6efffzsyo.gif)](https://tarampampam.github.io/error-pages/ghost/404.html) -`l7-light` | [![l7-light](https://hsto.org/webt/xc/iq/vt/xciqvty-aoj-rchfarsjhutpjny.png)](https://tarampampam.github.io/error-pages/l7-light/404.html) -`l7-dark` | [![l7-dark](https://hsto.org/webt/s1/ih/yr/s1ihyrqs_y-sgraoimfhk6ypney.png)](https://tarampampam.github.io/error-pages/l7-dark/404.html) -`shuffle` | [![shuffle](https://hsto.org/webt/7w/rk/3m/7wrk3mrzz3y8qfqwovmuvacu-bs.gif)](https://tarampampam.github.io/error-pages/shuffle/404.html) -`noise` | [![noise](https://hsto.org/webt/42/oq/8y/42oq8yok_i-arrafjt6hds_7ahy.gif)](https://tarampampam.github.io/error-pages/noise/404.html) + Name | Preview +:---------------: | :-----: +`ghost` | [![ghost](https://hsto.org/webt/oj/cl/4k/ojcl4ko_cvusy5xuki6efffzsyo.gif)](https://tarampampam.github.io/error-pages/ghost/404.html) +`l7-light` | [![l7-light](https://hsto.org/webt/xc/iq/vt/xciqvty-aoj-rchfarsjhutpjny.png)](https://tarampampam.github.io/error-pages/l7-light/404.html) +`l7-dark` | [![l7-dark](https://hsto.org/webt/s1/ih/yr/s1ihyrqs_y-sgraoimfhk6ypney.png)](https://tarampampam.github.io/error-pages/l7-dark/404.html) +`shuffle` | [![shuffle](https://hsto.org/webt/7w/rk/3m/7wrk3mrzz3y8qfqwovmuvacu-bs.gif)](https://tarampampam.github.io/error-pages/shuffle/404.html) +`noise` | [![noise](https://hsto.org/webt/42/oq/8y/42oq8yok_i-arrafjt6hds_7ahy.gif)](https://tarampampam.github.io/error-pages/noise/404.html) +`hacker-terminal` | [![hacker-terminal](https://hsto.org/webt/5s/l0/p1/5sl0p1_ud_nalzjzsj5slz6dfda.gif)](https://tarampampam.github.io/error-pages/hacker-terminal/404.html) > Note: `noise` template highly uses the CPU, be careful @@ -94,7 +95,7 @@ FROM nginx:1.18-alpine COPY --chown=nginx \ ./nginx.conf /etc/nginx/conf.d/default.conf COPY --chown=nginx \ - --from=tarampampam/error-pages:1.5.0 \ + --from=tarampampam/error-pages:1.7.0 \ /opt/html/ghost /usr/share/nginx/errorpages/_error-pages ``` @@ -113,7 +114,7 @@ version: '3.4' services: error-pages: - image: tarampampam/error-pages:1.5.0 + image: tarampampam/error-pages:1.7.0 environment: TEMPLATE_NAME: l7-dark networks: diff --git a/config.json b/config.json index 11b520f..2045eae 100644 --- a/config.json +++ b/config.json @@ -19,6 +19,10 @@ { "name": "noise", "path": "./templates/noise.html" + }, + { + "name": "hacker-terminal", + "path": "./templates/hacker-terminal.html" } ], "output": { diff --git a/templates/ghost.html b/templates/ghost.html index 7b397f4..1b95f1d 100644 --- a/templates/ghost.html +++ b/templates/ghost.html @@ -1,4 +1,8 @@ + @@ -17,7 +21,8 @@ h3 {font-size:1.05em;text-transform: uppercase;margin:0.3em auto} .description {font-size:0.8em;color:#aaa} - + +
@@ -39,4 +44,9 @@

Error {{ code }}

{{ description }}

- + + + diff --git a/templates/hacker-terminal.html b/templates/hacker-terminal.html new file mode 100644 index 0000000..ebc0dbc --- /dev/null +++ b/templates/hacker-terminal.html @@ -0,0 +1,130 @@ + + + + + + + + {{ message }} + + + + + +
+
+

Error {{ code }}

+

{{ description }}.

+

Good luck.

+
+ + + diff --git a/templates/l7-dark.html b/templates/l7-dark.html index b633993..ec45d87 100644 --- a/templates/l7-dark.html +++ b/templates/l7-dark.html @@ -1,4 +1,8 @@ + @@ -26,4 +30,8 @@ + diff --git a/templates/l7-light.html b/templates/l7-light.html index bc5586e..baed8b8 100644 --- a/templates/l7-light.html +++ b/templates/l7-light.html @@ -1,4 +1,8 @@ + @@ -26,4 +30,8 @@ + diff --git a/templates/noise.html b/templates/noise.html index 06d2d24..6ab9cca 100644 --- a/templates/noise.html +++ b/templates/noise.html @@ -1,4 +1,8 @@ + @@ -161,4 +165,8 @@ }); + diff --git a/templates/shuffle.html b/templates/shuffle.html index 9eb75c1..1e3dfd8 100644 --- a/templates/shuffle.html +++ b/templates/shuffle.html @@ -1,4 +1,8 @@ + @@ -68,4 +72,8 @@ }, 350); +