RNS Logo

rns.recipes

◈ 9ce92808be498e9e05590ff27cbfdfe4
Service restored

Nemos—A static site generator for nomad net with memos support :3

Started by Ashter64 1823727f54131695... ·

Ashter64 f97d0d943c42d37a...
edited #1

HAIIII, I made a little static site generator that gets its posts from a memos server so I thought I would share that on here cause why not. It's made in python and quite simple to use with a basic templates system and a markdown to micron converter that is fully customisable with the config.json. Here is the github link is https://github.com/Finbear2/Nemos and I also made a blog post on my nomad site with this at the address c9e4c3bfc5fcf217d99b334052d2dabd. I hope this helps somebody :P

Mark 8dd57a7382268096...
#2

Nice :) And cool site you made with it!

 

In case you didn't know, there's also this build into RNS, which you can use if you want instead of markdownit:

 

from RNS.Utilities.rngit.util import MarkdownToMicron
mdc = MarkdownToMicron()
md = "# Hello World"
mu = mdc.format_block(md)

 

It also supports syntax highlighting for code blocks with pygments:

 

from RNS.Utilities.rngit.highlight import SyntaxHighlighter
mdc = MarkdownToMicron(syntax_highlighter=SyntaxHighlighter)

 

Or custom URL scopes for local links with the url_scope.

Mark 8dd57a7382268096...
#3

Oh, and another tip; you can make the background color full page with the #!bg= header.

Ashter64 f97d0d943c42d37a...
#4

OMG THANK U SO MUCH UHM YEAH THAT WOULDVE MADE EVERYTHING MUCH SIMPLER AND BETTER BUT LIKE... maybe the real project and the real static site generator is the friends we made along the way :3

Mark 8dd57a7382268096...
#5

Never hurts writing a markdown converter or two, for some it's part of the fun ;) Just wanted to make you aware if you hadn't seen it, before you got to implementing tables, emoji render width calculations and stuff like that ;)

Post a Reply

Supports Markdown: **bold**, *italic*, `code`, ```code blocks```, [links](url)

Log in to upload images

Quote
Copied to clipboard