This commit is contained in:
2026-03-08 17:43:53 -04:00
parent e24ef4e2d8
commit c600d6b211
4 changed files with 51 additions and 6 deletions

View File

@@ -14,7 +14,8 @@ build:
.PHONY: serve .PHONY: serve
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: tags:
~/projects/mine/hugotags/hugotags.sh ~/projects/notmine/hugoDocs/content/en > tags ~/projects/mine/hugotags/hugotags.sh ~/projects/notmine/hugoDocs/content/en > tags

35
content/pages/about.md Normal file
View File

@@ -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

View File

@@ -1,7 +1,19 @@
--- ---
title: "Revive Blog" title: Hugo helptags
date: 2025-05-29T18:26:59-04:00 date: 2025-05-29T18:26:59-04:00
draft: true 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/

View File

@@ -4,9 +4,6 @@
{{- else -}} {{- else -}}
{{- $url = urls.JoinPath "http://gitea.balki.me" (.Get "repo") "raw/branch/main" (.Get "path") -}} {{- $url = urls.JoinPath "http://gitea.balki.me" (.Get "repo") "raw/branch/main" (.Get "path") -}}
{{- end -}} {{- end -}}
```{{ .Get "lang" }}
{{ with resources.GetRemote $url }} {{ with resources.GetRemote $url }}
{{- .Content -}} {{- .Content -}}
{{ end }} {{ end }}
```
[source]({{ $url }})