Adding some content, formatting some theme files

This commit is contained in:
2025-01-16 23:41:08 -05:00
parent dc8a2d26e5
commit 2716cc5d1a
13 changed files with 129 additions and 71 deletions

View File

@@ -1,3 +1,3 @@
# halloween.dajeffers.com
Assets for creating the site at halloween.dajeffers.com
Assets for creating the site at halloween.dajeffers.com

View File

@@ -4,11 +4,6 @@ title = 'Halloween at the Jeffers'
theme = 'halloween'
[menu]
[[menu.main]]
name = "Home"
pre = "fa-solid fa-house"
url = "/"
weight = 1
[[menu.main]]
name = "Displays"
pre = "fa-solid fa-book-skull"

View File

@@ -5,6 +5,4 @@ draft: true
tags: ["scarecrow", "pumpkins"]
---
Test
https://www.youtube.com/watch?v=1HFk4jqojxo
{{< youtube 1HFk4jqojxo >}}

View File

@@ -5,6 +5,4 @@ draft: true
tags: ["circus", "clowns"]
---
Test
https://www.youtube.com/watch?v=YkHS6GdDe1E
{{< youtube YkHS6GdDe1E >}}

View File

@@ -5,6 +5,4 @@ draft: true
tags: ["pirates", "skeletons"]
---
Test
https://www.youtube.com/watch?v=Jg0OLqWw9zc
{{< youtube Jg0OLqWw9zc >}}

View File

@@ -0,0 +1,48 @@
---
title: "2024 Goosebumps Alive"
date: 2024-10-31T11:59:32-04:00
draft: true
tags: ["goosebumps", "skeletons", "slappy"]
---
## The display
{{< youtube HKWBYlws1qM >}}
## Planning, inspiration
Lorem ipsum
## Shopping list/materials
{{< table "table is-bordered is-striped is-hoverable" >}}
| Item | Source | Date Acquired | Price |
| ----------- | ----------- | ------------- | ----- |
| Header | Title | | |
| Paragraph | Text | | |
| Total | | | $ |
{{< /table >}}
## Preparation/construction
Some more stuff
## post mortem/what we didn't have time for
- We ran out of candy _and_ books! We started with 30 books and 144 full candy bars,
and as we were running out we got a donation from a kid's mom for another 25+,
then made a quick drive to the grocery store purchased 66(?) more later. Had a dozen
left over at the end of the night.
- Slappy did not have a voice due to bluetooth speaker connectivity problems, despite
it working earlier that day. Did not get strong wifi for SSH, so troubleshooting was
laggy. A simple reboot fixed it later that night.
Wind knocked over a book and made it hard to keep the book in Skelly's hands
Kids touched things they shouldn't have, laser, slappy, walked anywhere not blocked by rope
Filled fog reservoir, and with timer at full tilt we emptied it after a couple hours or so
YouTube videos of music will have ads

View File

@@ -1,36 +1,37 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<section class="section">
<div class="container">
{{- block "main" . }}{{- end }}
</div>
</section>
{{- partial "footer.html" . -}}
</body>
<script>
document.addEventListener('DOMContentLoaded', () => {
// Get all "navbar-burger" elements
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
// Add a click event on each of them
$navbarBurgers.forEach( el => {
el.addEventListener('click', () => {
// Get the target from the "data-target" attribute
const target = el.dataset.target;
const $target = document.getElementById(target);
// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
<html class="theme-dark" lang="en">
{{ partial "head.html" . -}}
<body>
{{ partial "header.html" . }}
<section class="section">
<div class="container">
{{ block "main" . }}
{{ end }}
</div>
</section>
{{ partial "footer.html" . }}
<script>
document.addEventListener('DOMContentLoaded', () => {
// Get all "navbar-burger" elements
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
// Add a click event on each of them
$navbarBurgers.forEach( el => {
el.addEventListener('click', () => {
// Get the target from the "data-target" attribute
const target = el.dataset.target;
const $target = document.getElementById(target);
// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
});
});
</script>
</html>
</script>
</body>
</html>

View File

@@ -1,6 +1,18 @@
{{ define "main" }}
<h1 class="title">{{ .Title }}</h1>
{{ partial "metadata.html" . }}
<br><br>
<div class="content">
<div class="columns">
<div class="column is-one-third">
<div class="card">
<div class="card-content">
<div class="content">
{{ .TableOfContents }}
</div>
</div>
</div>
</div>
</div>
{{ .Content }}
</div>
{{ partial "metadata.html" . }}
{{ end }}

View File

@@ -1,8 +1,8 @@
<footer class="footer">
<div class="content has-text-centered">
<p>
This site is licensed
<a href="https://www.creativecommons.org/licenses/by-nc-nd/4.0/">CC BY-NC-ND 4.0</a>.
</p>
</div>
</footer>
<footer class="footer">
<div class="content has-text-centered">
<p>
This site is licensed
<a href="https://www.creativecommons.org/licenses/by-nc-nd/4.0/">CC BY-NC-ND 4.0</a>.
</p>
</div>
</footer>

View File

@@ -4,6 +4,6 @@
{{ $title := print .Site.Title " | " .Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
<title>{{ $title }}</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@1.0.2/css/bulma.min.css">
<script src="https://kit.fontawesome.com/1449a8617b.js" crossorigin="anonymous"></script>
</head>

View File

@@ -1,6 +1,6 @@
<nav class="navbar" role="navigation" aria-label="main navigation">
<nav class="navbar" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="https://bulma.io">
<a class="navbar-item" href="/">
<i class="fa-solid fa-ghost"></i>
</a>
@@ -23,7 +23,6 @@
{{ $text }}
</a>
{{ end }}
</div>
</div>
</div>
</nav>

View File

@@ -1,11 +1,14 @@
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
<i class="fa-regular fa-calendar"></i>
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
{{ with .Params.tags }}
<i class="fa-solid fa-tags"></i>
{{ range . }}
{{ $href := print (absURL "tags/") (urlize .) }}
<a class="tag is-small" href="{{ $href }}">{{ . }}</a>
{{ end }}
{{ end }}
<br>
<p>
<i class="fa-regular fa-calendar"></i>
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
{{ with .Params.tags }}
<i class="fa-solid fa-tags"></i>
{{ range . }}
{{ $href := print (absURL "tags/") (urlize .) }}
<a class="tag is-small" href="{{ $href }}">{{ . }}</a>
{{ end }}
{{ end }}
</p>

View File

@@ -0,0 +1,6 @@
{{ $htmlTable := .Inner | markdownify }}
{{ $class := .Get 0 | default "" }}
{{ $old := "<table>" }}
{{ $new := printf "<table class=\"%s\">" $class }}
{{ $htmlTable := replace $htmlTable $old $new }}
{{ $htmlTable | safeHTML }}