hugo-site
goldmark
hugo-site | goldmark | |
---|---|---|
12 | 12 | |
32 | 3,349 | |
- | - | |
9.9 | 6.8 | |
1 day ago | about 1 month ago | |
HTML | Go | |
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.
hugo-site
- Ask HN: Could you show your personal blog here?
-
Hugo via npm?
This month, I took my site squarely into npm-ville when I brought in the npm version of Sass and added PostCSS to make "future" CSS work with current browsers. As it turns out, those changes made my site an unexpectedly appropriate target for the use case that Hugo Installer presents. I’m sure I’ll find nits to pick over time but, for now, I’m impressed by what I’ve seen.
-
Sweeter searches with Pagefind
Fortunately, while there are limits to how much you’ll be able to improve your experience with online search in general, you can optimize your own website’s search capabilities. That’s assuming, of course, that your website is built with a static site generator (SSG), as I’ve recommended on my own website over the years, and has search capabilities in the first place. If it lacks search, you can fix that readily enough with the free Pagefind tool about which I wrote earlier this year.
-
Hugo theming question
In Line 2 of the partial that I use for the search bar and results, I comment out the line of code that calls to the Pagefind CSS. (I derived it from the Pagefind documentation.) It's this step for which I can't find the corresponding code in your repo, but I'm sure you know where it is; and that's the key to this.
-
Where do you post your writing?
(a.) My own site, https://www.brycewray.com --- currently hosted on Cloudflare Pages, although it's also been on other Jamstack hosts such as Netlify, Vercel, and (briefly) Render.
although I (b.) also sometimes put stuff on dev.to.
- Get good Git info from Hugo
-
Webmentions on Hugo yes, JavaScript no
Thanks! I will at some point. The code — in its current, very “as-is” state — is in my repo at (as of now) https://github.com/brycewray/hugo_site/blob/main/layouts/partials/webmentions-pipes.html if you can bear its spaghetti-ness. But, assuming you mean you’ll want a walk-through explanation: yes, that’s yet to come. There are some things I need to refine, first.
-
Webmentions yes, JavaScript no
When I have the code somewhat DRY-er, I’ll write about it. In the meantime, I’ve left the following comment within the webmentions-pipes partial template I’m using to suck all this into each applicable post, just in case the curious happen to find that partial on the site repo:
-
Stay in the race with Hugo, Bookshop, and CloudCannon’s Git-powered CMS
By Bryce Wray
-
Is Astro ready for your blog?
Having just moved my own site to Astro yesterday after a week or two of experimentation and grunt work, I can offer some opinions which may help you with that question. I’ll go through the “boxes” which I believe any SSG or other website development platform should “check” before you should give it a shot at this task, along with how I judge Astro’s ability to do so in each case.
goldmark
-
Markdown library recommendations
Goldmark used by Hugo.
-
I wrote a markdown to html converter
Yuin/Goldmark is the new standard Go Markdown processor. Black Friday is older.
-
Sweeter searches with Pagefind
As for Hugo with its built-in goldmark Markdown parser and included Footnote extension, a footnote’s HTML begins like this (here, it’s the first footnote in a page):
-
Question about goldmark
I am writing a library to convert markdown to HTML. In Go, the common library is https://github.com/yuin/goldmark.
-
The strongest principle of the blog's growth lies in the human choice to deploy it
Hugo -> goldmark -> goldmark-highlighting -> chroma
-
Run README.md in your terminal
Primarily born out of the annoyance of never-ending README copy & paste, our teammate Adam Babik decided to utilize a Markdown Abstract Syntax Tree parser to generate a naive digest of README snippets and make them easily runnable. This is a prototype (take the happy path!), but we are pleased with the initial results. Illustrated here using Husky - a popular solution to manage git hooks:
-
Hugo.io - Multiline cells in a table
Building table in markdown is super easy and well-documented. However, having a bit of formatting within it, like carriage return within a cell as below is not possible by default. Hugo uses Goldmark (a CommonMark implementation in Go) to process the markdown. Apparently it's extremely fast, with this implementation we choose to block any HTML processing d'HTML by default.
-
Is Astro ready for your blog?
Comparison: By default, Eleventy uses Markdown-it; like Astro, Gatsby and Next.js use Remark; and Hugo uses goldmark. As for Astro’s ability to mix components and Markdown on a page, probably the closest analogy to this is the use of MDX files in Gatsby and Next.js; Eleventy and Hugo can’t do this (however, see also “Components,” below, for some words on how Eleventy and Hugo use shortcodes which can provide some degree of code-in-Markdown functionality). Note that migrating an existing site to Astro from any of these other platforms probably will involve far more editing to your existing Markdown content than if you were migrating between two of the non-Astro platforms in this mix.
-
Generating HMTL and MD files from .TXT in GO
3rd party libraries: goldmark for converting MD syntax to HTML
-
MathJax and Hugo
The solution to the problem of having to escape many characters in LaTeX markup is solved in a simlar manner, however a combination of Hugo now using the Goldmark renderer and the MathJax API changing quite significantly at version 3.0, it largely needs re-writing. Firstly the script to add the class to the code blocks now looks like this:
What are some alternatives?
golang-docker - Docker Official Image packaging for golang
blackfriday - Blackfriday: a markdown processor for Go
Hugo - The world’s fastest framework for building websites.
markdown - markdown parser and HTML renderer for Go
toml - Tom's Obvious, Minimal Language
easy-markdown-editor - EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
remark - markdown processor powered by plugins part of the @unifiedjs collective
go-exprtk - Go Mathematical Expression Toolkit. Run-time mathematical expression parser and evaluation engine.
feed - A RSS, Atom and JSON Feed generator for Node.js, making content syndication simple and intuitive! 🚀
Markov Chain Algorithm - A Markov chain algorithm generates text by creating a statistical model of potential textual suffixes for a given prefix.
markdown-it - Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed