remove mini-sections from homepage and add timeline view
authorAngeloR <xangelo@gmail.com>
Thu, 12 Dec 2024 05:49:12 +0000 (00:49 -0500)
committerAngeloR <xangelo@gmail.com>
Thu, 12 Dec 2024 05:49:12 +0000 (00:49 -0500)
.gitmodules
config.toml
themes/brutalist-minimalist/layouts/_default/list.html
themes/brutalist-minimalist/layouts/_default/single.html
themes/brutalist-minimalist/layouts/partials/nav-links.html
themes/brutalist-minimalist/layouts/partials/recent-posts.html
themes/digitalgarden [new submodule]
themes/plain-hugo-theme [new submodule]

index 8b8bb1f2d6bd3e2348f1ed194f3ce26eedbb34ff..5630415b0d428c59c00cee824a753edbc4ca5c45 100644 (file)
@@ -14,3 +14,9 @@
 [submodule "themes/plain"]
        path = themes/plain
        url = git@github.com:AngeloR/plain-hugo-theme.git
+[submodule "themes/digitalgarden"]
+       path = themes/digitalgarden
+       url = https://github.com/apvarun/digital-garden-hugo-theme.git
+[submodule "themes/plain-hugo-theme"]
+       path = themes/plain-hugo-theme
+       url = git@github.com:AngeloR/plain-hugo-theme.git
index 20e0b21d29928d7981533552089934a2d43ec44f..6ca8bd2e56b5fd56546737c7b5dc04673901f9da 100644 (file)
@@ -13,18 +13,18 @@ rssLimit = 15
 [menu]
 [[menu.main]]
 name = 'About'
-pageRef = '/about'
+pageRef = '/pages/about'
 [[menu.main]]
 name = 'Linkblog'
-pageRef = '/linkblog'
+pageRef = '/pages/links'
 [[menu.main]]
-name = 'Categories'
-pageRef = '/categories'
+name = 'All Posts'
+pageRef = '/list'
 
 [params]
 subtitle = "Technical musings and other tidbits"
 siteBaseName = "Xangelo.ca"
-bloglistLength = 10
+bloglistLength = 15
 
 [markup]
 [markup.goldmark]
@@ -41,20 +41,7 @@ tabWidth = 2
     ordered = true
     startLevel = 2
 
-[mediaTypes]
-  [mediaTypes."text/gemini"]
-    suffixes = ["gmi"]
-
-[outputFormats]
-[outputFormats.Gemini]
-name = "GEMINI"
-mediaType = "text/gemini"
-isPlainText = true
-isHTML = false
-protocol = "gemini://"
-permalinkable = true
-path = "gemini/"
 
 [outputs]
-home = ["HTML", "RSS", "GEMINI"]
-page = ["HTML", "GEMINI"]
+home = ["HTML", "RSS"]
+page = ["HTML"]
index 3fa41c5883433c3a17ea3fd1c1804846ef5c1f0a..ec463521983e170aa98be9072f84c44c0ca4190c 100644 (file)
 {{.Page.Title}} | {{.Site.Params.siteBasename}}
 {{ end }}
 {{ define "main" }}
-<h2>{{.Page.Title}}</h2>
-{{.Content}}
-<ul id="page-list">
-{{range .Pages }}
-<li class="page-list-item"><a href="{{ .RelPermalink }}">{{.Title}}</a> &mdash; <span class="page-summary">{{.Summary}}</span></li>
-{{end}}
+{{ range .Site.RegularPages.GroupByPublishDate "2006" }}
+<h2>{{- .Key -}}</h2>
+<ul>
+  {{- range .Pages -}}
+  {{ if and (not (in .Params.tags "daily")) (not (in .Params.tags "page")) }}
+    <li>
+        <a href = "{{- .RelPermalink -}}">
+        {{- .Title -}}
+      </a>
+    </li>
+  {{ end }}
+  {{- end -}}
 </ul>
 {{ end }}
+{{ end }}
index ed96d5c92af37e5c8b026a419d9d4384a33441ca..807f2d8d45225385539619ea0e96f83faf1a96e2 100644 (file)
 {{.Page.Title}} | {{.Site.Params.siteBasename}}
 {{ end }}
 {{ define "main" }}
-<h2>{{.Page.Title}}</h2>
+
+{{.Content}}
 {{ if .Params.tags }}
 <div class="tag-list">
   {{ range .Params.tags }}
   [ <a href="{{ "/tags/" | relURL }}{{ . | urlize }}">{{ . }}</a> ]
   {{ end}}
 </div>
-
 {{ end}}
-{{.Content}}
 <div class="post-date">
   Posted {{ .Date.Format "Monday, January 02, 2006"}}
 </div>
index 369d11944ebfa43012d3dae314125e4e947e1f2d..c91b12d6a998dad7d30351a290c4fa6e43efc4b7 100644 (file)
@@ -22,8 +22,9 @@
    CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    
 */}}
+
 <a href="{{ "/"              | relURL}}">Home</a>
-<a href="{{ "tags/"          | relURL}}">All Categories</a>
-<a href="{{ "page/about"    | relURL}}">About</a>
-<a href="{{ "page/links"    | relURL}}">Links</a>
+{{ range .Site.Menus.main }}
+  <a href="{{ .URL | relURL }}">{{ .Name }}</a>
+{{ end }}
 <a href="{{ "/index.xml" | relURL }}"><img src="/icons/feed-icon-14x14.png"></a>
index 6e7819b910eb479aedbb43dcedb62a91e534fa3d..49ed0d606d7487094ad79632f383af8030968a82 100644 (file)
@@ -24,8 +24,9 @@
 */}}
 {{range first 1 (where site.RegularPages "Type" "in" (slice "feature" "daily")) }}
 <section id="daily-post">
-<h2>{{ .Title }}</h2>
-{{.Content}}
+  {{ with .Site.GetPage "pages/about" }}
+    {{ .Content }}
+  {{ end }}
 </section>
 <hr>
 {{end}}
 <li><a href="{{ .RelPermalink }}">{{.Title}}</a> ({{ .Date.Format "2006-01-02" }}) &mdash; <span class="post-summary">{{.Summary}}</span></li>
 {{end}}
 </ul>
-
-<hr>
-
-<div class="breakdowns">
-  <div>
-    <h2>Engineering Org</h2>
-    <ul>
-      {{range first site.Params.blogListLength (where site.RegularPages ".Params.tags" "intersect" (slice "engineering org" "engineering processes"))}}
-      <li><a href="{{ .RelPermalink }}">{{.Title}} &mdash; {{ .Date.Format "2006-01-02"}}</a></li>
-    {{end}}
-    </ul>
-  </div>
-  <div>
-    <h2>Technical Minutae</h2>
-    <ul>
-      {{range first site.Params.blogListLength (where site.RegularPages ".Params.tags" "intersect" (slice "code" "explanation" "architecture"))}}
-      <li><a href="{{ .RelPermalink }}">{{.Title}} &mdash; {{ .Date.Format "2006-01-02"}}</a></li>
-    {{end}}
-    </ul>
-  </div>
-  <div>
-    <h2>Projects</h2>
-    <ul>
-      {{range first site.Params.blogListLength (where site.RegularPages ".Params.tags" "intersect" (slice "project"))}}
-      <li><a href="{{ .RelPermalink }}">{{.Title}} &mdash; {{ .Date.Format "2006-01-02"}}</a></li>
-    {{end}}
-    </ul>
-  </div>
-  <div>
-    <h2>Daily Updates</h2>
-    <ul>
-      {{range first site.Params.blogListLength (where site.RegularPages "Type" "in" "daily")}}
-      <li><a href="{{ .RelPermalink }}">{{.Title}}</a></li>
-    {{end}}
-    </ul>
-  </div>
-</div>
diff --git a/themes/digitalgarden b/themes/digitalgarden
new file mode 160000 (submodule)
index 0000000..f087bcd
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit f087bcd10adc6ae4176dced9004283fee1507b57
diff --git a/themes/plain-hugo-theme b/themes/plain-hugo-theme
new file mode 160000 (submodule)
index 0000000..1c01094
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 1c01094c67cf50dff0b140a672ba339c582ce2c5