langterm
Metalsmith
Our great sponsors
langterm | Metalsmith | |
---|---|---|
4 | 8 | |
76 | 7,822 | |
- | 0.0% | |
5.1 | 7.1 | |
5 months ago | 10 days ago | |
JavaScript | JavaScript | |
MIT License | 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.
langterm
-
Ask HN: Good resource on writing web app with plain JavaScript/HTML/CSS
I purposely wrote my home page (https://langworth.com) with plain, vanilla JavaScript, which features both WebGL and plaintext clients for a server-side text adventure game, because I wanted to remind myself that it's not that difficult to build something interactive and fun without miles of modern front-end tooling.
It started as a single page but I eventually broke it out into a few files for organization. The WebGL parts are lengthy and boilerplate-y because, well, that's GL for you. https://github.com/statico/langterm
-
Ask HN: Share Your Personal Site
https://langworth.com
Itās a retro experience with a text adventure game. I wrote it to prove to myself that I kinda knew WebGL after shutting down our browser gaming startup.
Only one person has beaten the game. Most donāt make it inside the building. Guess Iām not a great game designer ;)
- Langterm
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?
storyboarder - āļø Storyboarder makes it easy to visualize a story as fast you can draw stick figures.
Hugo - The worldās fastest framework for building websites.
open-props - CSS custom properties to help accelerate adaptive and consistent design.
docsify - š A magical documentation site generator.
web_app_from_scratch - One script for every web framework which sets up a minimal web app with routing, templates and users.
Wintersmith - A flexible static site generator
unpkg - The CDN for everything on npm
Phenomic
Web-Dev-For-Beginners - 24 Lessons, 12 Weeks, Get Started as a Web Developer
Pelican - Static site generator that supports Markdown and reST syntax. Powered by Python.
content - The content behind MDN Web Docs
Brunch - :fork_and_knife: Web applications made easy. Since 2011.