diff --git a/Makefile b/Makefile index c212c68..b8231ae 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,8 @@ build: .PHONY: serve serve: - hugo server -D --bind "0.0.0.0" --navigateToChanged -p 2323 + # hugo server -D --bind "0.0.0.0" --navigateToChanged -p 2323 + hugo server -D --navigateToChanged -p 2323 tags: ~/projects/mine/hugotags/hugotags.sh ~/projects/notmine/hugoDocs/content/en > tags diff --git a/content/pages/about.md b/content/pages/about.md new file mode 100644 index 0000000..939633c --- /dev/null +++ b/content/pages/about.md @@ -0,0 +1,35 @@ +--- +title: "About" +date: 2025-06-03T10:29:25-04:00 +draft: true +--- + +After procrastinating for a long time, finally got to starting my blog. I +decided to go use static site generators and [hugo][0] easily. But the problem +was with choosing a theme. + +### Choosing a theme + +My requirements for a theme: + +1. Absolutely no external requests from browser. Like, no CDNs, no + 'fonts.gstatic.com', etc. +2. No complex javascript/css build setup. I am not a front-end dev, not willing + to waste time learning current javascript tools which will be outdated every + time I write a blog post. +3. Small enough, I can review and understand the entire theme code. + +At first, I didn't want to use a theme. I started to create one using +[bootstrap][1]. Turned out to be too difficult to customize. Then tried to +write css from scratch. It was a disaster. When I write code, I don't stop when +the code does what I want, I try to go through all the possible methods and +make sure I am doing in the best possible way . In css, there are thousands of +settings and millions of ways to do achive the same thing. + +I have now settled with [this][2] theme. My fork [here][3]. Please share if you +have any suggestions to improve. + +[0]: https://gohugo.io +[1]: https://getbootstrap.com +[2]: https://github.com/stevenengler/no-js-hugo-theme +[3]: https://gitea.balki.me/balki/no-js-hugo-theme diff --git a/content/posts/revive-blog.md b/content/posts/revive-blog.md index 724d1d5..330841e 100644 --- a/content/posts/revive-blog.md +++ b/content/posts/revive-blog.md @@ -1,7 +1,19 @@ --- -title: "Revive Blog" +title: Hugo helptags date: 2025-05-29T18:26:59-04:00 draft: true --- -{{% gitea repo=balki/hugotags path=hugotags.sh lang=bash %}} +I am new to hugo layouts and templates syntax. I wanted to quickly see what a +hugo function or method does without context-switching to [hugo docs][1] in browser. +First, looked for hugo-language-server but didn't find one. I now settled with +the below setup + +### What are tags, tagfile, ctags? + +```bash {linenos=true} +{{% gitea repo=balki/hugotags path=hugotags.sh %}} +``` + +[0]: https://github.com/phelipetls/vim-hugo.git +[1]: https://gohugo.io/documentation/ diff --git a/layouts/_shortcodes/gitea.md b/layouts/_shortcodes/gitea.md index 316a67b..35d3f0e 100644 --- a/layouts/_shortcodes/gitea.md +++ b/layouts/_shortcodes/gitea.md @@ -4,9 +4,6 @@ {{- else -}} {{- $url = urls.JoinPath "http://gitea.balki.me" (.Get "repo") "raw/branch/main" (.Get "path") -}} {{- end -}} -```{{ .Get "lang" }} {{ with resources.GetRemote $url }} {{- .Content -}} {{ end }} -``` -[source]({{ $url }})