diff --git a/assets/pics/pic-blog.webp b/assets/pics/pic-blog.webp new file mode 100644 index 0000000..c56ebbe Binary files /dev/null and b/assets/pics/pic-blog.webp differ diff --git a/assets/pics/pic-downloads.png b/assets/pics/pic-downloads.png new file mode 100644 index 0000000..e9576fb Binary files /dev/null and b/assets/pics/pic-downloads.png differ diff --git a/assets/pics/pic-gallery.png b/assets/pics/pic-gallery.png new file mode 100644 index 0000000..c4ebfbc Binary files /dev/null and b/assets/pics/pic-gallery.png differ diff --git a/assets/pics/pic-guestbook.webp b/assets/pics/pic-guestbook.webp new file mode 100644 index 0000000..716aab9 Binary files /dev/null and b/assets/pics/pic-guestbook.webp differ diff --git a/assets/pics/pic-home.webp b/assets/pics/pic-home.webp new file mode 100644 index 0000000..6c879bf Binary files /dev/null and b/assets/pics/pic-home.webp differ diff --git a/assets/pics/pic-links.webp b/assets/pics/pic-links.webp new file mode 100644 index 0000000..9168100 Binary files /dev/null and b/assets/pics/pic-links.webp differ diff --git a/assets/pics/pic-software.webp b/assets/pics/pic-software.webp new file mode 100644 index 0000000..c5df7fe Binary files /dev/null and b/assets/pics/pic-software.webp differ diff --git a/content/_index.md b/content/_index.md index 557b274..ead4ac6 100644 --- a/content/_index.md +++ b/content/_index.md @@ -2,6 +2,8 @@ title: "Home" --- +{{< insert-pic "pic-home.webp" "Home" >}} + Welcome to my personal corner of the Internet! My username is **redstrate** and I'm a software engineer, KDE developer and artist. I like Linux, retro crud and curating my site. My website is also my portfolio, blog and dumping ground for cool stuff I'm working on or find. * Want to read? Check out my [blog posts]({{< ref "blog" >}}). diff --git a/content/blog/_index.md b/content/blog/_index.md index fc60c5b..abc350b 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -5,6 +5,8 @@ aliases: - /notes --- +{{< insert-pic "pic-blog.webp" "Blog" >}} + Posts of [Linux](/blog/tags/linux/), [KDE](/blog/tags/kde), personal thoughts and [reviews](/blog/tags/review/). -_Warning_: most of it is mindlessly technical. \ No newline at end of file +_Warning_: most of it is mindlessly technical. diff --git a/content/downloads/index.md b/content/downloads/index.md index 03a3559..06cc6cb 100644 --- a/content/downloads/index.md +++ b/content/downloads/index.md @@ -2,6 +2,8 @@ title: "Downloads" --- +{{< insert-pic "pic-downloads.png" "Downloads" >}} + I host downloads for things that I either want to archive, or worried we might lose. {{< toc >}} diff --git a/content/guestbook.md b/content/guestbook.md index bde9637..e341681 100644 --- a/content/guestbook.md +++ b/content/guestbook.md @@ -2,6 +2,8 @@ title: "Guestbook" --- +{{< insert-pic "pic-guestbook.webp" "Guestbook" >}} + I have a new guestbook hosted using the new self-hosted comments sysstem! At the moment, [old guestbook entries](/legacy-guestbook) are not migrated yet. {{< guestbook >}} diff --git a/content/links.md b/content/links.md index c6fda16..e72120a 100644 --- a/content/links.md +++ b/content/links.md @@ -2,6 +2,8 @@ title: "Links" --- +{{< insert-pic "pic-links.webp" >}} + If you want to link back to my website, you can use one of the two banners below. You have an option depending on your website's color scheme :-) Please host the image on your own server if you can! diff --git a/content/software/_index.md b/content/software/_index.md index 78aa1cc..de3793e 100644 --- a/content/software/_index.md +++ b/content/software/_index.md @@ -4,4 +4,3 @@ aliases: - /projects layout: "software" --- - diff --git a/themes/red/layouts/_default/art.html b/themes/red/layouts/_default/art.html index fc34cff..0488479 100644 --- a/themes/red/layouts/_default/art.html +++ b/themes/red/layouts/_default/art.html @@ -3,6 +3,10 @@
+ {{ with resources.Get "pics/pic-gallery.png" }} + + {{ end }} + {{ $paginator := .Paginate (where .RegularPagesRecursive "Type" "art") }} {{ if eq $paginator.PageNumber 1}} diff --git a/themes/red/layouts/_default/software.html b/themes/red/layouts/_default/software.html index 2cc8859..9b27355 100644 --- a/themes/red/layouts/_default/software.html +++ b/themes/red/layouts/_default/software.html @@ -1,10 +1,13 @@ {{ define "main" }}

{{ .Title }}

-
{{ .Content }} + {{ with resources.Get "pics/pic-software.webp" }} + + {{ end }} +

Personal Projects

These are projects I made for my own use, but they're all freely licensed!

diff --git a/themes/red/layouts/shortcodes/insert-pic.html b/themes/red/layouts/shortcodes/insert-pic.html new file mode 100644 index 0000000..927793c --- /dev/null +++ b/themes/red/layouts/shortcodes/insert-pic.html @@ -0,0 +1,8 @@ +{{ $name := .Get 0 }} +{{ $alt := .Get 1 }} + +{{ $path := printf "pics/%s" $name}} + +{{ with resources.Get $path }} +{{ $alt }} +{{ end }}