From e5305bfde90370d19bf983726caafb5d117c1c0b Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sat, 20 Apr 2024 13:40:32 +0200 Subject: [PATCH] cleanup --- Dockerfile | 6 - README.md | 7 +- counter/index.css | 371 -------------------------------------- counter/index.html | 134 -------------- deploy.yml | 1 - docker-stack.yml.template | 34 ---- id_ed25519.pub | 1 - labels | 4 - nginx.conf | 106 ----------- pipeline.yml | 153 ---------------- robots.txt | 8 - ssh_config | 2 - 12 files changed, 2 insertions(+), 825 deletions(-) delete mode 100644 Dockerfile delete mode 100644 counter/index.css delete mode 100644 counter/index.html delete mode 100644 deploy.yml delete mode 100644 docker-stack.yml.template delete mode 100644 id_ed25519.pub delete mode 100644 labels delete mode 100644 nginx.conf delete mode 100644 pipeline.yml delete mode 100644 robots.txt delete mode 100644 ssh_config diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index cda94ad..0000000 --- a/Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -FROM nginx:1.24-bullseye - -COPY ./site-html /var/www/blog -COPY ./site-repo/nginx.conf /etc/nginx/conf.d/default.conf -COPY ./site-repo/counter /var/www/counter -COPY ./site-repo/robots.txt /var/www/robots.txt diff --git a/README.md b/README.md index 952676f..fde5feb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,3 @@ -# static +# Static -![CI](https://ci.kun.is/api/v1/teams/main/pipelines/static/badge) - -My static website written in Jekyll. -Deployment through Concourse. +Container image serving static resources. diff --git a/counter/index.css b/counter/index.css deleted file mode 100644 index ca82a2d..0000000 --- a/counter/index.css +++ /dev/null @@ -1,371 +0,0 @@ -body { - font-family:Open Sans,Arial; - color:#454545; - font-size:16px; - margin:2em auto; - max-width:800px; - padding:1em; - line-height:1.4; - text-align:justify -} -html.contrast body { - color:#050505 -} -html.contrast blockquote { - color:#11151a -} -html.contrast blockquote:before { - color:#262626 -} -html.contrast a { - color:#03f -} -html.contrast a:visited { - color:#7d013e -} -html.contrast span.wr { - color:#800 -} -html.contrast span.mfw { - color:#4d0000 -} -@media screen and (prefers-color-scheme:light) { - html.inverted { - background-color:#000 - } - html.inverted body { - color:#d9d9d9 - } - html.inverted #contrast, - html.inverted #invmode { - color:#fff; - background-color:#000 - } - html.inverted blockquote { - color:#d3c9be - } - html.inverted blockquote:before { - color:#b8b8b8 - } - html.inverted a { - color:#00a2e7 - } - html.inverted a:visited { - color:#ca1a70 - } - html.inverted span.wr { - color:#d24637 - } - html.inverted span.mfw { - color:#b00000 - } - html.inverted.contrast { - background-color:#000 - } - html.inverted.contrast body { - color:#fff - } - html.inverted.contrast #contrast, - html.inverted.contrast #invmode { - color:#fff; - background-color:#000 - } - html.inverted.contrast blockquote { - color:#f8f6f5 - } - html.inverted.contrast blockquote:before { - color:#e5e5e5 - } - html.inverted.contrast a { - color:#44c7ff - } - html.inverted.contrast a:visited { - color:#e9579e - } - html.inverted.contrast span.wr { - color:#db695d - } - html.inverted.contrast span.mfw { - color:#ff0d0d - } -} -@media (prefers-color-scheme:dark) { - html:not(.inverted) { - background-color:#000 - } - html:not(.inverted) body { - color:#d9d9d9 - } - html:not(.inverted) #contrast, - html:not(.inverted) #invmode { - color:#fff; - background-color:#000 - } - html:not(.inverted) blockquote { - color:#d3c9be - } - html:not(.inverted) blockquote:before { - color:#b8b8b8 - } - html:not(.inverted) a { - color:#00a2e7 - } - html:not(.inverted) a:visited { - color:#ca1a70 - } - html:not(.inverted) span.wr { - color:#d24637 - } - html:not(.inverted) span.mfw { - color:#b00000 - } - html:not(.inverted).contrast { - background-color:#000 - } - html:not(.inverted).contrast body { - color:#fff - } - html:not(.inverted).contrast #contrast, - html:not(.inverted).contrast #invmode { - color:#fff; - background-color:#000 - } - html:not(.inverted).contrast blockquote { - color:#f8f6f5 - } - html:not(.inverted).contrast blockquote:before { - color:#e5e5e5 - } - html:not(.inverted).contrast a { - color:#44c7ff - } - html:not(.inverted).contrast a:visited { - color:#e9579e - } - html:not(.inverted).contrast span.wr { - color:#db695d - } - html:not(.inverted).contrast span.mfw { - color:#ff0d0d - } - html.inverted html { - background-color:#fefefe - } -} -a { - color:#07a -} -a:visited { - color:#941352 -} -.noselect { - -webkit-touch-callout:none; - -webkit-user-select:none; - -khtml-user-select:none; - -moz-user-select:none; - -ms-user-select:none; - user-select:none -} -span.citneed { - vertical-align:top; - font-size:.7em; - padding-left:.3em -} -small { - font-size:.4em -} -p.st { - margin-top:-1em -} -div.fancyPositioning div.picture-left { - float:left; - width:40%; - overflow:hidden; - margin-right:1em -} -div.fancyPositioning div.picture-left img { - width:100% -} -div.fancyPositioning div.picture-left figure { - margin:10px -} -div.fancyPositioning div.picture-left figure figcaption { - font-size:.7em -} -div.fancyPositioning div.tleft { - float:left; - width:55% -} -div.fancyPositioning div.tleft p:first-child { - margin-top:0 -} -div.fancyPositioning:after { - display:block; - content:""; - clear:both -} -ul li img { - height:1em -} -blockquote { - color:#456; - margin-left:0; - margin-top:2em; - margin-bottom:2em -} -blockquote span { - float:left; - margin-left:1rem; - padding-top:1rem -} -blockquote author { - display:block; - clear:both; - font-size:.6em; - margin-left:2.4rem; - font-style:oblique -} -blockquote author:before { - content:"- "; - margin-right:1em -} -blockquote:before { - font-family:Times New Roman,Times,Arial; - color:#666; - content:open-quote; - font-size:2.2em; - font-weight:600; - float:left; - margin-top:0; - margin-right:.2rem; - width:1.2rem -} -blockquote:after { - content:""; - display:block; - clear:both -} -@media screen and (max-width:500px) { - body { - text-align:left - } - div.fancyPositioning div.picture-left, - div.fancyPositioning div.tleft { - float:none; - width:inherit - } - blockquote span { - width:80% - } - blockquote author { - padding-top:1em; - width:80%; - margin-left:15% - } - blockquote author:before { - content:""; - margin-right:inherit - } -} -span.visited { - color:#941352 -} -span.visited-maroon { - color:#85144b -} -span.wr { - color:#c0392b; - font-weight:600 -} -button.cont-inv, -span.wr { - text-decoration:underline -} -button.cont-inv { - cursor:pointer; - border-radius:2px; - position:fixed; - right:10px; - font-size:.8em; - border:0; - padding:2px 5px -} -#contrast { - color:#000; - top:10px -} -#contrast, -#invmode { - -webkit-touch-callout:none; - -webkit-user-select:none; - -khtml-user-select:none; - -moz-user-select:none; - -ms-user-select:none; - user-select:none -} -#invmode { - color:#fff; - background-color:#000; - position:fixed; - top:34px; - text-decoration:underline -} -@media screen and (max-width:1080px) { - #contrast, - #invmode { - position:absolute - } -} -span.sb { - color:#00e -} -span.sb, -span.sv { - cursor:not-allowed -} -span.sv { - color:#551a8b -} -span.foufoufou { - color:#444; - font-weight:700 -} -span.foufoufou:before { - content:""; - display:inline-block; - width:1em; - height:1em; - margin-left:.2em; - margin-right:.2em; - background-color:#444 -} -span.foufivfoufivfoufiv { - color:#454545; - font-weight:700 -} -span.foufivfoufivfoufiv:before { - content:""; - display:inline-block; - width:1em; - height:1em; - margin-left:.2em; - margin-right:.2em; - background-color:#454545 -} -span.mfw { - color:#730000 -} -a.kopimi, -a.kopimi img.kopimi { - display:block; - margin-left:auto; - margin-right:auto -} -a.kopimi img.kopimi { - height:2em -} -p.fakepre { - font-family:monospace; - font-size:.9em -} - diff --git a/counter/index.html b/counter/index.html deleted file mode 100644 index efa2d1c..0000000 --- a/counter/index.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - - - - -

Grades when (now!)

-

AN Resit

-

- The grades were published 2023-08-25 🎉 -

- -

OT

-

- The grades were published 2023-08-25 🎉 -

- -

RP2

-

- The grades were published 2023-08-25 🎉 -

- -

AS

-

- The grades were published 2023-07-19 🎉 -

- -

References

- OER-A (link): - - - - - - $HOME/.ssh/id_ed25519 - chmod 600 $HOME/.ssh/id_ed25519 - sed "s/TAG/$(cat version/version)/g" "site-repo/docker-stack.yml.template" > docker-stack.yml - cat docker-stack.yml - docker stack deploy --compose-file docker-stack.yml static - on_success: - put: apprise-notification - params: - title: "Static website deployed!" - body: "New version: $(cat version/version)" - no_get: true - on_failure: - << : *notify-failed diff --git a/robots.txt b/robots.txt deleted file mode 100644 index 8d5bf45..0000000 --- a/robots.txt +++ /dev/null @@ -1,8 +0,0 @@ -User-agent: SemrushBot -Disallow: / -User-agent: AhrefsBot -Disallow: / -User-agent: DotBot -Disallow: / -User-Agent: FacebookBot -Disallow: / diff --git a/ssh_config b/ssh_config deleted file mode 100644 index 725bda8..0000000 --- a/ssh_config +++ /dev/null @@ -1,2 +0,0 @@ -Host maestro.dmz - StrictHostKeyChecking no