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'
url: '/about'
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:
- name: 'Blog Feed'
url: '/blog/index.xml'

View file

@ -3,9 +3,17 @@
<hr>
{{ if .Params.animation }}
<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 }}
<table>
<tr>

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>
<h3>Featured</h3>
{{ partial "featured-art" . }}
{{ partial "art-years" . }}
<div class="art-button-container">

View file

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

View file

@ -22,7 +22,7 @@
{{ end }}
{{ 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 }}
<p>Thumbnail not found!</p>
{{ end }}

View file

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