Skip to content

Commit 002d50e

Browse files
committed
Clean up project: remove unused files, add numbered list support, update docs, simplify CSS
1 parent 9149f7c commit 002d50e

6 files changed

Lines changed: 35 additions & 36 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ node_modules/
1010
.vscode/
1111
.idea/
1212

13+
# Generated files
1314
*.html
14-
node_modules/

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,25 @@
1-
# reading / watch / listen lists 202x
1+
# strangesongs site
2+
3+
Personal tracking site for films, books, and live performances.
4+
5+
## Development
6+
7+
```bash
8+
# Install dependencies
9+
npm install
10+
11+
# Build site from markdown
12+
npm run build
13+
14+
# Serve locally
15+
npm run serve
16+
# Then visit http://localhost:8080
17+
```
18+
19+
## Structure
20+
21+
- `content/` - Markdown files for each year (books, films, shows)
22+
- `templates/` - EJS templates for HTML generation
23+
- `build.js` - Static site generator
24+
- `style.css` - All styling
25+
- `script.js` - Navigation and interactivity

build.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ function processMarkdown(content) {
66
// Remove frontmatter
77
content = content.replace(/^---[\s\S]*?---\n/, '');
88

9-
// Convert markdown-style lists to HTML first
9+
// Convert markdown-style lists to HTML
1010
content = content.replace(/^- (.+)$/gm, '<li>$1</li>');
11+
content = content.replace(/^\d+\.\s+(.+)$/gm, '<li>$1</li>');
1112

12-
// Wrap consecutive list items in ul tags
13-
content = content.replace(/(<li>.*<\/li>\s*)+/gs, '<ul>$&</ul>');
13+
// Wrap consecutive list items in ol/ul tags
14+
content = content.replace(/(<li>.*<\/li>\s*)+/gs, '<ol>$&</ol>');
1415

1516
// Convert headers
1617
content = content.replace(/^### (.+)$/gm, '<h3>$1</h3>');
@@ -25,7 +26,7 @@ function processMarkdown(content) {
2526
return line;
2627
}
2728
// Wrap format description lines and note lines in paragraphs
28-
if (line.startsWith('date ') || line.startsWith('* denotes') || line.startsWith('TITLE')) {
29+
if (line.startsWith('date ') || line.startsWith('* denotes') || line.startsWith('TITLE') || line.startsWith('total:')) {
2930
return `<p>${line}</p>`;
3031
}
3132
return line;

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
2-
"name": "list2024",
2+
"name": "strangesongs-site",
33
"version": "1.0.0",
4-
"description": "Watch read listen lists",
4+
"description": "Personal tracking site for films, books, and live performances",
55
"main": "build.js",
66
"scripts": {
7-
"build": "node build.js"
7+
"build": "node build.js",
8+
"serve": "python3 -m http.server 8080"
89
},
910
"dependencies": {
1011
"ejs": "^3.1.9"

style.css

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -177,18 +177,6 @@ footer a:hover {
177177
text-decoration: underline;
178178
}
179179

180-
/* Remove container/row styling from Skeleton */
181-
.container, .row {
182-
margin: 0;
183-
padding: 0;
184-
width: 100%;
185-
}
186-
187-
.twelve.columns {
188-
margin: 0;
189-
width: 100%;
190-
}
191-
192180
/* Mobile responsive */
193181
@media (max-width: 768px) {
194182
.layout {

templates/year.html

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)