blazed-past-us 0.8.4 → 0.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 gass-git
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 gass-git
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,78 +1,78 @@
1
- ![banner](blazed-logo.png)
2
-
3
- > 🚧 **Work in progress** This framework is still under active development. Expect changes.
4
-
5
- > [![Downloads](https://img.shields.io/npm/dm/blazed-past-us.svg?style=flat-square)](https://www.npmjs.com/package/blazed-past-us)
6
- > [![version](https://img.shields.io/npm/v/blazed-past-us.svg?style=flat-square)](https://www.npmjs.com/package/blazed-past-us)
7
- > [![MIT License](https://img.shields.io/npm/l/blazed-past-us.svg?style=flat-square)](https://github.com/gass-git/blazed-past-us/blob/main/LICENSE)
8
-
9
- Developer centric static blog framework. Write in Markdown from your IDE, share code and SVGs effortlessly, and ship server-rendered HTML for blazing⚡fast load times.
10
-
11
- [Live demo](https://gass-git.github.io/blazed-past-us/)
12
-
13
- ## Commit 0
14
-
15
- **Silver Surfer asked:**
16
- _"How fast can a dev blog go?"_
17
-
18
- **Gass Git, intrigued, answered:**
19
- _"I don't know… shall we see?"_
20
-
21
- **Silver Surfer looked dubious and curious:**
22
- _"Very well… let the cosmos bear witness."_
23
-
24
- ## About the framework
25
-
26
- - Designed for static hosting environments (e.g. GitHub Pages) — no server-side rewrites required.
27
- - Uses hash routing.
28
- - Fetches static JSON.
29
- - Fetches HTML fragments.
30
- - Avoids history API clean URLs.
31
- - Doesn’t rely on server fallback.
32
-
33
- ## How to write posts ?
34
-
35
- - The post file name will be the title.
36
- - There is no need to add the title within the .md file, this will be set by the meta data.
37
- - Post tags are written in every post on the very top as `tag1, tag2,...`
38
- - The descriptions of the posts will be a brief showcase of the first paragraph (below the tags).
39
- - Add svg images by dropping the svg file within the directory `src/assets/svgs/` and using the following Markdown native syntax `![whatever](filename.svg)`
40
-
41
- ## Useful notes
42
-
43
- - The HTML layout can be modified in `src/layout.js`
44
- - Append `/#/?tags=` to the base URL to filter home page posts by tag.
45
- - Posts creation dates are persisted.
46
- - The creation date is not updated when editing a post.
47
- - The posts titles are used as the identifiers (slugs).
48
-
49
- ## Installation
50
-
51
- ### Set up scaffold:
52
-
53
- ```sh
54
- npx blazed-past-us
55
- ```
56
-
57
- ### Install dependencies:
58
-
59
- ```sh
60
- npm i
61
- ```
62
-
63
- ### Run locally:
64
-
65
- ```
66
- npm run dev
67
- ```
68
-
69
- ### For final build:
70
-
71
- ```
72
- npm run build
73
- ```
74
-
75
- ## Links of interest
76
-
77
- - [How to configure and deploy to Github pages](https://gass-git.github.io/blazed-past-us/#/configuration-and-deployment-to-github-pages)
78
- - [Inspiration and architecture](https://gass-git.github.io/blazed-past-us/#/the-inspiration-and-architecture)
1
+ ![banner](blazed-logo.png)
2
+
3
+ > 🚧 **Work in progress** This framework is still under active development. Expect changes.
4
+
5
+ [![Downloads](https://img.shields.io/npm/dm/blazed-past-us.svg?style=flat-square)](https://www.npmjs.com/package/blazed-past-us)
6
+ [![version](https://img.shields.io/npm/v/blazed-past-us.svg?style=flat-square)](https://www.npmjs.com/package/blazed-past-us)
7
+ [![MIT License](https://img.shields.io/npm/l/blazed-past-us.svg?style=flat-square)](https://github.com/gass-git/blazed-past-us/blob/main/LICENSE)
8
+
9
+ Developer centric static blog framework. Write in Markdown from your IDE, share code and SVGs effortlessly, and ship server-rendered HTML for blazing⚡fast load times.
10
+
11
+ [Live demo](https://gass-git.github.io/blazed-past-us/)
12
+
13
+ ## Commit 0
14
+
15
+ **Silver Surfer asked:**
16
+ _"How fast can a dev blog go?"_
17
+
18
+ **Gass Git, intrigued, answered:**
19
+ _"I don't know… shall we see?"_
20
+
21
+ **Silver Surfer looked dubious and curious:**
22
+ _"Very well… let the cosmos bear witness."_
23
+
24
+ ## About the framework
25
+
26
+ - Designed for static hosting environments (e.g. GitHub Pages) — no server-side rewrites required.
27
+ - Uses hash routing.
28
+ - Fetches static JSON.
29
+ - Fetches HTML fragments.
30
+ - Avoids history API clean URLs.
31
+ - Doesn’t rely on server fallback.
32
+
33
+ ## How to write posts ?
34
+
35
+ - The post file name will be the title.
36
+ - There is no need to add the title within the .md file, this will be set by the meta data.
37
+ - Post tags are written in every post on the very top as `tag1, tag2,...`
38
+ - The descriptions of the posts will be a brief showcase of the first paragraph (below the tags).
39
+ - Add svg images by dropping the svg file within the directory `src/assets/svgs/` and using the following Markdown native syntax `![whatever](filename.svg)`
40
+
41
+ ## Useful notes
42
+
43
+ - The HTML layout can be modified in `src/layout.js`
44
+ - Append `/#/?tags=` to the base URL to filter home page posts by tag.
45
+ - Posts creation dates are persisted.
46
+ - The creation date is not updated when editing a post.
47
+ - The posts titles are used as the identifiers (slugs).
48
+
49
+ ## Installation
50
+
51
+ ### Set up scaffold:
52
+
53
+ ```sh
54
+ npx blazed-past-us
55
+ ```
56
+
57
+ ### Install dependencies:
58
+
59
+ ```sh
60
+ npm i
61
+ ```
62
+
63
+ ### Run locally:
64
+
65
+ ```
66
+ npm run dev
67
+ ```
68
+
69
+ ### For final build:
70
+
71
+ ```
72
+ npm run build
73
+ ```
74
+
75
+ ## Links of interest
76
+
77
+ - [How to configure and deploy to Github pages](https://gass-git.github.io/blazed-past-us/#/configuration-and-deployment-to-github-pages)
78
+ - [Inspiration and architecture](https://gass-git.github.io/blazed-past-us/#/the-inspiration-and-architecture)
@@ -0,0 +1,3 @@
1
+ import { copySync } from "fs-extra/esm";
2
+
3
+ copySync('./src/template', './dist/template');
@@ -46,10 +46,10 @@ function getColoredTagsHTML(tags, config) {
46
46
  .split(',')
47
47
  .map((key) => {
48
48
  const tagColor = config.tags[key]?.color ?? config.tags.default.color;
49
- return `
50
- <span class="tag" style="--tag-color: ${tagColor}">
51
- ${key}
52
- </span>
49
+ return `
50
+ <span class="tag" style="--tag-color: ${tagColor}">
51
+ ${key}
52
+ </span>
53
53
  `;
54
54
  })
55
55
  .join(`<span class="tag-separator">, </span>`);
@@ -1,13 +1,13 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1" />
6
- <link href="./src/styles/main.css" rel="stylesheet" />
7
- <link rel="icon" type="image/svg+xml" href="./src/favicon.svg" />
8
- </head>
9
- <body>
10
- <script type="module" src="./src/main.js"></script>
11
- <script type="module" src="./src/stars.js"></script>
12
- </body>
13
- </html>
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <link href="./src/styles/main.css" rel="stylesheet" />
7
+ <link rel="icon" type="image/svg+xml" href="./src/favicon.svg" />
8
+ </head>
9
+ <body>
10
+ <script type="module" src="./src/main.js"></script>
11
+ <script type="module" src="./src/stars.js"></script>
12
+ </body>
13
+ </html>