Skip to content

Static site generator#29

Merged
NickLiffen merged 6 commits intomainfrom
feature/static-site-generator
Dec 22, 2025
Merged

Static site generator#29
NickLiffen merged 6 commits intomainfrom
feature/static-site-generator

Conversation

@NickLiffen
Copy link
Copy Markdown
Owner

CI/CD Workflow Updates:

  • Added a new GitHub Actions workflow (.github/workflows/build.yml) that automates build, validation, and performance checks using Lighthouse, and comments results on pull requests.
  • Removed the CodeQL analysis workflow (.github/workflows/codeql-analysis.yml), discontinuing automated code scanning for security vulnerabilities.

Static Site Cleanup:

  • Deleted the custom 404 error page (404.html).
  • Deleted the article page building-a-simple-website.html (articles/building-a-simple-website.html).

- Add Node.js build system with EJS templates
- Create reusable partials for head, sidebar, footer, skip-link, structured data
- Add article, index, pagination, and 404 page templates
- Create build.js script that generates all HTML files
- Add validate.js for comparing output against existing files
- Add new-article.js CLI for creating new articles quickly
- Convert all 8 existing articles to Markdown with YAML frontmatter
- Add GitHub Actions workflow for CI (build, validate, Lighthouse)
- Add netlify.toml for deployment configuration
- Support for draft articles (hidden in production)
- Support for YouTube embeds with proper CSP

New workflow: Create .md file → npm run build → deploy
Estimated time savings: 6 hours → 30 minutes
- Use full month names consistently (e.g., '4th January 2023')
- Use standard ISO dates for sitemap and RSS
- Simplify validation to check correctness, not byte-for-byte match
- Remove unused 'diff' dependency
- Consistent nickliffen.dev domain everywhere
- og:title uses full title (matches <title> tag - SEO best practice)
- Use absolute paths for images (/img/ instead of ../img/)
- Fix service worker to handle navigation redirects properly
- Bump service worker version to 7
- Fix domain consistency: Change all nickliffen.me to nickliffen.dev
  - 404.ejs og:image
  - review-ghas-code-scanning-enterprise.md image
  - humans.txt site URL

- Fix title consistency: 'Nick Liffen Blog' -> 'Nick Liffen's Blog'
  - review-ghas-code-scanning-enterprise.md title and description

- Fix image extension: innersourcing.md .jpg -> .png (matches actual file)

- Fix service worker (v8):
  - Add leading / to developer-evolution.html path
  - Add missing articles (why-advanced-security, leadership-principles)
  - Add missing pagination pages (3, 4)

- Fix validate.js: Remove duplicate validate().catch() call

- Fix lighthouserc.js: Change staticDistDir from './' to './dist'
@NickLiffen NickLiffen merged commit f515166 into main Dec 22, 2025
6 checks passed
@NickLiffen NickLiffen deleted the feature/static-site-generator branch December 22, 2025 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant