Adding an update log
This commit is contained in:
parent
c7e24da654
commit
64ded17562
5 changed files with 156 additions and 6 deletions
55
assets/sass/pages/log.scss
Normal file
55
assets/sass/pages/log.scss
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
.log-page-container {
|
||||
width: 900px;
|
||||
height: 100vh;
|
||||
margin: auto;
|
||||
|
||||
.log-header {
|
||||
margin: auto;
|
||||
|
||||
pre {
|
||||
text-align: center;
|
||||
background: linear-gradient(to bottom, #00aa00, #eeff00);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.log-content {
|
||||
margin: auto;
|
||||
|
||||
.crt-monitor {
|
||||
margin: auto;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
aspect-ratio: 1.3/1;
|
||||
|
||||
.content.crt {
|
||||
padding: 1.2rem;
|
||||
font-size: 1.2rem;
|
||||
|
||||
p {
|
||||
margin: auto;
|
||||
margin-bottom: 1.2rem;
|
||||
}
|
||||
|
||||
.log-updates {
|
||||
// display as 2 columns, date then content
|
||||
display: grid;
|
||||
grid-template-columns: auto auto 1fr;
|
||||
column-gap: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
line-height: 1.5rem;
|
||||
.log-date {
|
||||
font-weight: bold;
|
||||
text-align: right;
|
||||
}
|
||||
div {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -32,6 +32,7 @@
|
|||
@import "pages/lavalamp-adoptable";
|
||||
@import "pages/guestbook";
|
||||
@import "pages/buttons";
|
||||
@import "pages/log";
|
||||
|
||||
@import url(https://fonts.bunny.net/css?family=abel:400|barlow-condensed:400,500|caveat:400|lato:300,300i,400,400i|neonderthaw:400);
|
||||
|
||||
|
|
|
|||
7
content/log.md
Normal file
7
content/log.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
title: Update Log
|
||||
type: log
|
||||
date: 2024-01-16
|
||||
---
|
||||
|
||||
An update log for my Neocities friends as the website isn't actually hosted there anymore.
|
||||
50
layouts/log/single.html
Normal file
50
layouts/log/single.html
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{{ define "main" }}
|
||||
<div class="log-page-container">
|
||||
<div class="log-header">
|
||||
<pre>
|
||||
|
||||
▄▄▄ ▄▄ ▄▄
|
||||
█▀██ ██ █▄ █▄ ██
|
||||
██ ██ ██ ▄██▄ ██
|
||||
██ ██ ████▄ ▄████ ▄▀▀█▄ ██ ▄█▀█▄ ▄██▀█ ██
|
||||
██ ██ ██ ██ ██ ██ ▄█▀██ ██ ██▄█▀ ▀███▄
|
||||
▀█████▄▄████▀▄█▀███▄▀█▄██▄██▄▀█▄▄▄█▄▄██▀ ██
|
||||
██
|
||||
▀
|
||||
</pre
|
||||
>
|
||||
</div>
|
||||
<div class="log-content">
|
||||
<div class="crt-monitor">
|
||||
<div class="crt-screen">
|
||||
<div class="content crt">
|
||||
<div id="terminal">
|
||||
<p>
|
||||
Here are the latest updates to
|
||||
<a href="https://ritual.sh">ritual.sh</a> for my friends on
|
||||
Neocities as the site is no longer actually hosted there!
|
||||
</p>
|
||||
<p>🟢</p>
|
||||
|
||||
<div class="log-updates">
|
||||
{{ range first 10 (union (where .Site.RegularPages "Type"
|
||||
"updates") (where .Site.RegularPages "Type"
|
||||
"blog")).ByDate.Reverse }}
|
||||
|
||||
<div class="log-date">{{ .Lastmod.Format "Jan 2, 2006" }}</div>
|
||||
<div>❇️</div>
|
||||
<div>
|
||||
{{ if eq .Type "blog" }} New blog post:
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a> {{ else }} {{ .Plain
|
||||
}} {{ end }}
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
@ -35,12 +35,49 @@ fi
|
|||
|
||||
echo -e "${GREEN}✓ Hugo build successful!${NC}"
|
||||
|
||||
# Remove the updates section list page (we only want individual update pages)
|
||||
if [ -d "public/updates" ]; then
|
||||
echo -e "${BLUE}Removing updates section list page...${NC}"
|
||||
rm -rf public/updates
|
||||
echo -e "${GREEN}✓ Updates folder removed!${NC}"
|
||||
# Remove folders that shouldn't be uploaded to Neocities
|
||||
FOLDERS_TO_REMOVE=(
|
||||
"about"
|
||||
"archives"
|
||||
"audio"
|
||||
"blog"
|
||||
"buttons"
|
||||
"gear"
|
||||
"guestbook"
|
||||
"media"
|
||||
"now"
|
||||
"resources"
|
||||
"tags"
|
||||
"test"
|
||||
"updates"
|
||||
"uses"
|
||||
"fonts"
|
||||
"images"
|
||||
)
|
||||
|
||||
echo -e "${BLUE}Removing excluded folders from public...${NC}"
|
||||
for folder in "${FOLDERS_TO_REMOVE[@]}"; do
|
||||
if [ -d "public/$folder" ]; then
|
||||
rm -rf "public/$folder"
|
||||
echo -e " ${GREEN}✓${NC} Removed $folder/"
|
||||
fi
|
||||
done
|
||||
echo -e "${GREEN}✓ Folder cleanup complete!${NC}"
|
||||
|
||||
# Remove specific files that shouldn't be uploaded
|
||||
FILES_TO_REMOVE=(
|
||||
"index.html"
|
||||
"404.html"
|
||||
)
|
||||
|
||||
echo -e "${BLUE}Removing excluded files from public...${NC}"
|
||||
for file in "${FILES_TO_REMOVE[@]}"; do
|
||||
if [ -f "public/$file" ]; then
|
||||
rm -f "public/$file"
|
||||
echo -e " ${GREEN}✓${NC} Removed $file"
|
||||
fi
|
||||
done
|
||||
echo -e "${GREEN}✓ File cleanup complete!${NC}"
|
||||
|
||||
echo ""
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue