๐ข We need to find a theme for the blog. The current one breaks nushell output tables because the code blocks are too narrow.
๐ https://www.getzola.org/themes/pico/ is an option but I donโt like its header.
๐ฆ Minimal Dark from the same author looks better https://kuznetsov17.github.io/minimal-dark/notes/note1/
๐ https://www.getzola.org/themes/no-style-please/ is also an option.
๐ฆ https://halve-z.netlify.app/posts/information/ looks interesting but too much screen estate for the left bar
๐ข Letโs start with running the site locally first.
๐ There are errors in the configuration. Thatโs weird but letโs fix these.
๐ข Fixed errors. These are probably related to a newer version. Can we take a look at netlify.toml if it downloads the same version?
๐ There are breaking changes in Zola 0.19. Letโs update and push the netlify config to see the results.
๐ข We need to add language support for Nushell to prevent warnings. Take a look how to add a syntax file to zola.
๐ I added
extra_syntaxes_and_themes = ["syntaxes"]
to [markdown]
section and added a syntaxes/nushell.sublime-syntax
file copied from https://github.com/kurokirasama/nushell_sublime_syntax , Iโm getting,
Error: Reason: Error while compiling regex '\b(?x: 7z | ?
...
s-to-gdrive | usage | ver | verify | weather | wget-all | which-cd | wifi-info | wifi-pass | xls2csv | ydx | yt-api | ytcli | ytm | z | zi)\b'
Oniguruma error: target of repeat operator is not specified
๐ข The syntax highlighter may be a bit buggy. Letโs try to fix this if this is one-off.
๐ Found the bug. There is a ?
in the regex that causes it to fail. Now it compiles and nushell blocks are colored.
๐ข Cool. Letโs fix the other warnings now. shell
and console
are not recognized it looks.
๐ There only Bash listed in https://www.getzola.org/documentation/content/syntax-highlighting/.
๐ฆ What do you think about migrating to mdbook? We already maintain mdbook for Xvc, what about just moving the site to mdbook?
๐ข I thought about this before and the only downside is the lack of RSS feed.
๐ฆ I found this: https://github.com/theowenyoung/mdbook-rss
๐ข Now, this changes everything. We can even move nedriy.at
site to mdbook in this case.
๐ Then, letโs start working on this. The site will be a technical book site in this case.
๐ข Does mdbook support nushell syntax?
๐ Nushell is not in the listed languages. Mdbook uses highlight.js and in its listed languages, we donโt find Nu either.
๐ข We already added nu support to zola and we can just change the theme. This is a blocker in my opinion.
๐ I searched for nushell highlightjs support and nothing appears. I think we can just postpone until Nu has more support in this front.
๐ข Yes. Letโs first try this change in the non-technical blog and we can come back to this issue. Now, weโll update console and shell to bash, I think.
๐ Replaces shell
and console
with bash
.
๐ข There is a file for ggplot that has warnings from earlier incarnations. We also lack syntax highlighters for vim and tmux.
๐ There is sublime-syntax file for Tmux at https://raw.githubusercontent.com/gerardroche/sublime-tmux/refs/heads/master/Tmux.sublime-syntax but do we need it for a single file?
๐ข Letโs set it to the plain text.
๐ Now we only have only mermaid warnings left.
๐ข There should be a diagram at https://emresahin.net/developing-a-gitignore-crate/ but it doesnโt show up. We need a shortcode to show these, like the YouTube shortcode. Now letโs get back to theme selection.
๐ I tested karzok but it doesnโt have category and tags support.
๐ข And I tested https://github.com/micahkepe/radion but the best so far is apollo
theme. Iโm struggling to modify the index page though. I forgot that I modified the theme index.html
file. I have content in /content/_index.md
and a modified index.html
in /themes/anemone/templates/index.html
to show the content, tags, categories, etc. It should be fixed now.
๐ Ah , cool, can we clean the recent duplicate pages now.
๐ข Yeah, letโs take a look.