Use linked headers in hand-written html

This commit is contained in:
Joshua Goins 2023-08-10 18:46:56 -04:00
parent 3ae253586f
commit ca51fae625
7 changed files with 33 additions and 12 deletions

View file

@ -109,7 +109,9 @@
{{ partial "voting" . }} {{ partial "voting" . }}
{{ with .Content }} {{ with .Content }}
<h3>Commentary</h3> {{ $.Scratch.Set "header-type" "h3" }}
{{ $.Scratch.Set "header-name" "Commentary" }}
{{ partial "fake-heading.html" $ }}
{{ . }} {{ . }}
{{ end }} {{ end }}

View file

@ -15,11 +15,11 @@
<div class="new-banner"><img alt="Alert Icon" width="16" height="16" class="banner-alert-icon" src="{{ $alertimg.RelPermalink }}"><b>Contains risque art, so you should probably not view this on a work computer.</b><img alt="Alert Icon" width="16" height="16" class="banner-alert-icon" src="{{ $alertimg.RelPermalink }}"></div> <div class="new-banner"><img alt="Alert Icon" width="16" height="16" class="banner-alert-icon" src="{{ $alertimg.RelPermalink }}"><b>Contains risque art, so you should probably not view this on a work computer.</b><img alt="Alert Icon" width="16" height="16" class="banner-alert-icon" src="{{ $alertimg.RelPermalink }}"></div>
<p>Welcome to my art gallery! I have saved my art since 2016, and this site contains the most complete archive of my work.</p> <p>Welcome to my art gallery! I have saved most of my art since 2016, and this is the most complete archive of my work online.</p>
<p>If you want to see other cool artists and their websites, see <a href="/links">the links page</a>.</p> <p>The gallery is sorted by date, but there's other sections to check out such as <a href="/art/guest">Guest Art</a>! You can also filter by <a href="/art/tags">tags</a>, or by <a href="/art/characters">characters</a>.</p>
<p>You can follow me on <a href="https://mastodon.art/@redstrate">Mastodon</a>, <a href="https://www.pixiv.net/en/users/58118005" >Pixiv</a>, <a href="https://redstrate.newgrounds.com/">Newgrounds</a>, or if you like RSS feeds I have an <a href="/art/index.xml">art-only feed</a>!</p> <p>You can follow me on <a href="https://mastodon.art/@redstrate">Mastodon</a>, <a href="https://www.pixiv.net/en/users/58118005">Pixiv</a>, <a href="https://redstrate.newgrounds.com/">Newgrounds</a>, or my <a href="/art/index.xml">Art RSS feed</a>!</p>
</div> </div>
{{ with resources.Get "pics/pic-gallery.png" }} {{ with resources.Get "pics/pic-gallery.png" }}
@ -27,9 +27,16 @@
{{ end }} {{ end }}
</div> </div>
<h3>Featured</h3> {{ .Scratch.Set "header-type" "h3" }}
{{ .Scratch.Set "header-name" "Featured" }}
{{ partial "fake-heading.html" . }}
{{ partial "featured-art" . }} {{ partial "featured-art" . }}
{{ .Scratch.Set "header-type" "h3" }}
{{ .Scratch.Set "header-name" "Years" }}
{{ partial "fake-heading.html" . }}
{{ partial "art-years" . }} {{ partial "art-years" . }}
<div class="art-button-container"> <div class="art-button-container">

View file

@ -9,10 +9,15 @@
{{ $newgrounds_icon := resources.Get "newgrounds.webp" }} {{ $newgrounds_icon := resources.Get "newgrounds.webp" }}
{{ range $art.categories }} {{ range $art.categories }}
<h3>{{ .name }}</h3> {{ $.Scratch.Set "header-type" "h3" }}
{{ $.Scratch.Set "header-name" .name }}
{{ partial "fake-heading.html" $ }}
<p>{{ .description }}</p> <p>{{ .description }}</p>
{{ range sort .years "year" "desc" }} {{ range sort .years "year" "desc" }}
<h4>{{ .year }}</h4> {{ $.Scratch.Set "header-type" "h4" }}
{{ $.Scratch.Set "header-name" .year}}
{{ partial "fake-heading.html" $ }}
<div class="gallery"> <div class="gallery">
{{ range .pieces }} {{ range .pieces }}

View file

@ -8,7 +8,9 @@
{{ .Content }} {{ .Content }}
<h3>Personal Projects</h3> {{ .Scratch.Set "header-type" "h3" }}
{{ .Scratch.Set "header-name" "Personal Projects" }}
{{ partial "fake-heading.html" . }}
<p>I really like to start projects in my free time (maybe too often). Here's an almost-comprehensive list of them, most of them are freely licensed as well!</p> <p>I really like to start projects in my free time (maybe too often). Here's an almost-comprehensive list of them, most of them are freely licensed as well!</p>
@ -34,7 +36,9 @@
{{ end }} {{ end }}
</div> </div>
<h3>Contributions</h3> {{ .Scratch.Set "header-type" "h3" }}
{{ .Scratch.Set "header-name" "Contributions" }}
{{ partial "fake-heading.html" . }}
<p>I also do plenty of open-source work, here's a list of some of the projects I contributed to!</p> <p>I also do plenty of open-source work, here's a list of some of the projects I contributed to!</p>

View file

@ -1,4 +1,3 @@
<h3>Years</h3>
<div class="generic-con year-con"> <div class="generic-con year-con">
{{ range $.Param "years" }} {{ range $.Param "years" }}
{{ $year := . }} {{ $year := . }}

View file

@ -8,7 +8,9 @@
data-isso-page-author-hashes="96ab157c3aaa" data-isso-page-author-hashes="96ab157c3aaa"
src="//{{ $.Site.Params.isso_url }}/js/embed.min.js" async crossorigin></script> src="//{{ $.Site.Params.isso_url }}/js/embed.min.js" async crossorigin></script>
<section id="isso-thread" data-title="{{ .Title }}" data-isso-id="{{ .File.ContentBaseName }}"> <section id="isso-thread" data-title="{{ .Title }}" data-isso-id="{{ .File.ContentBaseName }}">
<h3>Comments</h3> {{ .Scratch.Set "header-type" "h3" }}
{{ .Scratch.Set "header-name" "Comments" }}
{{ partial "fake-heading.html" . }}
<noscript>Javascript needs to be activated to view comments.</noscript> <noscript>Javascript needs to be activated to view comments.</noscript>
</section> </section>
{{ else }} {{ else }}

View file

@ -1,5 +1,7 @@
{{ with .Site.RegularPages.Related . | first 5 }} {{ with .Site.RegularPages.Related . | first 5 }}
<h3>See Also</h3> {{ $.Scratch.Set "header-type" "h3" }}
{{ $.Scratch.Set "header-name" "See Also" }}
{{ partial "fake-heading.html" $ }}
<ul> <ul>
{{ range . }} {{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>