diff options
author | mms <michal@sapka.me> | 2024-02-26 21:45:23 +0100 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-02-26 21:45:23 +0100 |
commit | aec99f3e8d57f40545e9cad1657e1d85952816c0 (patch) | |
tree | 5bafd1d6d9bc2ab6ad5aa5165c787451a6a99216 | |
parent | 22d97916f51c049a777148205c0fd95a1aabc689 (diff) |
feat: web buttons
45 files changed, 73 insertions, 46 deletions
diff --git a/assets/webbuttons/bsd-license.gif b/assets/webbuttons/bsd-license.gif Binary files differnew file mode 100644 index 0000000..059c894 --- /dev/null +++ b/assets/webbuttons/bsd-license.gif diff --git a/assets/webbuttons/coffee.gif b/assets/webbuttons/coffee.gif Binary files differnew file mode 100644 index 0000000..2d63800 --- /dev/null +++ b/assets/webbuttons/coffee.gif diff --git a/assets/webbuttons/eff.gif b/assets/webbuttons/eff.gif Binary files differnew file mode 100644 index 0000000..58cfd42 --- /dev/null +++ b/assets/webbuttons/eff.gif diff --git a/assets/webbuttons/email-me.png b/assets/webbuttons/email-me.png Binary files differnew file mode 100644 index 0000000..e4f43f0 --- /dev/null +++ b/assets/webbuttons/email-me.png diff --git a/assets/webbuttons/email.gif b/assets/webbuttons/email.gif Binary files differnew file mode 100644 index 0000000..b86e271 --- /dev/null +++ b/assets/webbuttons/email.gif diff --git a/assets/webbuttons/evangelion.png b/assets/webbuttons/evangelion.png Binary files differnew file mode 100644 index 0000000..6774817 --- /dev/null +++ b/assets/webbuttons/evangelion.png diff --git a/assets/webbuttons/freebsd.gif b/assets/webbuttons/freebsd.gif Binary files differnew file mode 100644 index 0000000..c807706 --- /dev/null +++ b/assets/webbuttons/freebsd.gif diff --git a/assets/webbuttons/gemini.gif b/assets/webbuttons/gemini.gif Binary files differnew file mode 100644 index 0000000..6016926 --- /dev/null +++ b/assets/webbuttons/gemini.gif diff --git a/assets/webbuttons/get-firefox.gif b/assets/webbuttons/get-firefox.gif Binary files differnew file mode 100644 index 0000000..78ee8d8 --- /dev/null +++ b/assets/webbuttons/get-firefox.gif diff --git a/assets/webbuttons/gnu-emacs.png b/assets/webbuttons/gnu-emacs.png Binary files differnew file mode 100644 index 0000000..963475c --- /dev/null +++ b/assets/webbuttons/gnu-emacs.png diff --git a/assets/webbuttons/home.gif b/assets/webbuttons/home.gif Binary files differnew file mode 100644 index 0000000..942cb57 --- /dev/null +++ b/assets/webbuttons/home.gif diff --git a/assets/webbuttons/http-11.png b/assets/webbuttons/http-11.png Binary files differnew file mode 100644 index 0000000..8574ccd --- /dev/null +++ b/assets/webbuttons/http-11.png diff --git a/assets/webbuttons/indieweb.svg b/assets/webbuttons/indieweb.svg new file mode 100644 index 0000000..39158ba --- /dev/null +++ b/assets/webbuttons/indieweb.svg @@ -0,0 +1,33 @@ +<svg width="80" height="15" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 15"> +<rect x="0" y="0" width="80" height="15" fill="white" stroke-width="2" stroke="#666"/> +<rect x="3" y="4" width="7" height="2" fill="#FC0D1B" /> +<rect x="3" y="7" width="7" height="4" fill="#FC0D1B" /> +<rect x="11" y="4" width="1" height="2" fill="#fc5d20" /> +<rect x="12" y="6" width="1" height="3" fill="#fc5d20" /> +<rect x="13" y="9" width="1" height="2" fill="#fc5d20" /> +<polygon points="13,4 19,4 19,6 18,6 18,9 17,9 17,11 15,11 15,9 14,9 14,6 13,6" fill="#fc5d20" /> +<polygon points="21,4 25,4 25,5 26,5 26,7 22,7 22,8 26,8 26,10 25,10 25,11 21,11 21,10 20,10 20,8 19,8 19,7 20,7 20,5 21,5" fill="#fdb02a" /> + +<rect x="28" y="2" width="50" height="1" fill="#fda829" /> +<rect x="28" y="3" width="50" height="1" fill="#fd9c27" /> +<rect x="28" y="4" width="50" height="1" fill="#fd9025" /> +<rect x="28" y="5" width="50" height="1" fill="#fd8124" /> +<rect x="28" y="6" width="50" height="1" fill="#fd7222" /> +<rect x="28" y="7" width="50" height="1" fill="#fd6420" /> +<rect x="28" y="8" width="50" height="1" fill="#fc561f" /> +<rect x="28" y="9" width="50" height="1" fill="#fc481e" /> +<rect x="28" y="10" width="50" height="1" fill="#fc371d" /> +<rect x="28" y="11" width="50" height="1" fill="#fc291c" /> +<rect x="28" y="12" width="50" height="1" fill="#fc1c1c" /> +<path d="m33,5 h1 v5 h-1 z" fill="#fff" /> +<path d="m36,5 h1 v1 h1 v1 h1 v1 h1 v-3 h1 v5 h-1 v-1 h-1 v-1 h-1 v-1 h-1 v3 h-1 z" fill="#fff" /> +<path d="m43,5 h3 v1 h-2 v3 h2 v1 h-3 z" fill="#fff" /> +<path d="m46,6 h1 v3 h-1 z" fill="#fff" /> +<path d="m49,5 h1 v5 h-1 z" fill="#fff" /> +<path d="m52,5 h3 v1 h-2 v1 h2 v1 h-2 v1 h2 v1 h-3 z" fill="#fff" /> +<path d="m57,5 h1 v4 h1 v-3 h1 v3 h1 v-4 h1 v4 h-1 v1 h-1 v-1 h-1 v1 h-1 v-1 h-1 z" fill="#fff" /> +<path d="m64,5 h3 v1 h-2 v1 h2 v1 h-2 v1 h2 v1 h-3 z" fill="#fff" /> +<path d="m69,5 h3 v1 h-2 v1 h2 v1 h-2 v1 h2 v1 h-3 z" fill="#fff" /> +<rect x="72" y="6" width="1" height="1" fill="#fff" /> +<rect x="72" y="8" width="1" height="1" fill="#fff" /> +</svg> diff --git a/assets/webbuttons/jabber.gif b/assets/webbuttons/jabber.gif Binary files differnew file mode 100644 index 0000000..f37b343 --- /dev/null +++ b/assets/webbuttons/jabber.gif diff --git a/assets/webbuttons/lain.png b/assets/webbuttons/lain.png Binary files differnew file mode 100644 index 0000000..41c1ba5 --- /dev/null +++ b/assets/webbuttons/lain.png diff --git a/assets/webbuttons/lisp.png b/assets/webbuttons/lisp.png Binary files differnew file mode 100644 index 0000000..7e2af36 --- /dev/null +++ b/assets/webbuttons/lisp.png diff --git a/assets/webbuttons/open-bsd.png b/assets/webbuttons/open-bsd.png Binary files differnew file mode 100644 index 0000000..b5b9486 --- /dev/null +++ b/assets/webbuttons/open-bsd.png diff --git a/assets/webbuttons/rss-2.gif b/assets/webbuttons/rss-2.gif Binary files differnew file mode 100644 index 0000000..60f7e7d --- /dev/null +++ b/assets/webbuttons/rss-2.gif diff --git a/assets/webbuttons/rss-20.gif b/assets/webbuttons/rss-20.gif Binary files differnew file mode 100644 index 0000000..60f7e7d --- /dev/null +++ b/assets/webbuttons/rss-20.gif diff --git a/assets/webbuttons/ruby-lang.png b/assets/webbuttons/ruby-lang.png Binary files differnew file mode 100644 index 0000000..ecd1d6b --- /dev/null +++ b/assets/webbuttons/ruby-lang.png diff --git a/assets/webbuttons/self-hosted.gif b/assets/webbuttons/self-hosted.gif Binary files differnew file mode 100644 index 0000000..fc67651 --- /dev/null +++ b/assets/webbuttons/self-hosted.gif diff --git a/assets/webbuttons/text-powered.gif b/assets/webbuttons/text-powered.gif Binary files differnew file mode 100644 index 0000000..16a15d5 --- /dev/null +++ b/assets/webbuttons/text-powered.gif diff --git a/assets/webbuttons/trekkie.gif b/assets/webbuttons/trekkie.gif Binary files differnew file mode 100644 index 0000000..4929b66 --- /dev/null +++ b/assets/webbuttons/trekkie.gif diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 49f65df..b626a95 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -97,43 +97,11 @@ {{ block "pagination" . }} {{ end }} - {{ partial "back_nav" . }} <br><br> </main> - - - <footer> - <nav id="top-nav"> - <nav id="main-nav"> - <a href="/">Home</a> | - <a href="/about">About</a> | - <a href="/links">Links</a> | - <a href="/index.xml">RSS</a> - </nav> - <nav id="categories-nav"> - <a href="/articles/">Articles</a> | - <a href="/blog/">Blog</a> | - <a href="/bsd/">BSD</a> | - <a href="/emacs/">Emacs</a> | - <a href="/funnies/">Funnies</a> | - <a href="/site/">Site info</a> | - <a href="/star-trek/">Star Trek </a> | - <a href="/vcs/git">VCS</a> - </nav> - <br> - <nav> - Powered by - <a href="https://www.openbsd.org/">OpenBSD</a>, - <a href="https://gohugo.io/">Hugo</a>, and - <a href="https://www.gnu.org/software/emacs/">Emacs</a>. - Consider <a href="https://notochrome.org/">not using Chrome</a>. - - </nav> - - </nav> - </nav> + {{ partial "button-15" (dict "button" . "file" "home.gif" "alt" "Return to homepage" "href" "/") }} </footer> </body> </html> diff --git a/layouts/_default/index.html b/layouts/_default/index.html index f18ba65..f1c2980 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -10,6 +10,8 @@ Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland. This we <a href="/links/">Links</a> // <a href="/me/now/">Now</a> </nav> + +<BR> <div> <a href="https://nonbot.org/pledged/view/9b37caf2-57c1-4934-9bea-69c54eb46452" target="_blank"> <img style="height:128px;margin-top:10px;margin-bottom:10px;" src="https://nonbot.org/images/nonbot_pledged_logo.svg" alt="Human-made Content"> @@ -41,6 +43,26 @@ Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland. This we <h2>TOC</h2> You can also use <a href="/toc">Table of Contents</a>. <br><br> + +<h2>Web buttons</h2> + + <nav> + {{ partial "button-15" (dict "button" . "file" "open-bsd.png" "alt" "Powered by OpenBSD" "href" "https://openbsd.org") }} + {{ partial "button-15" (dict "button" . "file" "gnu-emacs.png" "alt" "Powered by GNU Emacs" "href" "https://www.gnu.org/software/emacs/") }} + {{ partial "button-15" (dict "button" . "file" "trekkie.gif" "alt" "I am a trekkie" "href" "/star-trek/") }} + {{ partial "button-15" (dict "button" . "file" "rss-20.gif" "alt" "RSS Feed" "href" "/index.xml") }} + {{ partial "button-15" (dict "button" . "file" "self-hosted.gif" "alt" "Self hosted on OpenBSD Amsterdam" "href" "https://openbsd.amsterdam/") }} + {{ partial "button-15" (dict "button" . "file" "text-powered.gif" "alt" "Text powered" ) }} + {{ partial "button-15" (dict "button" . "file" "freebsd.gif" "alt" "Freebsd" "href" "https://freebsd.org" ) }} + {{ partial "button-15" (dict "button" . "file" "coffee.gif" "alt" "Powered by cofee") }} + {{ partial "button-15" (dict "button" . "file" "get-firefox.gif" "alt" "Gef Firefox" "href" "https://www.mozilla.org/firefox/") }} + {{ partial "button-15" (dict "button" . "file" "http-11.png" "alt" "Served with HTTP 1.1") }} + {{ partial "button-15" (dict "button" . "file" "jabber.gif" "alt" "Use Jabber") }} + {{ partial "button-15" (dict "button" . "file" "lisp.png" "alt" "Use Lisp") }} + {{ partial "button-15" (dict "button" . "file" "ruby-lang.png" "alt" "Use Ruby" "href" "https://www.ruby-lang.org/") }} + {{ partial "button-15" (dict "button" . "file" "evangelion.png" "alt" "Neon Genesis Evangelion 4 Life" ) }} + {{ partial "button-15" (dict "button" . "file" "lain.png" "alt" "Serial Experiments Lain 4 Life" ) }} + </nav> {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4fc3986..191f651 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -23,22 +23,13 @@ <a href="{{$.Site.Params.repoUrl}}/commit/{{$lastmodhash}}">{{ $lastmod }}</a> </time> {{ end }} - </div> - <aside> - <h2>Author</h2> - <p> - Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland. - This website is not dedicated to any particular one thing. - Instead, I write whatever interests me most at the moment. - No content here is auto-generated, so any bugs, problems, or controversies are entirely on me! - </p> - <p> - I don't have any commenting system, but comments over <a href="/me/contact">email</a> are more than welcome! - </p> - </aside> + {{ partial "button-15" (dict "button" . "file" "email-me.png" "alt" "Email me" "href" "/me/contact/") }} + {{- end }} {{- end }} </article> + + </div> {{ end }} diff --git a/layouts/partials/button-15.html b/layouts/partials/button-15.html new file mode 100644 index 0000000..009ed5c --- /dev/null +++ b/layouts/partials/button-15.html @@ -0,0 +1,13 @@ +{{- $file := .file }} +{{- $path := printf "webbuttons/%s" $file}} +{{- $img := resources.Get $path }} +{{- $img := $img.Resize "80x15 webp q90"}} + +{{- if $.href }} <a href="{{ $.href }}"> {{ end }} + <img + class="webbutton" + alt="{{ $.alt }}" + src="{{ $img.RelPermalink }}" + width="{{ $img.Width }}" + height="{{ $img.Height }}"> +{{- if $.href }} </a> {{ end }} diff --git a/resources/_gen/images/coffee_hu0f8f58d3b85168e42199513a1ccf55bf_201_80x15_resize_q90_h2_box_1.webp b/resources/_gen/images/coffee_hu0f8f58d3b85168e42199513a1ccf55bf_201_80x15_resize_q90_h2_box_1.webp Binary files differnew file mode 100644 index 0000000..2e3c2fc --- /dev/null +++ b/resources/_gen/images/coffee_hu0f8f58d3b85168e42199513a1ccf55bf_201_80x15_resize_q90_h2_box_1.webp diff --git a/resources/_gen/images/email-me_huac3ff839f32dc9c6e9fc370493e143d5_4941_80x15_resize_q90_h2_box_3.webp b/resources/_gen/images/email-me_huac3ff839f32dc9c6e9fc370493e143d5_4941_80x15_resize_q90_h2_box_3.webp Binary files differnew file mode 100644 index 0000000..9eb878c --- /dev/null +++ b/resources/_gen/images/email-me_huac3ff839f32dc9c6e9fc370493e143d5_4941_80x15_resize_q90_h2_box_3.webp diff --git a/resources/_gen/images/evangelion_hud1387a280905dd6d33f0e4b8284df307_693_80x15_resize_q90_h2_box_3.webp b/resources/_gen/images/evangelion_hud1387a280905dd6d33f0e4b8284df307_693_80x15_resize_q90_h2_box_3.webp Binary files differnew file mode 100644 index 0000000..df55f65 --- /dev/null +++ b/resources/_gen/images/evangelion_hud1387a280905dd6d33f0e4b8284df307_693_80x15_resize_q90_h2_box_3.webp diff --git a/resources/_gen/images/freebsd_hucc7def00f87610c2e84a84ff399604fb_1260_80x15_resize_q90_h2_box_1.webp b/resources/_gen/images/freebsd_hucc7def00f87610c2e84a84ff399604fb_1260_80x15_resize_q90_h2_box_1.webp Binary files differnew file mode 100644 index 0000000..d4c7a94 --- /dev/null +++ b/resources/_gen/images/freebsd_hucc7def00f87610c2e84a84ff399604fb_1260_80x15_resize_q90_h2_box_1.webp diff --git a/resources/_gen/images/get-firefox_hueb074664dcd532a6d8c1447ca0868ad4_830_80x15_resize_q90_h2_box_1.webp b/resources/_gen/images/get-firefox_hueb074664dcd532a6d8c1447ca0868ad4_830_80x15_resize_q90_h2_box_1.webp Binary files differnew file mode 100644 index 0000000..937c0a6 --- /dev/null +++ b/resources/_gen/images/get-firefox_hueb074664dcd532a6d8c1447ca0868ad4_830_80x15_resize_q90_h2_box_1.webp diff --git a/resources/_gen/images/gnu-emacs_huf7bdb8487a6dbf2e5f4796809af0fb57_404_80x15_resize_q90_h2_box_3.webp b/resources/_gen/images/gnu-emacs_huf7bdb8487a6dbf2e5f4796809af0fb57_404_80x15_resize_q90_h2_box_3.webp Binary files differnew file mode 100644 index 0000000..9607d98 --- /dev/null +++ b/resources/_gen/images/gnu-emacs_huf7bdb8487a6dbf2e5f4796809af0fb57_404_80x15_resize_q90_h2_box_3.webp diff --git a/resources/_gen/images/home_hu70de11752cc4180342f22444523f4882_707_80x15_resize_q90_h2_box_1.webp b/resources/_gen/images/home_hu70de11752cc4180342f22444523f4882_707_80x15_resize_q90_h2_box_1.webp Binary files differnew file mode 100644 index 0000000..2fdf126 --- /dev/null +++ b/resources/_gen/images/home_hu70de11752cc4180342f22444523f4882_707_80x15_resize_q90_h2_box_1.webp diff --git a/resources/_gen/images/http-11_hudba6ef48a7632aa5d82518f6a36695a1_284_80x15_resize_q90_h2_box_3.webp b/resources/_gen/images/http-11_hudba6ef48a7632aa5d82518f6a36695a1_284_80x15_resize_q90_h2_box_3.webp Binary files differnew file mode 100644 index 0000000..865a160 --- /dev/null +++ b/resources/_gen/images/http-11_hudba6ef48a7632aa5d82518f6a36695a1_284_80x15_resize_q90_h2_box_3.webp diff --git a/resources/_gen/images/jabber_huf556dfcce625b85c562de8dc695c53e3_1053_80x15_resize_q90_h2_box_1.webp b/resources/_gen/images/jabber_huf556dfcce625b85c562de8dc695c53e3_1053_80x15_resize_q90_h2_box_1.webp Binary files differnew file mode 100644 index 0000000..8868c5e --- /dev/null +++ b/resources/_gen/images/jabber_huf556dfcce625b85c562de8dc695c53e3_1053_80x15_resize_q90_h2_box_1.webp diff --git a/resources/_gen/images/lain_hu541a52371bc3564073d43b91332ee27a_1185_80x15_resize_q90_h2_box_3.webp b/resources/_gen/images/lain_hu541a52371bc3564073d43b91332ee27a_1185_80x15_resize_q90_h2_box_3.webp Binary files differnew file mode 100644 index 0000000..5920277 --- /dev/null +++ b/resources/_gen/images/lain_hu541a52371bc3564073d43b91332ee27a_1185_80x15_resize_q90_h2_box_3.webp diff --git a/resources/_gen/images/lisp_huc31e12ec21c0a47739783fca99fec97d_213_80x15_resize_q90_h2_box_3.webp b/resources/_gen/images/lisp_huc31e12ec21c0a47739783fca99fec97d_213_80x15_resize_q90_h2_box_3.webp Binary files differnew file mode 100644 index 0000000..0cfbbfb --- /dev/null +++ b/resources/_gen/images/lisp_huc31e12ec21c0a47739783fca99fec97d_213_80x15_resize_q90_h2_box_3.webp diff --git a/resources/_gen/images/open-bsd_hubbc32fb243df20eca6fa715acf9bf8f9_910_80x15_resize_q90_h2_box_3.webp b/resources/_gen/images/open-bsd_hubbc32fb243df20eca6fa715acf9bf8f9_910_80x15_resize_q90_h2_box_3.webp Binary files differnew file mode 100644 index 0000000..b1d739a --- /dev/null +++ b/resources/_gen/images/open-bsd_hubbc32fb243df20eca6fa715acf9bf8f9_910_80x15_resize_q90_h2_box_3.webp diff --git a/resources/_gen/images/rss-20_hua3ea2457537df7ae85032343f00ef55a_989_80x15_resize_q90_h2_box_1.webp b/resources/_gen/images/rss-20_hua3ea2457537df7ae85032343f00ef55a_989_80x15_resize_q90_h2_box_1.webp Binary files differnew file mode 100644 index 0000000..7945f47 --- /dev/null +++ b/resources/_gen/images/rss-20_hua3ea2457537df7ae85032343f00ef55a_989_80x15_resize_q90_h2_box_1.webp diff --git a/resources/_gen/images/ruby-lang_hu2b7e55f2d60f3eef728b6d84eeddb41e_817_80x15_resize_q90_h2_box_3.webp b/resources/_gen/images/ruby-lang_hu2b7e55f2d60f3eef728b6d84eeddb41e_817_80x15_resize_q90_h2_box_3.webp Binary files differnew file mode 100644 index 0000000..f1423dc --- /dev/null +++ b/resources/_gen/images/ruby-lang_hu2b7e55f2d60f3eef728b6d84eeddb41e_817_80x15_resize_q90_h2_box_3.webp diff --git a/resources/_gen/images/ruby-lang_hufed4d1cebe1b6a9127729332f91c75d5_297_80x15_resize_q90_h2_box_3.webp b/resources/_gen/images/ruby-lang_hufed4d1cebe1b6a9127729332f91c75d5_297_80x15_resize_q90_h2_box_3.webp Binary files differnew file mode 100644 index 0000000..a19e4a9 --- /dev/null +++ b/resources/_gen/images/ruby-lang_hufed4d1cebe1b6a9127729332f91c75d5_297_80x15_resize_q90_h2_box_3.webp diff --git a/resources/_gen/images/self-hosted_hu4f13dcd7e18c3d1a6eb8997f4e1861d1_994_80x15_resize_q90_h2_box_1.webp b/resources/_gen/images/self-hosted_hu4f13dcd7e18c3d1a6eb8997f4e1861d1_994_80x15_resize_q90_h2_box_1.webp Binary files differnew file mode 100644 index 0000000..3c5806c --- /dev/null +++ b/resources/_gen/images/self-hosted_hu4f13dcd7e18c3d1a6eb8997f4e1861d1_994_80x15_resize_q90_h2_box_1.webp diff --git a/resources/_gen/images/text-powered_hu1232705f63e41615b7610bfe41ea3899_1175_80x15_resize_q90_h2_box_1.webp b/resources/_gen/images/text-powered_hu1232705f63e41615b7610bfe41ea3899_1175_80x15_resize_q90_h2_box_1.webp Binary files differnew file mode 100644 index 0000000..2e249e7 --- /dev/null +++ b/resources/_gen/images/text-powered_hu1232705f63e41615b7610bfe41ea3899_1175_80x15_resize_q90_h2_box_1.webp diff --git a/resources/_gen/images/trekkie_hu0d2812be174b24cf83de3b10da853073_1348_80x15_resize_q90_h2_box_1.webp b/resources/_gen/images/trekkie_hu0d2812be174b24cf83de3b10da853073_1348_80x15_resize_q90_h2_box_1.webp Binary files differnew file mode 100644 index 0000000..3fb4264 --- /dev/null +++ b/resources/_gen/images/trekkie_hu0d2812be174b24cf83de3b10da853073_1348_80x15_resize_q90_h2_box_1.webp |