feat: modernize static site generator stack
- Node.js: Upgraded from v16 to v22 (latest LTS) - SASS: Replaced deprecated node-sass with Dart Sass (sass package) - Metalsmith plugins: Migrated to modern scoped packages: - @metalsmith/markdown (v1.10) replacing metalsmith-markdownit - @metalsmith/in-place (v5) replacing metalsmith-in-place v1 - @metalsmith/layouts (v3) replacing metalsmith-layouts v1 - @metalsmith/collections (v2) replacing metalsmith-collections v0 - Added metalsmith-define for site metadata - Added gray-matter for YAML front matter extraction - Markdown rendering: Updated to marked v18 for GFM support - Express: Kept at v4.x (stable, compatible) - Handlebars: Updated to v4.7 (latest) - Custom plugins: Created local permalinks and handlebars-html plugins - Custom permalinks plugin replaces metalsmith-permalinks (broken substitute dep) - Custom handlebars jstransformer wrapper supports .html extension - Feed generation: Custom RSS plugin (replaces deprecated metalsmith-feed) - filterRoutes: Updated regex patterns for Express compatibility - Template changes: Removed deprecated markdown="1" from partials - Docker: Updated Dockerfile to use Node 22 Alpine - Collection patterns: Updated to support both .md and .markdown extensions - Pipeline: Reordered for correct metadata flow (front matter → markdown → layouts → permalinks)
This commit is contained in:
1 parent
35e9dfe24b
commit
7a5c031b1d
9 files changed
+855
-231
No files matched your search
@@ -1,4 +1,4 @@
|
||||
<figure class="center {{ class }}" markdown="1">
|
||||
<figure class="center {{ class }}">
|
||||
<a href="{{ url}}" target="_blank">
|
||||
<img src="{{url}}" alt="{{ alt }}">
|
||||
</a>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<figure class="center" markdown="1">
|
||||
<figure class="center">
|
||||
|
||||
[](https://twitter.com/user/status/{{id}})
|
||||
<a href="https://tweet.cluster.fun/{{id}}">[](https://twitter.com/user/status/{{id}})</a>
|
||||
|
||||
<figcaption>{{caption}}</figcaption>
|
||||
</figure>
|
||||
Reference in new issue
Block a user