Update site to use the latest version of our theme. This requires stuffing our local dev into a docker container because the latest hugo breaks the theme.

This commit is contained in:
Anna Rose 2024-07-03 16:00:18 +00:00
parent 749796b735
commit 0277890db3
4 changed files with 5 additions and 54 deletions

View File

@ -6,7 +6,7 @@ DOCKER_TAG := latest
all: serve all: serve
serve: serve:
hugo serve -D --bind 0.0.0.0 -b http://${DEV_IP}:1313/ sudo docker run --rm -it -p 1313:1313 -v ${PWD}:/src/ klakegg/hugo serve -D -b http://${DEV_IP}:1313/
build: build:
sudo docker build --no-cache -t ${DOCKER_IMAGE}:${DOCKER_TAG} . sudo docker build --no-cache -t ${DOCKER_IMAGE}:${DOCKER_TAG} .

View File

@ -2,7 +2,7 @@ baseurl = "https://annabunches.net/"
languageCode = "en-us" languageCode = "en-us"
theme = "hugo_theme_pickles" theme = "hugo_theme_pickles"
Title = "Anna and the Bunches" Title = "Anna and the Bunches"
copyright = "© Anna Wiggins, 2006-2023" copyright = "© Anna Wiggins, 2006-2024"
# Google Analytics API key. # Google Analytics API key.
googleAnalytics = "G-QFK0K7MGCJ" googleAnalytics = "G-QFK0K7MGCJ"
@ -11,6 +11,8 @@ googleAnalytics = "G-QFK0K7MGCJ"
paginate = 10 paginate = 10
custom_css = ["/css/custom.css", "/css/spoiler.css"] custom_css = ["/css/custom.css", "/css/spoiler.css"]
dateFormat = "2006-01-02" dateFormat = "2006-01-02"
hideWordCount = true
hideReadingtime = true
# Disqus shortname # Disqus shortname
# disqus = "" # disqus = ""
# author = "Your Name" # author = "Your Name"

View File

@ -1,51 +0,0 @@
{{ partial "header.html" . }}
{{ $baseurl := .Site.BaseURL | sanitizeurl }}
<article class="p-article">
<header>
<div>
{{ range .Params.tags }}
<a href="{{ $baseurl }}/tags/{{ . | urlize }}" class="c-tag">{{ . }}</a>
{{ end }}
</div>
</header>
{{ with .Params.thumbnail }}
<img src="{{ . }}" alt="thumbnail" class="p-article__thumbnail">
{{ end }}
<section id="js-article" class="p-article__body">
{{ .Content }}
</section>
<footer>
{{ with ($.Param "disqus") }}
<div id="disqus_thread"></div>
<script>
var disqus_shortname = '{{ . }}';
(function() {
var d = document, s = d.createElement('script');
s.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
{{ end }}
<nav class="p-pagination c-pagination">
<div class="c-pagination__ctrl">
<div class="c-pagination__newer">
{{ if .NextInSection }}
<a href="{{ .NextInSection.Permalink }}">Newer</a>
{{ else }}
{{ end }}
</div>
<div class="c-pagination__older">
{{ if .PrevInSection }}
<a href="{{ .PrevInSection.Permalink }}">Older</a>
{{ else }}
{{ end }}
</div>
</div>
</nav>
{{ partial "related.html" . }}
{{ partial "siteinfo.html" . }}
</footer>
</article>
{{ partial "footer.html" . }}

@ -1 +1 @@
Subproject commit e3b33f2711edb23129ea2baf0b1604c2f2978ce0 Subproject commit cefcae57251c2707a07bc5f9c579feeea77b1e6c