Add page pics

This commit is contained in:
Joshua Goins 2023-04-16 13:10:06 -04:00
parent a86888514d
commit dd302de717
16 changed files with 27 additions and 3 deletions

BIN
assets/pics/pic-blog.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
assets/pics/pic-gallery.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
assets/pics/pic-home.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
assets/pics/pic-links.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -2,6 +2,8 @@
title: "Home" 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. 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" >}}). * Want to read? Check out my [blog posts]({{< ref "blog" >}}).

View file

@ -5,6 +5,8 @@ aliases:
- /notes - /notes
--- ---
{{< insert-pic "pic-blog.webp" "Blog" >}}
Posts of [Linux](/blog/tags/linux/), [KDE](/blog/tags/kde), personal thoughts and [reviews](/blog/tags/review/). Posts of [Linux](/blog/tags/linux/), [KDE](/blog/tags/kde), personal thoughts and [reviews](/blog/tags/review/).
_Warning_: most of it is mindlessly technical. _Warning_: most of it is mindlessly technical.

View file

@ -2,6 +2,8 @@
title: "Downloads" title: "Downloads"
--- ---
{{< insert-pic "pic-downloads.png" "Downloads" >}}
I host downloads for things that I either want to archive, or worried we might lose. I host downloads for things that I either want to archive, or worried we might lose.
{{< toc >}} {{< toc >}}

View file

@ -2,6 +2,8 @@
title: "Guestbook" 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. 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 >}} {{< guestbook >}}

View file

@ -2,6 +2,8 @@
title: "Links" title: "Links"
--- ---
{{< insert-pic "pic-links.webp" >}}
If you want to link back to my website, you can use one of the two banners 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 below. You have an option depending on your website's color scheme :-) Please
host the image on your own server if you can! host the image on your own server if you can!

View file

@ -4,4 +4,3 @@ aliases:
- /projects - /projects
layout: "software" layout: "software"
--- ---

View file

@ -3,6 +3,10 @@
<hr> <hr>
{{ with resources.Get "pics/pic-gallery.png" }}
<img class="gallery-img" style="width: 200px; height: 200px; float: right" width="{{ .Width }}" height="{{ .Height }}" src="{{ .RelPermalink }}">
{{ end }}
{{ $paginator := .Paginate (where .RegularPagesRecursive "Type" "art") }} {{ $paginator := .Paginate (where .RegularPagesRecursive "Type" "art") }}
{{ if eq $paginator.PageNumber 1}} {{ if eq $paginator.PageNumber 1}}

View file

@ -1,10 +1,13 @@
{{ define "main" }} {{ define "main" }}
<h2>{{ .Title }}</h2> <h2>{{ .Title }}</h2>
<hr> <hr>
{{ .Content }} {{ .Content }}
{{ with resources.Get "pics/pic-software.webp" }}
<img class="gallery-img" style="width: 200px; height: 200px; float: right" width="{{ .Width }}" height="{{ .Height }}" src="{{ .RelPermalink }}">
{{ end }}
<h3>Personal Projects</h3> <h3>Personal Projects</h3>
<p>These are projects I made for my own use, but they're all freely licensed!</p> <p>These are projects I made for my own use, but they're all freely licensed!</p>

View file

@ -0,0 +1,8 @@
{{ $name := .Get 0 }}
{{ $alt := .Get 1 }}
{{ $path := printf "pics/%s" $name}}
{{ with resources.Get $path }}
<img alt="{{ $alt }}" title="{{ $alt }}" class="gallery-img" style="width: 200px; height: 200px; float: right; margin: 10px;" width="{{ .Width }}" height="{{ .Height }}" src="{{ .RelPermalink }}">
{{ end }}