Fix retro theme

This commit is contained in:
Joshua Goins 2023-04-13 20:30:36 -04:00
parent 3cce7538fe
commit 62d42215c9
7 changed files with 31 additions and 14 deletions

View file

@ -78,6 +78,25 @@ menu:
- name: 'About' - name: 'About'
url: '/about' url: '/about'
weight: 9 weight: 9
retromain:
- name: 'Home'
url: '/'
weight: -1
- name: 'Blog'
url: '/blog'
weight: 1
- name: 'Art'
url: '/art'
weight: 2
- name: 'Software'
url: '/software'
weight: 4
- name: 'Downloads'
url: '/downloads'
weight: 6
- name: 'About'
url: '/about'
weight: 9
footer: footer:
- name: 'Blog Feed' - name: 'Blog Feed'
url: '/blog/index.xml' url: '/blog/index.xml'

View file

@ -3,8 +3,16 @@
<hr> <hr>
{{ with (resources.Get .Params.filename).Resize "400x bmp" }} {{ if .Params.animation }}
<img class="article-img" style="display: block; max-height: 1000px; margin-left: auto; margin-right: auto;" alt="{{ $.Params.alt_text }}" title="{{ $.Params.alt_text }}" src="{{ .RelPermalink }}"/> <p>Sorry, animations are not supported.</p>
{{ else }}
{{ if .Params.threed }}
<p>Sorry, 3D models are not supported.</p>
{{ else }}
{{ with (resources.Get .Params.filename).Resize "400x bmp" }}
<img class="article-img" style="display: block; max-height: 1000px; margin-left: auto; margin-right: auto;" alt="{{ $.Params.alt_text }}" title="{{ $.Params.alt_text }}" src="{{ .RelPermalink }}"/>
{{ end }}
{{ end }}
{{ end }} {{ end }}
<table> <table>

View file

@ -18,9 +18,6 @@
<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 if you like RSS feeds I have an <a href="/art/index.xml">art-only feed</a>!</p>
<h3>Featured</h3>
{{ partial "featured-art" . }}
{{ partial "art-years" . }} {{ partial "art-years" . }}
<div class="art-button-container"> <div class="art-button-container">

View file

@ -6,9 +6,6 @@
<div id="content"> <div id="content">
<aside>{{- partial "sidebar.html" . -}}</aside> <aside>{{- partial "sidebar.html" . -}}</aside>
<article> <article>
<div class="breadcrumbs">
{{ partial "breadcrumbs.html" . }}
</div>
{{- block "main" . }}{{- end }} {{- block "main" . }}{{- end }}
</article> </article>
</div> </div>

View file

@ -1,5 +1 @@
{{ $avatar := resources.Get .Site.Params.profile_picture }}
{{ with $avatar }}
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}"/>
{{ end }}
<h1>{{ .Site.Title }}</h1> <h1>{{ .Site.Title }}</h1>

View file

@ -22,7 +22,7 @@
{{ end }} {{ end }}
{{ with $image }} {{ with $image }}
<img class="grid-item" width="{{ .Width }}" height="{{ .Height }}" alt="{{ $title }}" title="{{ $title }}" src="{{ .Permalink }}"/> <img width="{{ .Width }}" height="{{ .Height }}" alt="{{ $title }}" title="{{ $title }}" src="{{ .Permalink }}"/>
{{ else }} {{ else }}
<p>Thumbnail not found!</p> <p>Thumbnail not found!</p>
{{ end }} {{ end }}

View file

@ -1,5 +1,5 @@
<nav> <nav>
{{ range .Site.Menus.main }} {{ range .Site.Menus.retromain }}
<div class="site-menu"> <div class="site-menu">
<a href="{{ .URL }}">{{ .Name }}</a> <a href="{{ .URL }}">{{ .Name }}</a>
</div> </div>