Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8362335
tfp banner
aadah Mar 20, 2025
9fe6052
css indent
aadah Mar 20, 2025
400b454
nav bar width
aadah Mar 20, 2025
0f2aed9
proxy whitelist
aadah Mar 22, 2025
add697c
force respecting iframe border against scripts
aadah Apr 5, 2025
88e7cc7
add package-lock.json
aadah Aug 19, 2025
e6a7f61
update dockerfile to install make and other build deps
aadah Aug 19, 2025
56f85e0
Reorganize blog templates into dedicated directory
aadah Aug 19, 2025
c0b14ba
Add comprehensive blog editing and publishing system
aadah Aug 19, 2025
a65c01c
Integrate blog editing routes and fix template path
aadah Aug 19, 2025
5c81c56
Fix middleware order for blog editor form handling
aadah Aug 19, 2025
0bbd8c5
Add preview error validation to prevent publishing broken content
aadah Aug 19, 2025
7892f88
Refactor newline logic into reusable helper function
aadah Aug 19, 2025
4f56454
Add blog post template for new drafts
aadah Aug 20, 2025
fc680df
Add new blog post creation interface
aadah Aug 20, 2025
8b78ab6
Add new blog post creation routes
aadah Aug 20, 2025
431da2e
Add draft post rename functionality
aadah Aug 23, 2025
1c4807e
Refactor JavaScript handlers into shared editor.js module
aadah Aug 23, 2025
ce55f2a
remove moot makefile command
aadah Aug 23, 2025
128fcd4
remove "posts"
aadah Aug 23, 2025
666ad3b
Add draft deletion functionality to blog editor
aadah Aug 30, 2025
d2dad13
rework discover floor
aadah Nov 29, 2025
3f20385
more interesting chroma walker + format
aadah Dec 1, 2025
863eaf0
show/hide nav on scroll
aadah Feb 12, 2026
096aa99
Bump picomatch from 2.3.1 to 2.3.2
dependabot[bot] Mar 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Base mongo image.
FROM ubuntu:focal

# Install Node/NPM/NPX.
RUN apt-get update && apt-get install -y curl
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
# Install Node/NPM/NPX and build tools.
RUN apt-get update && apt-get install -y curl build-essential python3 libkrb5-dev
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get install -y nodejs

# Designate mount point for website resources.
Expand Down
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,3 @@ delete:
-f $(WORK_DIR)/docker-compose.yaml \
exec $(SERVICE) \
node cli.js manuscripts/blog/$(POSTID).txt -d

# Used to make writing flow simpler. Not for use on main site.
.PHONY: live-edit
live-edit:
while inotifywait -e modify manuscripts/blog/$(POSTID).txt; do make publish; done
4 changes: 3 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ var misc = require('./routes/misc')
app.set('views', path.join(__dirname, 'views'))
app.set('view engine', 'ejs')

// middleware
app.use(bodyParser.urlencoded({ extended: true }))

// routes
app.use('/', home)
app.use('/blog', blog)
Expand All @@ -25,7 +28,6 @@ app.use('/misc', misc)

// for my puzzle
var puzzle = require('./routes/puzzle')
app.use(bodyParser.urlencoded({ extended: true }))
app.use('/misc/puzzle', puzzle)

// static files
Expand Down
6 changes: 6 additions & 0 deletions grammars/new.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@TITLE: An Idea
@SUBTITLE: Some thoughts.
@AUTHOR: Me
#@IMAGE: https://aadah.me/media/images/fireworks.jpg

Hello, world.
21 changes: 21 additions & 0 deletions grammars/templates/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,25 @@
</script>

<script type="text/javascript" src="/js/aadah.js"></script>

<!-- START -->
<script src="/proxy/https://banner.techforpalestine.org/lib/banner.min.js">
</script>
<script>
TFPBanner.create({
theme: "auto",
fixed: true,
});
</script>
<style>
body, nav {
margin-top: 2.5rem;
}

.tfp__banner {
font-family: "Fira Mono", monospace;
text-transform: uppercase;
}
</style>
<!-- END -->
</head>
Loading