diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 34 | ||||
-rw-r--r-- | layouts/_default/index.html | 22 | ||||
-rw-r--r-- | layouts/_default/single.html | 17 | ||||
-rw-r--r-- | layouts/partials/button-15.html | 13 |
4 files changed, 40 insertions, 46 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 49f65dfd..b626a952 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 f18ba65e..f1c29808 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 4fc39869..191f6515 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 00000000..009ed5cf --- /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 }} |