3 ms·
I don't have anything relevant to say about your language (it's neat!), rather I'm super curious about your fantastically cool blog software. It looks like you'
by echelon 5y ago
I don't have anything relevant to say about your language (it's neat!), rather I'm super curious about your fantastically cool blog software. It looks like you're importing comments from hacker news directly.
1. It looks like
2. the comments
3. support markdown
1. Whoa.
> Do you have quotes?
```rust
fn foo() -> &'static str {
"bar"
}
```
# Headings
Maybe?
A link to [my website](https://fakeyou.com https://fakeyou.com)
And maybe even an image

(Sorry, I just have to test this out. Your website is awesome.)
- echelon 5y agoWhoa, that showed up right away! Really cool integration. And of course this is how you do code fences.
- brundolf 5y agoHey thanks! :D It’s almost all custom (you can see the source on my GitHub https://github.com/brundonsmith/website https://github.com/brundonsmith/website) Most of the site is statically generated at startup using regular JS template strings, and then served as static files (cached in-memory) by Express. Posts are written in Markdown, and code blocks are processed into language-highlighted HTML using Prism. The only dynamic bit is the HN comments, since I want those to stay fresh. My Node server queries the Algolia HN API to get all comments for the top HN link for the post (since there could be more than one), munges the data a bit, renders it as HTML, and then caches it for one minute. Some client-side JS just hits the endpoint and dumps the HTML into the page. Any rich rendering inside comment bodies, like for code blocks and italics, actually comes directly from HN itself! The content I get has already been processed from HN’s special markup syntax into HTML, though of course the structural content around the comment bodies is custom. Basically what I’ve found is that people often ask good questions under my posts, and the discussion/my responses end up being a valuable part of the post itself (clarification, expansion, etc), so I wanted that extra context to be available for people who don’t find my posts via HN. That’s also why I highlight my own comments in that view; I see them as a part of the blog post. This site is my relaxing project that I tinker with occasionally, so sometimes I over-engineer parts of it a little bit for fun :)