Initial commit for Hugo site.

This commit is contained in:
Charish Patel
2025-02-20 08:28:31 -05:00
parent 737c448252
commit 045d0c24f3
696 changed files with 91218 additions and 0 deletions
@@ -0,0 +1,5 @@
<p class="footnote">
powered by <a target="_blank" href="https://gohugo.io">Hugo</a> | themed with <a target="_blank" href="https://github.com/lukeorth/poison">poison</a>
<br>
&copy; {{ now.Format "2006"}} {{ or .Site.Language.Params.Author.name .Site.Title }}. All rights reserved.
</p>
@@ -0,0 +1,61 @@
<nav>
<ul class="sidebar-nav">
{{ $sections := .Site.Sections.ByTitle }}
{{ $taxonomies := .Site.Taxonomies }}
{{ range .Site.Params.menu }}
{{ $menu_item := . }}
{{ if eq (len $menu_item.URL) 0 }}
<li class="heading">{{ $menu_item.Name }}</li>
{{ else if $menu_item.External }}
<li class="bullet">
<a href="{{ $menu_item.URL }}" target="_blank" rel="noopener noreferrer">{{ $menu_item.Name }}</a>
</li>
{{ end }}
{{ range $sections }}
{{ $trimmedURL := (lower (strings.TrimSuffix "/" (strings.TrimPrefix "/" $menu_item.URL))) }}
{{ if eq (lower .Title) (replace $trimmedURL "-" " ") }}
<li class="heading">
<a href="{{ $menu_item.URL }}">{{ $menu_item.Name }}</a>
</li>
{{ if $menu_item.HasChildren }}
<li class="sub-heading">
{{ $menu_item.Pre }}
</li>
{{ range (first $menu_item.Limit .Pages) }}
<li class="bullet">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ range $name, $taxonomy := $taxonomies }}
{{ if eq (lower $name) (lower $menu_item.Name) }}
<li class="heading">
<a href="{{$menu_item.URL }}">{{ $menu_item.Name }}</a>
</li>
{{ end }}
{{ range $term, $page := $taxonomy }}
{{ if eq (lower $term) (lower $menu_item.Name) }}
<li class="heading">
<a href="{{$menu_item.URL }}">{{ $menu_item.Name }}</a>
</li>
{{ if $menu_item.HasChildren }}
<li class="sub-heading">
{{ $menu_item.Pre }}
</li>
{{ range (first $menu_item.Limit .Pages) }}
<li class="bullet">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</ul>
</nav>
@@ -0,0 +1,9 @@
<aside class="sidebar">
<div class="container sidebar-sticky">
{{ partial "light_dark.html" . }}
{{ partial "sidebar/title.html" . }}
{{ partial "sidebar/menu.html" . }}
{{ partial "sidebar/socials.html" . }}
{{ partial "sidebar/copyright.html" . }}
</div>
</aside>
File diff suppressed because one or more lines are too long
@@ -0,0 +1,21 @@
<div class="sidebar-about">
<h1 class="brand">
{{ if .Site.Params.remote_brand_image }}
<a href="{{ .Site.BaseURL }}">
<img src="{{ .Site.Params.remote_brand_image }}" alt="brand image">
</a>
{{ else if .Site.Params.brand_image }}
<a href="{{ .Site.BaseURL }}">
<img src="{{ .Site.Params.brand_image }}" alt="brand image">
</a>
{{ end }}
{{ if .Site.Params.brand }}
<a href="{{ .Site.BaseURL }}">
<h1>{{ .Site.Params.brand }}</h1>
</a>
{{ end }}
</h1>
<p class="lead">
{{ with .Site.Params.description }}{{. | safeHTML}}{{end}}
</p>
</div>