diff --git a/.gitmodules b/.gitmodules index cfbb43f..2a8e37a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "public"] path = public url = https://gitea.balki.me/balki/blog-op +[submodule "themes/mytheme"] + path = themes/mytheme + url = https://gitea.balki.me/balki/no-js-hugo-theme.git diff --git a/config.yaml b/config.yaml deleted file mode 100644 index d54ca88..0000000 --- a/config.yaml +++ /dev/null @@ -1,3 +0,0 @@ -baseURL: https://balki.me/ -languageCode: en-us -title: Balki's Blog diff --git a/hugo.yaml b/hugo.yaml new file mode 100644 index 0000000..1e1b080 --- /dev/null +++ b/hugo.yaml @@ -0,0 +1,13 @@ +baseURL: https://blog.balki.me/ +languageCode: en-us +title: Balki's Blog +theme: mytheme +markup: + highlight: + # This setting makes code highlighting use theme's colors instead of hugo's default + noClasses: false + +params: + themeStyleSwitcher: true + footerText: "[theme](https://gitea.balki.me/balki/no-js-hugo-theme)" + showTagList: false diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html deleted file mode 100644 index c7c7776..0000000 --- a/layouts/_default/baseof.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - {{- block "title" . -}} - {{ .Site.Title }} - {{- end -}} - - - - - - {{ if .Params.asciinema }} - - {{ end }} - - - - - - - -
- - -
- {{ block "main" . }} - {{ end }} -
-
-
-
- - - diff --git a/layouts/_default/list.html b/layouts/_default/list.html deleted file mode 100644 index b356040..0000000 --- a/layouts/_default/list.html +++ /dev/null @@ -1,6 +0,0 @@ -{{ define "main" }} -

Posts

- {{ range .Pages }} - {{ partial "postcard" . }} - {{ end }} -{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html deleted file mode 100644 index 17b39de..0000000 --- a/layouts/_default/single.html +++ /dev/null @@ -1,23 +0,0 @@ -{{ define "title" }} - {{ .Title }} – {{ .Site.Title }} -{{ end }} -{{ define "main" }} -
-

{{ .Title }}

-

- {{ if .Params.tags }} - │ - {{range .Params.tags}} - {{ . }} - {{end}} - {{end}} - {{ if .Params.categories }} - │ - {{range .Params.categories}} - {{ . }} - {{end}} - {{end}} -

- {{ .Content }} -
-{{ end }} diff --git a/layouts/index.html b/layouts/index.html deleted file mode 100644 index fd0bda5..0000000 --- a/layouts/index.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ define "main" }} -
-
- {{ .Content }} -
-

Under construction. Come back later! :)

-
-

Recent posts

- {{ range .Pages }} - {{ range .Pages }} - {{ partial "postcard" . }} - {{ end }} - {{ end }} -
-
-{{ end }} diff --git a/layouts/partials/postcard.html b/layouts/partials/postcard.html deleted file mode 100644 index ac51f60..0000000 --- a/layouts/partials/postcard.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ define "styles" }} - a.title-link { - text-decoration: none; - } -{{ end }} -
-
-

{{ .Title }}

-

{{ .Date.Format "2006-01-02" }}

-

{{ .Summary }}

-
-
diff --git a/layouts/shortcodes/asciinema.html b/layouts/shortcodes/asciinema.html deleted file mode 100644 index d8557eb..0000000 --- a/layouts/shortcodes/asciinema.html +++ /dev/null @@ -1,20 +0,0 @@ -
- - diff --git a/layouts/shortcodes/details.html b/layouts/shortcodes/details.html deleted file mode 100644 index c52126d..0000000 --- a/layouts/shortcodes/details.html +++ /dev/null @@ -1,9 +0,0 @@ -{{- /* -Template comment syntax: https://hugo.d.balki.me/templates/introduction/#comments -collapsable section ref: https://stackoverflow.com/a/78475534 -*/ -}} - -
- {{ .Get "title" | default "Click to expand" | markdownify }} -
{{ .Inner | markdownify }}
-
diff --git a/themes/mytheme b/themes/mytheme new file mode 160000 index 0000000..c93379b --- /dev/null +++ b/themes/mytheme @@ -0,0 +1 @@ +Subproject commit c93379bf7c6f1787650b37c89f4c8a3ee67a5137