Skip to content

Commit 555fd07

Browse files
committed
update blog content to real content
1 parent d51f32f commit 555fd07

File tree

8 files changed

+31
-67
lines changed

8 files changed

+31
-67
lines changed

content/blogs/blog1.md

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

content/blogs/blog2.md

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

content/blogs/headers.md

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

content/blogs/math_test.md

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

content/blogs/new-pages.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title = "New Pages"
3+
url = "new-pages"
4+
published = 2025-06-18T05:00:04+00:00
5+
---
6+
7+
Welcome to the new pages! Not much should have changed from the angular ones with a few exceptions.
8+
9+
Changes from a external perspective
10+
11+
- fix: Reloading on a page with a non-empty path is no longer causes the github default 404
12+
- tweak: Color theme changed to Catppuccin!
13+
- tweak: Altered Page formatting and styles
14+
- tweak: Clients no longer render directly from markdown
15+
- removed: MotD no longer displayed at the bottom of the page; caused issues with page width on mobile when rending math text
16+
- removed: Light/Dark toggle temporally disabled (returns soon)
17+
18+
Internally major changes have been made. The primary issue that drove these changes is the reloading problem. Simply, Github's static serving is not effective for Angular routed single page applications. Further, my previous approach involved fetching and rendering markdown content with KaTeX which caused large scripts to be loaded and executed in addition to the angular binaries. Resolving both of these issues is static content. For my tastes it is a bit too impractical to directly wright an article with HTML, so I avoided that path.
19+
20+
I was aware of tested solutions such as mdBook and Jekyll but was interested in working with a language I enjoy, [Gleam](https://github.com/gleam-lang/gleam). Gleam's [lustre_ssg](https://github.com/lustre-labs/ssg) has been a excellent tool. Offering an excessive amount of customizability while not being cumbersome. It of course has flaws. These are mostly related to the [djot-markdown parser](https://github.com/lpil/jot) being work in progress. However, if you need a feature added, contributions there are welcomed, and from my experience reviewed promptly.
21+
22+
Overall I would say the changeover has been a success and I look forward to tweaking the site.

content/index.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,15 @@
1-
---
2-
title = "The Document"
3-
url = "test_url"
4-
---
5-
# Hello
61

7-
This is static content generated by lustre_ssg.
2+
# Hello & Welcome!
83

9-
To build use `gleam run -m build`.
4+
I go by benevo, benev0, or Ben.
105

11-
To run a dev server use `gleam run`; manual refreshes still required.
6+
Outside of computers I enjoy modular origami, drawing, and boardgames. These pages where setup with both interests in my own professional development and sharing. I may share both technical and non-technical content here.
127

13-
Currently under construction.
148

159
``` =html
16-
<img alt="lucy debug" src="assets/lucydebugfail.svg" height="100px"/>
10+
<img alt="lucy debug" src="assets/lucydebugfail.svg" height="100px" style="float: right;"/>
1711
```
12+
These pages are rendered from markdown with a custom generator built on top of [lustge_ssg](https://github.com/lustre-labs/ssg). To find out more see my inaugural [post](blog/new-pages). These pages where built to replace my Angular based blog pages which did not play nice with github. If you where expecting to see those click [here](https://benev0.github.io/angular-pages/).
1813

19-
## todo
2014

21-
- styling (css)
22-
- math rendering
23-
- import blog content
24-
25-
26-
[see blogs](blogs)
15+
[proceed to blog](blog)

src/blog/render.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,6 @@ pub fn render_links(base: String, sources: List(posts.PostSource)) {
170170
|> list.sort(fn(t1, t2) { cmp_datetime(t1.2, t2.2) })
171171
|> list.map(render_matter(base, _))
172172

173-
[html.h1([], [text("Blogs")]), ..rendered_matters]
173+
[html.h1([], [text("Articles")]), ..rendered_matters]
174174
|> include_styles_and_scripts("assets/", False)
175175
}

src/build.gleam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ fn build() -> Result(_, _) {
4242
"/",
4343
render.render_md_path("./content/index.md", "assets/"),
4444
)
45-
|> ssg.add_static_route("/blogs", render.render_links("blogs", blogs))
46-
|> ssg.add_dynamic_route("/blogs", blog_dict, render.render_md(
45+
|> ssg.add_static_route("/blog", render.render_links("blog", blogs))
46+
|> ssg.add_dynamic_route("/blog", blog_dict, render.render_md(
4747
_,
4848
"../assets/",
4949
))

0 commit comments

Comments
 (0)