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,2 @@
<a href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{ .Text | safeHTML }}</a>
{{- /* This comment removes trailing newlines. */ -}}
@@ -0,0 +1,11 @@
{{ partial "head/head.html" . }}
<body class="{{if .Site.Params.layoutReverse}}layout-reverse {{end}}{{if .Site.Params.dark_mode}}dark-theme{{end}}">
<div class="wrapper">
{{ partial "sidebar/sidebar.html" . }}
<main class="content container">
{{ block "main" . -}}{{- end }}
</main>
{{ block "sidebar" . }}{{ end }}
</div>
</body>
</html>
+18
View File
@@ -0,0 +1,18 @@
{{ define "main" -}}
<h1 class="title">{{ .Title }}</h1>
<ul class="entries">
{{ range .Pages.GroupByDate "2006" }}
<h3 style="text-align: center;">{{ .Key }}</h3>
{{ range .Pages }}
<li>
<span class="title">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</span>
<span class="published">
<time class="pull-right post-list">{{ .Date | time.Format ":date_long" }}</time>
</span>
</li>
{{ end }}
{{ end }}
</ul>
{{ end }}
@@ -0,0 +1,18 @@
{{ define "main" -}}
<div class="post">
{{ partial "post/info.html" . }}
{{ .Content }}
{{ if (.Site.Params.listmonk) }}
{{ partial "post/listmonk_email_newsletters.html" . }}
{{ end }}
{{ partial "post/navigation.html" . }}
{{ if or (.Site.Params.remark42) (.Site.DisqusShortname) }}
{{ partial "post/comments.html" . }}
{{ end }}
</div>
{{- end }}
{{ define "sidebar" }}
{{ if and (not .Params.hideToc) (not .Site.Params.hideToc) }}
{{ partial "table_of_contents.html" . }}
{{ end }}
{{ end }}