discount
Metalsmith
discount | Metalsmith | |
---|---|---|
1 | 8 | |
843 | 7,820 | |
- | 0.0% | |
6.7 | 6.6 | |
about 1 month ago | 22 days ago | |
C | JavaScript | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
discount
-
Ask HN: Share Your Personal Site
I have a blog[0], I write stuff. I don't have a job yet but I blog about my personal life and on technical problems, feelings, and stuff.
I also have a website with other things here and there [5].
The blog itself is literally a git repository, browsable here[1]. Whenever I push, it runs a git hook that executes build commands. The blog is composed of markdown files.
All the blog can be rebuilt by following the instructions and is meant to be as platform-agnostic as possible, meaning you could host it under any webserver under any path, links are relative, etc.
The blog system I use is blogit [2]; originally created by Pedantic software but has been heavily modified by yours truly[4]. Under the hood it's literally a makefile, unix `sed,grep,etc` to make tagging and other static stuff. It uses the markdown parser discount[3] to parse markdown into html. It is fully static and you can deploy it and just put a simple python http server on it. I use lighttpd, because I have some services set up.
[0] https://blog.thetrevor.tech/
[1] https://git-trevcan.duckdns.org/trevcan.github.io.git/
[2] https://pedantic.software/git/blogit
[3] https://github.com/Orc/discount
[4] I have this repo: https://git.trevcan.duckdns.org/blogit.git/ but it's not updated, check out the blog repo, the blogit makefile is there.
[5] https://thetrevor.tech/
Metalsmith
- Why You Should Write Your Own Static Site Generator
-
Top ten popular static site generators (SSG) in 2023
Metalsmith — the best customizable SSG
-
who is self-hosting a static website and what are you using to build it?
I use Metalsmith. Been happy with it. I build my site into a self-contained nginx docker image.
-
Configuration error even if nothing changed since last successful deploy
const Metalsmith = require('metalsmith') const markdown = require('@metalsmith/markdown') const layouts = require('metalsmith-layouts') const permalinks = require('@metalsmith/permalinks') const collections = require('metalsmith-collections') Metalsmith(__dirname) .metadata({ sitename: 'Website Name', description: "Website description.", generator: 'Metalsmith', url: 'https://metalsmith.io/' }) .source('./src') .destination('./build') // .clean(true) .use( collections({ projects: 'pages/*.md', reverse: true, refer: true }) ) .use(markdown()) .use(permalinks()) .use( layouts({ engineOptions: { helpers: { formattedDate: function (date) { return new Date(date).toLocaleDateString() } } } }) ) .build(function (err, files) { if (err) throw err })
-
Ask HN: Share Your Personal Site
I also started to move to hugo, but they didn't merge the pr [2] which would have helped in the transition. :(
The look is still similar to what it was in the beginning, in terms of colors at least.
[1] https://github.com/metalsmith/metalsmith
-
SSGs through the ages: The ‘Reinvention’ era
Metalsmith
-
Why I built my own static site generator
A static site generator I've been enjoying lately (and using for my blog) is Metalsmith: https://metalsmith.io/
It feel like it's the best of both worlds, because it's simple to learn and customize, but there are plugins for the things you don't want to spend time writing yourself.
For example, I'm using plugins to: check for broken links, generate an RSS feed, and run a test server with automatic reloading.
But then I was able to easily add in my own code to handle relative links, generate Graphviz diagrams, and format dates.
One other recommendation: I hated almost every template language I ran across (Hugo's, Liquid, Nunjucks, EJS), but I'm thrilled with the simplicity of Handlebars (https://handlebarsjs.com/), although it is a bit limiting and the "block helper with parameters" syntax is strange (perhaps an indicator that I'm trying to do too much in the templating language!).
-
Zola, A fast static site generator in a single binary
I believe Metalsmith [1] is trying that approach
[1] https://metalsmith.io/
What are some alternatives?
rk-minimal - Personal site and experiment playground
Hugo - The world’s fastest framework for building websites.
comic-mono-font - A legible monospace font... the very typeface you’ve been trained to recognize since childhood
docsify - 🃏 A magical documentation site generator.
qubyte-codes - My personal site.
Wintersmith - A flexible static site generator
hn-search - Hacker News Search
Phenomic
daedalOS - Desktop environment in the browser
Pelican - Static site generator that supports Markdown and reST syntax. Powered by Python.
jetson-nano-image - Create minimalist, Ubuntu based images for the Nvidia jetson boards [Moved to: https://github.com/pythops/jetson-image]
Brunch - :fork_and_knife: Web applications made easy. Since 2011.