Initial website deployment
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 1m44s
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 1m44s
This commit is contained in:
4
layouts/partials/contact-section.html
Normal file
4
layouts/partials/contact-section.html
Normal 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>
|
||||
35
layouts/partials/file-index.html
Normal file
35
layouts/partials/file-index.html
Normal 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>
|
||||
9
layouts/partials/home-intro.html
Normal file
9
layouts/partials/home-intro.html
Normal 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>
|
||||
25
layouts/partials/page-list-section.html
Normal file
25
layouts/partials/page-list-section.html
Normal 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 }}
|
||||
26
layouts/partials/page-list.html
Normal file
26
layouts/partials/page-list.html
Normal 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 }}
|
||||
27
layouts/partials/post-list.html
Normal file
27
layouts/partials/post-list.html
Normal 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 }}
|
||||
19
layouts/partials/publication-list.html
Normal file
19
layouts/partials/publication-list.html
Normal 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 }}
|
||||
18
layouts/partials/social-links.html
Normal file
18
layouts/partials/social-links.html
Normal 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 }}
|
||||
Reference in New Issue
Block a user