diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1abf123 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/huell"] + path = themes/huell + url = https://git.karaolidis.com/karaolidis/huell.git diff --git a/hugo.toml b/hugo.toml index bb8f1a0..a391e7c 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,4 +1,4 @@ baseURL = 'https://www.karaolidis.com/' languageCode = 'en-us' title = 'Jupiter Lab' -theme = 'caldwell-59' +theme = 'huell' diff --git a/themes/caldwell-59/archetypes/default.md b/themes/caldwell-59/archetypes/default.md deleted file mode 100644 index 25b6752..0000000 --- a/themes/caldwell-59/archetypes/default.md +++ /dev/null @@ -1,5 +0,0 @@ -+++ -date = '{{ .Date }}' -draft = true -title = '{{ replace .File.ContentBaseName "-" " " | title }}' -+++ diff --git a/themes/caldwell-59/assets/css/main.css b/themes/caldwell-59/assets/css/main.css deleted file mode 100644 index 166ade9..0000000 --- a/themes/caldwell-59/assets/css/main.css +++ /dev/null @@ -1,22 +0,0 @@ -body { - color: #222; - font-family: sans-serif; - line-height: 1.5; - margin: 1rem; - max-width: 768px; -} - -header { - border-bottom: 1px solid #222; - margin-bottom: 1rem; -} - -footer { - border-top: 1px solid #222; - margin-top: 1rem; -} - -a { - color: #00e; - text-decoration: none; -} diff --git a/themes/caldwell-59/assets/js/main.js b/themes/caldwell-59/assets/js/main.js deleted file mode 100644 index 2f45f61..0000000 --- a/themes/caldwell-59/assets/js/main.js +++ /dev/null @@ -1 +0,0 @@ -console.log("This site was generated by Hugo."); diff --git a/themes/caldwell-59/hugo.toml b/themes/caldwell-59/hugo.toml deleted file mode 100644 index b41d8ee..0000000 --- a/themes/caldwell-59/hugo.toml +++ /dev/null @@ -1,20 +0,0 @@ -[menus] -[[menus.main]] -name = 'Home' -pageRef = '/' -weight = 10 - -[[menus.main]] -name = 'Posts' -pageRef = '/posts' -weight = 20 - -[[menus.main]] -name = 'Tags' -pageRef = '/tags' -weight = 30 - -[module] -[module.hugoVersion] -extended = false -min = '0.146.0' diff --git a/themes/caldwell-59/layouts/_partials/footer.html b/themes/caldwell-59/layouts/_partials/footer.html deleted file mode 100644 index a7cd916..0000000 --- a/themes/caldwell-59/layouts/_partials/footer.html +++ /dev/null @@ -1 +0,0 @@ -

Copyright {{ now.Year }}. All rights reserved.

diff --git a/themes/caldwell-59/layouts/_partials/head.html b/themes/caldwell-59/layouts/_partials/head.html deleted file mode 100644 index 6415424..0000000 --- a/themes/caldwell-59/layouts/_partials/head.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - {{ if .IsHome }} - {{ site.Title }} - {{ else }} - {{ printf "%s | %s" .Title site.Title }} - {{ end }} - -{{ partialCached "head/css.html" . }} -{{ partialCached "head/js.html" . }} diff --git a/themes/caldwell-59/layouts/_partials/head/css.html b/themes/caldwell-59/layouts/_partials/head/css.html deleted file mode 100644 index 9b63ba1..0000000 --- a/themes/caldwell-59/layouts/_partials/head/css.html +++ /dev/null @@ -1,14 +0,0 @@ -{{- with resources.Get "css/main.css" }} - {{- if hugo.IsDevelopment }} - - {{- else }} - {{- with . | minify | fingerprint }} - - {{- end }} - {{- end }} -{{- end }} diff --git a/themes/caldwell-59/layouts/_partials/head/js.html b/themes/caldwell-59/layouts/_partials/head/js.html deleted file mode 100644 index d97018e..0000000 --- a/themes/caldwell-59/layouts/_partials/head/js.html +++ /dev/null @@ -1,20 +0,0 @@ -{{- with resources.Get "js/main.js" }} - {{- $opts := dict - "minify" (not hugo.IsDevelopment) - "sourceMap" (cond hugo.IsDevelopment "external" "") - "targetPath" "js/main.js" - }} - {{- with . | js.Build $opts }} - {{- if hugo.IsDevelopment }} - - {{- else }} - {{- with . | fingerprint }} - - {{- end }} - {{- end }} - {{- end }} -{{- end }} diff --git a/themes/caldwell-59/layouts/_partials/header.html b/themes/caldwell-59/layouts/_partials/header.html deleted file mode 100644 index 7980a00..0000000 --- a/themes/caldwell-59/layouts/_partials/header.html +++ /dev/null @@ -1,2 +0,0 @@ -

{{ site.Title }}

-{{ partial "menu.html" (dict "menuID" "main" "page" .) }} diff --git a/themes/caldwell-59/layouts/_partials/menu.html b/themes/caldwell-59/layouts/_partials/menu.html deleted file mode 100644 index bf7d3a6..0000000 --- a/themes/caldwell-59/layouts/_partials/menu.html +++ /dev/null @@ -1,52 +0,0 @@ -{{- /* - Renders a menu for the given menu ID. - - @context {page} page The current page. - @context {string} menuID The menu ID. - - @example: {{ partial "menu.html" (dict "menuID" "main" "page" .) -}} -*/}} -{{- $page := .page }} -{{- $menuID := .menuID }} - -{{- with index site.Menus $menuID }} - -{{- end }} - -{{- define "_partials/inline/menu/walk.html" }} - {{- $page := .page }} - {{- range .menuEntries }} - {{- $attrs := dict "href" .URL }} - {{- if $page.IsMenuCurrent .Menu . }} - {{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") }} - {{- else if $page.HasMenuCurrent .Menu . }} - {{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") }} - {{- end }} - {{- $name := .Name }} - {{- with .Identifier }} - {{- with T . }} - {{- $name = . }} - {{- end }} - {{- end }} -
  • - {{ $name }} - {{- with .Children }} - - {{- end }} -
  • - {{- end }} -{{- end }} diff --git a/themes/caldwell-59/layouts/_partials/terms.html b/themes/caldwell-59/layouts/_partials/terms.html deleted file mode 100644 index 9e68972..0000000 --- a/themes/caldwell-59/layouts/_partials/terms.html +++ /dev/null @@ -1,23 +0,0 @@ -{{- /* - For a given taxonomy, renders a list of terms assigned to the page. - - @context {page} page The current page. - @context {string} taxonomy The taxonomy. - - @example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) -}} -*/}} -{{- $page := .page }} -{{- $taxonomy := .taxonomy }} - -{{- with $page.GetTerms $taxonomy }} - {{- $label := (index . 0).Parent.LinkTitle }} -
    -
    {{ $label }}:
    - -
    -{{- end }} diff --git a/themes/caldwell-59/layouts/baseof.html b/themes/caldwell-59/layouts/baseof.html deleted file mode 100644 index 4649aed..0000000 --- a/themes/caldwell-59/layouts/baseof.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - {{ partial "head.html" . }} - - -
    - {{ partial "header.html" . }} -
    -
    - {{ block "main" . }}{{ end }} -
    - - - diff --git a/themes/caldwell-59/layouts/home.html b/themes/caldwell-59/layouts/home.html deleted file mode 100644 index 0df6597..0000000 --- a/themes/caldwell-59/layouts/home.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ define "main" }} - {{ .Content }} - {{ range site.RegularPages }} -

    {{ .LinkTitle }}

    - {{ .Summary }} - {{ end }} -{{ end }} diff --git a/themes/caldwell-59/layouts/page.html b/themes/caldwell-59/layouts/page.html deleted file mode 100644 index 7e286c8..0000000 --- a/themes/caldwell-59/layouts/page.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ define "main" }} -

    {{ .Title }}

    - - {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} - {{ $dateHuman := .Date | time.Format ":date_long" }} - - - {{ .Content }} - {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} -{{ end }} diff --git a/themes/caldwell-59/layouts/section.html b/themes/caldwell-59/layouts/section.html deleted file mode 100644 index 50fc92d..0000000 --- a/themes/caldwell-59/layouts/section.html +++ /dev/null @@ -1,8 +0,0 @@ -{{ define "main" }} -

    {{ .Title }}

    - {{ .Content }} - {{ range .Pages }} -

    {{ .LinkTitle }}

    - {{ .Summary }} - {{ end }} -{{ end }} diff --git a/themes/caldwell-59/layouts/taxonomy.html b/themes/caldwell-59/layouts/taxonomy.html deleted file mode 100644 index c2e7875..0000000 --- a/themes/caldwell-59/layouts/taxonomy.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ define "main" }} -

    {{ .Title }}

    - {{ .Content }} - {{ range .Pages }} -

    {{ .LinkTitle }}

    - {{ end }} -{{ end }} diff --git a/themes/caldwell-59/layouts/term.html b/themes/caldwell-59/layouts/term.html deleted file mode 100644 index c2e7875..0000000 --- a/themes/caldwell-59/layouts/term.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ define "main" }} -

    {{ .Title }}

    - {{ .Content }} - {{ range .Pages }} -

    {{ .LinkTitle }}

    - {{ end }} -{{ end }} diff --git a/themes/huell b/themes/huell new file mode 160000 index 0000000..75b84da --- /dev/null +++ b/themes/huell @@ -0,0 +1 @@ +Subproject commit 75b84da3b564d433bc94fd9cde249e464fbf9432