Move apps into projects section
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 7s

This commit is contained in:
Akshay Kolli
2026-07-02 00:43:02 -07:00
parent e1030587c2
commit 639bef4b7a
13 changed files with 12 additions and 25 deletions

View File

@@ -3,7 +3,7 @@
{{ $hasToc := and (ne .Params.toc false) (gt (len (findRE "<li>" .TableOfContents)) 0) }}
{{ $backHref := "/" | relURL }}
{{ $backLabel := "Home" }}
{{ if in (slice "apps" "projects" "websites") .Section }}
{{ if in (slice "projects" "websites") .Section }}
{{ $backHref = "/projects/" | relURL }}
{{ $backLabel = "Projects" }}
{{ else if eq .Section "publications" }}

View File

@@ -1,8 +1,7 @@
{{- $items := slice -}}
{{- range where site.RegularPages "Section" "in" (slice "posts" "projects" "apps") -}}
{{- range where site.RegularPages "Section" "in" (slice "posts" "projects") -}}
{{- $description := .Description | default (.Summary | plainify) -}}
{{- $section := title .Section -}}
{{- if eq .Section "apps" }}{{ $section = "Projects" }}{{ end -}}
{{- $items = $items | append (dict
"title" .Title
"link" .Permalink

View File

@@ -25,7 +25,7 @@
{{ if eq $active "publications" }}
{{ partial "publication-list.html" hugo.Data.publications }}
{{ else if eq $active "projects" }}
{{ partial "page-list.html" (where site.RegularPages "Section" "in" (slice "projects" "apps")) }}
{{ partial "page-list.html" (where site.RegularPages "Section" "projects") }}
{{ else if eq $active "contact" }}
{{ partial "contact-section.html" . }}
{{ else }}