Skip to content

Commit 5564c8a

Browse files
authored
Merge pull request #88 from bovem/drafts
Updated blog theme and cover image
2 parents 761ab38 + 9b8490e commit 5564c8a

File tree

8 files changed

+62
-55
lines changed

8 files changed

+62
-55
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Blog Cover Image](./static/cover.png)](https://www.avni.sh/)
1+
[![Blog Cover Image](./static/cover.webp)](https://www.avni.sh/)
22

33
## Hi I'm Avnish.
44
* Building software at Autodesk in Singapore.

config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ params:
7070
ShowRssButtonInSectionTermList: true
7171
ShowToc: true
7272
# comments: false
73-
images: ["cover.png"]
73+
images: ["cover.webp"]
7474

7575
profileMode:
7676
enabled: false

content/contents.md

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -4,55 +4,3 @@ layout: "contents"
44
url: "/contents"
55
summary: "List of blog content"
66
---
7-
8-
- <a target=_blank href="/posts/math">Math</a>
9-
- <a target=_blank href="/posts/math/linear-algebra">Linear Algebra</a>
10-
- <a target=_blank href="/posts/math/linear-algebra/tensors/">Tensors</a>
11-
- <a target=_blank href="/posts/math/linear-algebra/vectors/">Vectors</a>
12-
- <a target=_blank href="/posts/math/linear-algebra/matrices/">Matrices</a>
13-
- <a target=_blank href="/posts/math/linear-algebra/gaussian-elimination/">Gaussian Elimination</a>
14-
- <a target=_blank href="/posts/computer-science">Computer Science</a>
15-
- <a target=_blank href="/posts/computer-science/interview-preparation">Interview Preparation</a>
16-
- <a target=_blank href="/posts/computer-science/interview-preparation/time-complexity/">Time Complexity</a>
17-
- <a target=_blank href="/posts/computer-science/interview-preparation/arrays-strings-hashmaps/">Arrays, Strings, and HashMaps</a>
18-
* <a target=_blank href="/posts/computer-science/interview-preparation/rabin-karp-substring-search/">Rabin-Karp Substring Search</a>
19-
* <a target=_blank href="/posts/computer-science/interview-preparation/contains-duplicate/">Checking an Array for Duplicate Values</a>
20-
* <a target=_blank href="/posts/computer-science/interview-preparation/is-anagram/">Identifying Anagrams</a>
21-
* <a target=_blank href="/posts/computer-science/interview-preparation/two-sums/">Finding Elements in an Array that Sum Up to a Target Value</a>
22-
* <a target=_blank href="/posts/computer-science/interview-preparation/group-anagrams/">Group Anagrams in an Array</a>
23-
* <a target=_blank href="/posts/computer-science/interview-preparation/top-k-frequent/">Finding Most Frequent Elements in an Array</a>
24-
* <a target=_blank href="/posts/computer-science/interview-preparation/product-except-self/">Building a Product Array without the Element Itself</a>
25-
* <a target=_blank href="/posts/computer-science/interview-preparation/is-valid-sudoku/">Checking Validity of a Sudoku Grid</a>
26-
* <a target=_blank href="/posts/computer-science/interview-preparation/encoding-and-decoding-strings/">Encoding and Decoding Functions for Strings</a>
27-
* <a target=_blank href="/posts/computer-science/interview-preparation/longest-consecutive/">Finding the Longest Consecutive Sequence in an Array</a>
28-
- <a target=_blank href="/posts/computer-science/interview-preparation/linked-lists/">Linked Lists</a>
29-
* <a target=_blank href="/posts/computer-science/interview-preparation/two-pointers-approach/">Two-Pointer Approach</a>
30-
* <a target=_blank href="/posts/computer-science/interview-preparation/reverse-linked-lists/">Reversing Linked Lists</a>
31-
* <a target=_blank href="/posts/computer-science/interview-preparation/merge-sorted-linked-lists/">Merge Two Sorted Linked Lists</a>
32-
* <a target=_blank href="/posts/computer-science/interview-preparation/reorder-linked-list/">Reorder Linked Lists</a>
33-
- <a target=_blank href="/posts/computer-science/technologies">Technologies</a>
34-
- <a target=_blank href="/posts/computer-science/technologies/self-hosting">Self Hosting</a>
35-
- <a target=_blank href="/posts/computer-science/technologies/self-hosting/building-your-own-homelab/">Building Your Own Homelab</a>
36-
- <a target=_blank href="/posts/computer-science/technologies/self-hosting/self-hosting-ollama/">Self Hosting LLMs using Ollama</a>
37-
- <a target=_blank href="/posts/computer-science/technologies/developer-tools">Developer Tools</a>
38-
- <a target=_blank href="/posts/computer-science/technologies/developer-tools/my-development-environment/">My Development Environment: kitty, zsh, Neovim, tmux, and lazygit</a>
39-
- <a target=_blank href="/posts/computer-science/technologies/go">Go</a>
40-
- <a target=_blank href="/posts/computer-science/technologies/go/go-programming-language/">Go Programming Language</a>
41-
- <a target=_blank href="/posts/computer-science/technologies/go/file-handling-in-go/">File Handling in Go</a>
42-
- <a target=_blank href="/posts/computer-science/technologies/go/concurrency-in-go/">Concurrency in Go</a>
43-
- <a target=_blank href="/posts/computer-science/technologies/go/rest-api-requests-in-go/">REST API Requests in Go</a>
44-
- <a target=_blank href="/posts/computer-science/technologies/cloud-native">Cloud-Native</a>
45-
- <a target=_blank href="/posts/computer-science/technologies/cloud-native/containers/">Containers</a>
46-
- <a target=_blank href="/posts/computer-science/technologies/cloud-native/container-architecture/">Container Architecture</a>
47-
- <a target=_blank href="/posts/computer-science/technologies/cloud-native/container-lifecycle/">Container Lifecycle</a>
48-
- <a target=_blank href="/posts/computer-science/technologies/cloud-native/container-images/">Container Images</a>
49-
- <a target=_blank href="/posts/computer-science/technologies/cloud-native/building-container-images/">Building Container Images</a>
50-
- <a target=_blank href="/posts/computer-science/technologies/cloud-native/kubernetes-operators/">Kubernetes Operators</a>
51-
- <a target=_blank href="/posts/computer-science/technologies/cloud-native/operators-on-openshift/">Operators on OpenShift</a>
52-
- <a target=_blank href="/posts/computer-science/technologies/cloud-native/operator-sdk/">Operator SDK and Bundle Images</a>
53-
- <a target=_blank href="/posts/computer-science/technologies/cloud-native/helm-charts/">Helm Charts</a>
54-
- <a target=_blank href="/posts/computer-science/technologies/cloud-native/container-network-interfaces/">Container Network Interfaces (CNI)</a>
55-
- <a target=_blank href="/posts/computer-science/technologies/cloud-native/container-storage-interfaces/">Container Storage Interfaces (CSI)</a>
56-
- <a target=_blank href="/posts/computer-science/technologies/cloud-native/network-functions/">Network Functions</a>
57-
- <a target=_blank href="/posts/personal-projects">Personal Projects</a>
58-
- <a target=_blank href="/posts/personal-projects/brag/">brag: A Command Line Tool for Building a Bragging Document</a>

layouts/_default/contents.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{{- define "main" }}
2+
3+
<header class="page-header">
4+
<h1>{{ .Title }}</h1>
5+
{{- if .Description }}
6+
<div class="post-description">
7+
{{ .Description }}
8+
</div>
9+
{{- end }}
10+
</header>
11+
12+
<div class="post-content">
13+
{{- $postsSection := site.GetPage "posts" }}
14+
{{- with $postsSection }}
15+
<ul>
16+
{{- partial "contents-tree.html" . }}
17+
</ul>
18+
{{- end }}
19+
</div>
20+
21+
{{- end }}{{/* end main */}}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{{- range .Sections }}
2+
<li>
3+
<a href="{{ .Permalink }}">{{ .Title }}</a>
4+
{{- if or .Sections .RegularPages }}
5+
<ul>
6+
{{- partial "contents-tree.html" . }}
7+
</ul>
8+
{{- end }}
9+
</li>
10+
{{- end }}
11+
{{- range .RegularPages.ByDate }}
12+
<li>
13+
<a href="{{ .Permalink }}">{{ .Title }}</a>
14+
</li>
15+
{{- end }}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
2+
{{- with .Params.categories }}
3+
{{- $firstCat := index . 0 }}
4+
{{- $pages = where $pages "Params.categories" "intersect" (slice $firstCat) }}
5+
{{- end }}
6+
{{- if and (gt (len $pages) 1) (in $pages .) }}
7+
<nav class="paginav">
8+
{{- with $pages.Prev . }}
9+
<a class="prev" href="{{ .Permalink }}">
10+
<span class="title">{{ i18n "prev_page" }} »</span>
11+
<br>
12+
<span>{{- .Name -}}</span>
13+
</a>
14+
{{- end }}
15+
{{- with $pages.Next . }}
16+
<a class="next" href="{{ .Permalink }}">
17+
<span class="title">« {{ i18n "next_page" }}</span>
18+
<br>
19+
<span>{{- .Name -}}</span>
20+
</a>
21+
{{- end }}
22+
</nav>
23+
{{- end }}

static/cover.webp

974 KB
Loading

0 commit comments

Comments
 (0)