Initial website deployment
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 1m44s

This commit is contained in:
Akshay Kolli
2026-07-02 00:28:25 -07:00
commit e240b99cb2
66 changed files with 2774 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
{{ define "main" }}
<main class="home">
{{ partial "home-intro.html" . }}
{{ partial "file-index.html" (dict "active" .Section) }}
</main>
{{ end }}

View File

@@ -0,0 +1,63 @@
{{ define "main" }}
<article class="post" id="top">
{{ $hasToc := and (ne .Params.toc false) (gt (len (findRE "<li>" .TableOfContents)) 0) }}
{{ $backHref := "/" | relURL }}
{{ $backLabel := "Home" }}
{{ if in (slice "apps" "projects" "websites") .Section }}
{{ $backHref = "/projects/" | relURL }}
{{ $backLabel = "Projects" }}
{{ else if eq .Section "publications" }}
{{ $backHref = "/publications/" | relURL }}
{{ $backLabel = "Publications" }}
{{ end }}
<div class="post-layout{{ if $hasToc }} has-toc{{ end }}">
{{ if $hasToc }}
<aside class="post-margin" aria-label="Table of contents">
<div class="toc">
<div class="toc-title">Contents</div>
{{ .TableOfContents }}
</div>
</aside>
{{ end }}
<div class="post-shell">
<header class="post-header">
<a class="back-link" href="{{ $backHref }}" aria-label="Back to {{ $backLabel }}" title="Back to {{ $backLabel }}">&lt; {{ $backLabel }}</a>
<h1>{{ .Title }}</h1>
<div class="post-meta">
{{ if eq .Section "posts" }}
<time datetime="{{ .Date.Format "2006-01-02" }}">
{{ .Date.Format "02 Jan 2006" }}
</time>
{{ else }}
<span>{{ .Section | singularize | title }}</span>
{{ with .Params.status }}
<span class="dot">·</span>
<span>{{ . }}</span>
{{ end }}
{{ end }}
</div>
{{ with .Params.links }}
<div class="item-links article-links">
{{ $pageTitle := $.Title }}
{{ range . }}
<a href="{{ .url }}" aria-label="{{ .label }} for {{ $pageTitle }}" title="{{ .label }} for {{ $pageTitle }}">{{ .label }}</a>
{{ end }}
</div>
{{ end }}
</header>
<main class="post-content">
{{ .Content }}
</main>
<footer class="post-footer">
<a class="post-button" href="#top" aria-label="Scroll to top" title="Scroll to top">^ Top</a>
</footer>
</div>
</div>
</article>
{{ end }}

View File

@@ -0,0 +1,4 @@
{{ $id := .Get 0 }}
{{ $figures := .Page.Scratch.Get "figures" | default dict }}
{{ $number := index $figures $id }}
<a class="xref" href="#{{ $id }}">Figure {{ with $number }}{{ . }}{{ else }}{{ $id }}{{ end }}</a>

View File

@@ -0,0 +1,20 @@
{{ $id := .Get "id" | default (printf "figure-%d" .Ordinal) }}
{{ $src := .Get "src" }}
{{ $caption := .Get "caption" }}
{{ $alt := .Get "alt" | default $caption }}
{{ $figures := .Page.Scratch.Get "figures" | default dict }}
{{ $number := add (len $figures) 1 }}
{{ .Page.Scratch.SetInMap "figures" $id $number }}
<figure id="{{ $id }}" class="figure">
{{ with $src }}
<img src="{{ . | relURL }}" alt="{{ $alt }}">
{{ end }}
{{ if or $caption .Inner }}
<figcaption>
<span class="figure-label">Figure {{ $number }}.</span>
{{ with $caption }}{{ . | markdownify }}{{ else }}{{ .Inner | markdownify }}{{ end }}
</figcaption>
{{ end }}
</figure>

View File

@@ -0,0 +1,10 @@
<a
id="snref-{{ .Ordinal }}"
class="sidenote-number"
href="#sn-{{ .Ordinal }}"
role="doc-noteref"
aria-label="Sidenote {{ add .Ordinal 1 }}"
></a>
<span id="sn-{{ .Ordinal }}" class="sidenote" role="doc-endnote">
{{ .Inner | markdownify }}
</span>

39
layouts/baseof.html Normal file
View File

@@ -0,0 +1,39 @@
<!doctype html>
<html
lang="{{ site.Language.Locale | default "en-us" }}"
data-display="{{ site.Params.displayMode | default "crt" }}"
data-density="{{ site.Params.density | default "compact" }}"
>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
{{- if .IsHome -}}
{{ site.Title }} · {{ site.Params.author }}
{{- else -}}
{{ .Title }} · {{ site.Title }}
{{- end -}}
</title>
<meta name="description" content="{{ .Description | default site.Params.description }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.Title }}" href="{{ "index.xml" | absURL }}">
<link rel="stylesheet" href="{{ "css/main.css" | relURL }}">
{{ if .Param "math" }}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"></script>
<script
defer
src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js"
onload="renderMathInElement(document.body, { delimiters: [{left: '$$', right: '$$', display: true}, {left: '$', right: '$', display: false}, {left: '\\(', right: '\\)', display: false}, {left: '\\[', right: '\\]', display: true}], throwOnError: false });"
></script>
{{ end }}
<script defer src="{{ "js/site.js" | relURL }}"></script>
</head>
<body>
{{ block "main" . }}{{ end }}
</body>
</html>

6
layouts/home.html Normal file
View File

@@ -0,0 +1,6 @@
{{ define "main" }}
<main class="home">
{{ partial "home-intro.html" . }}
{{ partial "file-index.html" (dict "active" "posts") }}
</main>
{{ end }}

56
layouts/index.rss.xml Normal file
View File

@@ -0,0 +1,56 @@
{{- $items := slice -}}
{{- range where site.RegularPages "Section" "in" (slice "posts" "projects" "apps") -}}
{{- $description := .Description | default (.Summary | plainify) -}}
{{- $section := title .Section -}}
{{- if eq .Section "apps" }}{{ $section = "Projects" }}{{ end -}}
{{- $items = $items | append (dict
"title" .Title
"link" .Permalink
"guid" .Permalink
"date" .Date
"section" $section
"description" $description
) -}}
{{- end -}}
{{- range hugo.Data.publications -}}
{{- $parts := slice -}}
{{- with .authors }}{{ $parts = $parts | append . }}{{ end -}}
{{- with .venue }}{{ $parts = $parts | append . }}{{ end -}}
{{- $link := ("/publications/" | absURL) -}}
{{- with .links }}{{ with index . 0 }}{{ $link = .url }}{{ end }}{{ end -}}
{{- $items = $items | append (dict
"title" .title
"link" $link
"guid" $link
"date" (time.AsTime (printf "%v-01-01T00:00:00Z" .year))
"section" "Publications"
"description" (delimit $parts ". ")
) -}}
{{- end -}}
{{- $items = sort $items "date" "desc" -}}
{{- $latest := now -}}
{{- with index $items 0 }}{{ $latest = .date }}{{ end -}}
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.Title | html }}</title>
<link>{{ site.Home.Permalink }}</link>
<description>{{ site.Params.description | html }}</description>
<generator>Hugo</generator>
<language>{{ site.Language.Locale | default "en-us" }}</language>
<lastBuildDate>{{ $latest.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</lastBuildDate>
<atom:link href="{{ "index.xml" | absURL }}" rel="self" type="application/rss+xml" />
{{ range $items }}
<item>
<title>{{ .title | html }}</title>
<link>{{ .link }}</link>
<pubDate>{{ .date.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</pubDate>
<guid>{{ .guid }}</guid>
<category>{{ .section | html }}</category>
<description>{{ .description | plainify | html }}</description>
</item>
{{ end }}
</channel>
</rss>

View File

@@ -0,0 +1,4 @@
<section class="contact-section" aria-labelledby="contact-heading">
<h2 id="contact-heading">Contact</h2>
<p>Email me at <a href="mailto:akshaykolli@hotmail.com">akshaykolli@hotmail.com</a></p>
</section>

View File

@@ -0,0 +1,35 @@
{{ $active := .active | default "posts" }}
{{ $tabs := slice
(dict "id" "posts" "label" "Posts" "href" ("/" | relURL))
(dict "id" "projects" "label" "Projects" "href" ("/projects/" | relURL))
(dict "id" "publications" "label" "Publications" "href" ("/publications/" | relURL))
(dict "id" "contact" "label" "Contact" "href" ("/contact/" | relURL))
}}
<div class="file-index">
<nav class="file-tabs" aria-label="Index views">
{{ range $tabs }}
<a
class="file-tab{{ if eq $active .id }} active{{ end }}"
href="{{ .href }}"
aria-label="Show {{ .label }}"
title="Show {{ .label }}"
{{ if eq $active .id }}aria-current="page"{{ end }}
>{{ .label }}</a>
{{ end }}
</nav>
<section class="file-panel" aria-labelledby="{{ $active }}-heading">
<h2 class="sr-only" id="{{ $active }}-heading">{{ title $active }}</h2>
{{ 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")) }}
{{ else if eq $active "contact" }}
{{ partial "contact-section.html" . }}
{{ else }}
{{ partial "post-list.html" (where site.RegularPages "Section" "posts") }}
{{ end }}
</section>
</div>

View File

@@ -0,0 +1,9 @@
<section class="home-intro">
<h1>{{ site.Title }}</h1>
{{ with site.Home.Content }}
{{ . }}
{{ else with site.Params.description }}
<p>{{ . }}</p>
{{ end }}
{{ partial "social-links.html" . }}
</section>

View File

@@ -0,0 +1,25 @@
{{ with .pages }}
<section class="home-section" id="{{ $.id }}" aria-labelledby="{{ $.id }}-heading">
<h2 id="{{ $.id }}-heading">{{ $.title }}</h2>
<div class="item-list">
{{ range .ByWeight }}
<article class="item-row">
<div class="item-year">{{ with .Date }}{{ .Format "2006" }}{{ end }}</div>
<div>
<a class="item-title" href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ with .Description }}<p class="row-summary">{{ . }}</p>{{ end }}
{{ with .Params.status }}<div class="item-meta">{{ . }}</div>{{ end }}
{{ with .Params.links }}
<div class="item-links">
{{ range . }}
<a href="{{ .url }}">{{ .label }}</a>
{{ end }}
</div>
{{ end }}
</div>
</article>
{{ end }}
</div>
</section>
{{ end }}

View File

@@ -0,0 +1,26 @@
{{ with . }}
<div class="item-list">
{{ range .ByWeight }}
{{ $pageTitle := .Title }}
<article class="item-row" data-row-href="{{ .RelPermalink }}" role="link" tabindex="0" aria-label="Open {{ $pageTitle }}">
<div class="item-year">{{ with .Date }}{{ .Format "2006" }}{{ end }}</div>
<div class="item-body">
<div class="item-head">
<a class="item-title" href="{{ .RelPermalink }}" aria-label="Open {{ $pageTitle }}" title="Open {{ $pageTitle }}">{{ $pageTitle }}</a>
{{ with .Params.status }}
<span class="item-status">{{ . }}</span>
{{ end }}
</div>
{{ with .Params.links }}
<span class="item-links">
{{ range . }}<a href="{{ .url }}" aria-label="{{ .label }} for {{ $pageTitle }}" title="{{ .label }} for {{ $pageTitle }}">{{ .label }}</a>{{ end }}
</span>
{{ end }}
{{ with .Description }}<p class="row-summary">{{ . }}</p>{{ end }}
</div>
</article>
{{ end }}
</div>
{{ else }}
<p class="empty-list">No projects yet.</p>
{{ end }}

View File

@@ -0,0 +1,27 @@
{{ with . }}
<div class="tag-filter-status" data-tag-filter-status hidden>
<span>Showing <span data-tag-filter-name></span></span>
<a href="{{ "/" | relURL }}" aria-label="Clear tag filter" title="Clear tag filter">clear</a>
</div>
<div class="post-list" data-post-list>
{{ range .ByDate.Reverse }}
{{ $tags := .Params.tags | default (slice) }}
<article class="post-row" data-tags='{{ jsonify $tags }}'>
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02 Jan 2006" }}</time>
<div class="post-row-body">
<a class="post-title" href="{{ .RelPermalink }}" aria-label="Read {{ .Title }}" title="Read {{ .Title }}">{{ .Title }}</a>
{{ with $tags }}
<span class="post-title-tags">
{{ range . }}
<a class="post-tag" href="{{ "/" | relURL }}?tag={{ . | urlquery }}" data-tag="{{ . }}" aria-label="Filter posts by {{ . }}" title="Filter posts by {{ . }}">{{ . }}</a>
{{ end }}
</span>
{{ end }}
</div>
</article>
{{ end }}
</div>
{{ else }}
<p class="empty-list">No posts yet.</p>
{{ end }}

View File

@@ -0,0 +1,19 @@
{{ with . }}
<div class="item-list">
{{ range sort . "year" "desc" }}
{{ $pubTitle := .title }}
{{ $authors := .authors }}
<article class="item-row">
<div class="item-year">{{ .year }}</div>
<div class="item-body">
<div class="item-head">
<div class="item-title">{{ $pubTitle }}</div>
</div>
{{ with $authors }}<p class="row-summary">{{ . }}</p>{{ end }}
</div>
</article>
{{ end }}
</div>
{{ else }}
<p class="empty-list">No publications yet.</p>
{{ end }}

View File

@@ -0,0 +1,18 @@
{{ with site.Params.social }}
<nav class="social-links" aria-label="Social links">
{{ range . }}
{{ if .url }}
<a
class="social-link"
href="{{ .url }}"
{{ if not .internal }}target="_blank" rel="me noopener noreferrer"{{ end }}
aria-label="{{ .name }}"
title="{{ .name }}"
>
<img src="{{ printf "icons/%s.svg" .icon | relURL }}" alt="" width="14" height="14">
<span class="sr-only">{{ .name }}</span>
</a>
{{ end }}
{{ end }}
</nav>
{{ end }}