Skip to content

Commit 642a477

Browse files
committed
updated single.html
1 parent 223100c commit 642a477

File tree

16 files changed

+145
-26
lines changed

16 files changed

+145
-26
lines changed

Diff for: public/categories/development/index.html

+3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@
8181
<div id="search-dropdown-mobile"></div>
8282
</div><main class="main">
8383
<div class="container"><div class="page archive"><h2 class="single-title animate__animated animate__pulse animate__faster"><i class="far fa-folder-open fa-fw" aria-hidden="true"></i>&nbsp;Development</h2><h3 class="group-title">2024</h3><article class="archive-item">
84+
<a href="/posts/top_secret/" class="archive-item-link">Top Secret</a>
85+
<span class="archive-item-date">07-07</span>
86+
</article><article class="archive-item">
8487
<a href="/posts/lunr_search_for_hugo/" class="archive-item-link">Add Lunr Search to Hugo site</a>
8588
<span class="archive-item-date">06-11</span>
8689
</article></div></div>

Diff for: public/categories/development/index.xml

+9-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@
44
<link>https://shiva.dev/categories/development/</link>
55
<description>Development - Category - shiva.dev</description>
66
<generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>[email protected] (Shiva)</managingEditor>
7-
<webMaster>[email protected] (Shiva)</webMaster><lastBuildDate>Tue, 11 Jun 2024 20:02:20 -0500</lastBuildDate><atom:link href="https://shiva.dev/categories/development/" rel="self" type="application/rss+xml" /><item>
7+
<webMaster>[email protected] (Shiva)</webMaster><lastBuildDate>Sun, 07 Jul 2024 13:55:20 -0500</lastBuildDate><atom:link href="https://shiva.dev/categories/development/" rel="self" type="application/rss+xml" /><item>
8+
<title>Top Secret</title>
9+
<link>https://shiva.dev/posts/top_secret/</link>
10+
<pubDate>Sun, 07 Jul 2024 13:55:20 -0500</pubDate>
11+
<author>Shiva</author>
12+
<guid>https://shiva.dev/posts/top_secret/</guid>
13+
<description><![CDATA[Top Secret 1234567890 just kidding ;)]]></description>
14+
</item>
15+
<item>
816
<title>Add Lunr Search to Hugo site</title>
917
<link>https://shiva.dev/posts/lunr_search_for_hugo/</link>
1018
<pubDate>Tue, 11 Jun 2024 20:02:20 -0500</pubDate>

Diff for: public/categories/index.html

+9-7
Original file line numberDiff line numberDiff line change
@@ -83,22 +83,24 @@
8383
<div class="container"><div class="page archive"><h2 class="single-title animate__animated animate__pulse animate__faster">All Categories</h2><div class="categories-card"><div class="card-item">
8484
<div class="card-item-wrapper">
8585
<h3 class="card-item-title">
86-
<a href="/categories/programming/">
87-
<i class="far fa-folder fa-fw" aria-hidden="true"></i>&nbsp;Programming
86+
<a href="/categories/development/">
87+
<i class="far fa-folder fa-fw" aria-hidden="true"></i>&nbsp;Development
8888
</a>
8989
</h3><article class="archive-item">
90-
<a href="/posts/java_string_template/" class="archive-item-link">String Template in Java 21</a>
90+
<a href="/posts/top_secret/" class="archive-item-link">Top Secret</a>
9191
</article><article class="archive-item">
92-
<a href="/posts/calcuate_anual_rate_of_return_using_python/" class="archive-item-link">Calculate Anual Rate Of Return In Python</a>
92+
<a href="/posts/lunr_search_for_hugo/" class="archive-item-link">Add Lunr Search to Hugo site</a>
9393
</article></div>
9494
</div><div class="card-item">
9595
<div class="card-item-wrapper">
9696
<h3 class="card-item-title">
97-
<a href="/categories/development/">
98-
<i class="far fa-folder fa-fw" aria-hidden="true"></i>&nbsp;Development
97+
<a href="/categories/programming/">
98+
<i class="far fa-folder fa-fw" aria-hidden="true"></i>&nbsp;Programming
9999
</a>
100100
</h3><article class="archive-item">
101-
<a href="/posts/lunr_search_for_hugo/" class="archive-item-link">Add Lunr Search to Hugo site</a>
101+
<a href="/posts/java_string_template/" class="archive-item-link">String Template in Java 21</a>
102+
</article><article class="archive-item">
103+
<a href="/posts/calcuate_anual_rate_of_return_using_python/" class="archive-item-link">Calculate Anual Rate Of Return In Python</a>
102104
</article></div>
103105
</div></div></div></div>
104106
</main><footer class="footer">

Diff for: public/categories/index.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<link>https://shiva.dev/categories/</link>
55
<description>Categories - Category - shiva.dev</description>
66
<generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>[email protected] (Shiva)</managingEditor>
7-
<webMaster>[email protected] (Shiva)</webMaster><lastBuildDate>Tue, 11 Jun 2024 20:02:20 -0500</lastBuildDate><atom:link href="https://shiva.dev/categories/" rel="self" type="application/rss+xml" /><item>
7+
<webMaster>[email protected] (Shiva)</webMaster><lastBuildDate>Sun, 07 Jul 2024 13:55:20 -0500</lastBuildDate><atom:link href="https://shiva.dev/categories/" rel="self" type="application/rss+xml" /><item>
88
<title>Development</title>
99
<link>https://shiva.dev/categories/development/</link>
10-
<pubDate>Tue, 11 Jun 2024 20:02:20 -0500</pubDate>
10+
<pubDate>Sun, 07 Jul 2024 13:55:20 -0500</pubDate>
1111
<author>Shiva</author>
1212
<guid>https://shiva.dev/categories/development/</guid>
1313
<description><![CDATA[]]></description>

Diff for: public/index.html

+6
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@
106106
<a href="mailto:[email protected]" title="Email" rel=" me"><i class="fa-regular fa-envelope fa-fw" aria-hidden="true"></i></a>
107107
</div></div>
108108
<article class="single summary" itemscope itemtype="http://schema.org/Article"><h1 class="single-title" itemprop="name headline">
109+
<a href="/posts/top_secret/">Top Secret</a>
110+
</h1><div class="post-meta"><span class="post-author"><a href="https://shiva.dev" title="Author" target="_blank" rel="noopener noreffer author" class="author"><i class="fas fa-user-circle fa-fw" aria-hidden="true"></i>Shiva</a>
111+
</span>&nbsp;<span class="post-publish">published on <time datetime="2024-07-07">2024-07-07</time></span>&nbsp;<span class="post-category">included in <a href="/categories/development/"><i class="far fa-folder fa-fw" aria-hidden="true"></i>Development</a></span></div><div class="content">Top Secret 1234567890 just kidding ;)</div><div class="post-footer">
112+
<a href="/posts/top_secret/">Read More</a><div class="post-tags">
113+
<i class="fas fa-tags fa-fw" aria-hidden="true"></i>&nbsp;<a href="/tags/hugo/">Hugo</a></div></div>
114+
</article><article class="single summary" itemscope itemtype="http://schema.org/Article"><h1 class="single-title" itemprop="name headline">
109115
<a href="/posts/lunr_search_for_hugo/">Add Lunr Search to Hugo site</a>
110116
</h1><div class="post-meta"><span class="post-author"><a href="https://shiva.dev" title="Author" target="_blank" rel="noopener noreffer author" class="author"><i class="fas fa-user-circle fa-fw" aria-hidden="true"></i>Shiva</a>
111117
</span>&nbsp;<span class="post-publish">published on <time datetime="2024-06-11">2024-06-11</time></span>&nbsp;<span class="post-category">included in <a href="/categories/development/"><i class="far fa-folder fa-fw" aria-hidden="true"></i>Development</a></span></div><div class="content">What&rsquo;s covered in this post? Hugo ships with out search, yet I love it. However, I&rsquo;ve managed to integrate lunr search that is supported by the theme Loveit I&rsquo;m using on this website. With that being said, this post will cover how I integrate lurn on my website - for demo, go ahead and search for something on this website :)

Diff for: public/index.xml

+9-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@
44
<link>https://shiva.dev/</link>
55
<description>A tech blog by Shiva Inampudi</description>
66
<generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>[email protected] (Shiva)</managingEditor>
7-
<webMaster>[email protected] (Shiva)</webMaster><lastBuildDate>Tue, 11 Jun 2024 20:02:20 -0500</lastBuildDate>
7+
<webMaster>[email protected] (Shiva)</webMaster><lastBuildDate>Sun, 07 Jul 2024 13:55:20 -0500</lastBuildDate>
88
<atom:link href="https://shiva.dev/index.xml" rel="self" type="application/rss+xml" />
99
<item>
10+
<title>Top Secret</title>
11+
<link>https://shiva.dev/posts/top_secret/</link>
12+
<pubDate>Sun, 07 Jul 2024 13:55:20 -0500</pubDate>
13+
<author>Shiva</author>
14+
<guid>https://shiva.dev/posts/top_secret/</guid>
15+
<description><![CDATA[Top Secret 1234567890 just kidding ;)]]></description>
16+
</item>
17+
<item>
1018
<title>Add Lunr Search to Hugo site</title>
1119
<link>https://shiva.dev/posts/lunr_search_for_hugo/</link>
1220
<pubDate>Tue, 11 Jun 2024 20:02:20 -0500</pubDate>

Diff for: public/posts/calcuate_anual_rate_of_return_using_python/index.html

+18-2
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,25 @@ <h2 class="toc-title">Contents</h2>
103103
<div class="toc-content" id="toc-content-auto"></div>
104104
</div><article class="page single">
105105
<div id="content-container"><h1 class="single-title animate__animated animate__flipInX">Calculate Anual Rate Of Return In Python</h1><div class="post-meta">
106-
106+
<div class="post-meta-line"><span class="post-author"><a href="https://shiva.dev" title="Author" target="_blank" rel="noopener noreffer author" class="author"><i class="fas fa-user-circle fa-fw" aria-hidden="true"></i>Shiva</a>
107+
</span>&nbsp;<span class="post-category">included in <a href="/categories/programming/"><i class="far fa-folder fa-fw" aria-hidden="true"></i>Programming</a></span></div>
108+
<div class="post-meta-line"><i class="far fa-calendar-alt fa-fw" aria-hidden="true"></i>&nbsp;<time datetime="2023-03-04">2023-03-04</time>&nbsp;<i class="fas fa-pencil-alt fa-fw" aria-hidden="true"></i>&nbsp;320 words&nbsp;
109+
<i class="far fa-clock fa-fw" aria-hidden="true"></i>&nbsp;2 minutes&nbsp;</div>
107110
</div><div class="details toc" id="toc-static" data-kept="">
108-
111+
<div class="details-summary toc-title">
112+
<span>Contents</span>
113+
<span><i class="details-icon fas fa-angle-right" aria-hidden="true"></i></span>
114+
</div>
115+
<div class="details-content toc-content" id="toc-content-static"><nav id="TableOfContents">
116+
<ul>
117+
<li><a href="#solution">Solution</a>
118+
<ul>
119+
<li><a href="#doing-with-for-loop">Doing with &lsquo;for&rsquo; loop</a></li>
120+
<li><a href="#doing-with-while-loop">Doing with &lsquo;while&rsquo; loop</a></li>
121+
</ul>
122+
</li>
123+
</ul>
124+
</nav></div>
109125
</div><div class="content" id="content"><p>Hey there! We&rsquo;re going to work on a challenge together where we&rsquo;ll be writing a program called invest.py. The goal of this program is to track the growing amount of an investment over time.</p>
110126
<p>We&rsquo;ll start with an initial deposit, also known as the principal amount. Each year, this amount will increase by a fixed percentage called the annual rate of return.</p>
111127
<p>For instance, if we start with a principal amount of $100 and an annual rate of return of 5%, the first year&rsquo;s increase will be $5. The second year, the increase will be 5% of the new amount, which is $105, resulting in an increase of $5.25.</p>

Diff for: public/posts/index.html

+3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@
8181
<div id="search-dropdown-mobile"></div>
8282
</div><main class="main">
8383
<div class="container"><div class="page archive"><h2 class="single-title animate__animated animate__pulse animate__faster">All Posts</h2><h3 class="group-title">2024</h3><article class="archive-item">
84+
<a href="/posts/top_secret/" class="archive-item-link">Top Secret</a>
85+
<span class="archive-item-date">07-07</span>
86+
</article><article class="archive-item">
8487
<a href="/posts/lunr_search_for_hugo/" class="archive-item-link">Add Lunr Search to Hugo site</a>
8588
<span class="archive-item-date">06-11</span>
8689
</article><article class="archive-item">

Diff for: public/posts/index.xml

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
<description>All Posts | shiva.dev</description>
66
<generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>[email protected] (Shiva)</managingEditor>
77
<webMaster>[email protected] (Shiva)</webMaster><atom:link href="https://shiva.dev/posts/" rel="self" type="application/rss+xml" /><item>
8+
<title>Top Secret</title>
9+
<link>https://shiva.dev/posts/top_secret/</link>
10+
<pubDate>Sun, 07 Jul 2024 13:55:20 -0500</pubDate>
11+
<author>Shiva</author>
12+
<guid>https://shiva.dev/posts/top_secret/</guid>
13+
<description><![CDATA[Top Secret 1234567890 just kidding ;)]]></description>
14+
</item>
15+
<item>
816
<title>Add Lunr Search to Hugo site</title>
917
<link>https://shiva.dev/posts/lunr_search_for_hugo/</link>
1018
<pubDate>Tue, 11 Jun 2024 20:02:20 -0500</pubDate>

Diff for: public/posts/java_string_template/index.html

+18-2
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,25 @@ <h2 class="toc-title">Contents</h2>
103103
<div class="toc-content" id="toc-content-auto"></div>
104104
</div><article class="page single">
105105
<div id="content-container"><h1 class="single-title animate__animated animate__flipInX">String Template in Java 21</h1><div class="post-meta">
106-
106+
<div class="post-meta-line"><span class="post-author"><a href="https://shiva.dev" title="Author" target="_blank" rel="noopener noreffer author" class="author"><i class="fas fa-user-circle fa-fw" aria-hidden="true"></i>Shiva</a>
107+
</span>&nbsp;<span class="post-category">included in <a href="/categories/programming/"><i class="far fa-folder fa-fw" aria-hidden="true"></i>Programming</a></span></div>
108+
<div class="post-meta-line"><i class="far fa-calendar-alt fa-fw" aria-hidden="true"></i>&nbsp;<time datetime="2024-05-22">2024-05-22</time>&nbsp;<i class="fas fa-pencil-alt fa-fw" aria-hidden="true"></i>&nbsp;244 words&nbsp;
109+
<i class="far fa-clock fa-fw" aria-hidden="true"></i>&nbsp;2 minutes&nbsp;</div>
107110
</div><div class="details toc" id="toc-static" data-kept="">
108-
111+
<div class="details-summary toc-title">
112+
<span>Contents</span>
113+
<span><i class="details-icon fas fa-angle-right" aria-hidden="true"></i></span>
114+
</div>
115+
<div class="details-content toc-content" id="toc-content-static"><nav id="TableOfContents">
116+
<ul>
117+
<li>
118+
<ul>
119+
<li><a href="#what-is-string-template">What is String Template?</a></li>
120+
<li><a href="#advantages-of-string-templates">Advantages of String Templates:</a></li>
121+
</ul>
122+
</li>
123+
</ul>
124+
</nav></div>
109125
</div><div class="content" id="content"><h3 id="what-is-string-template">What is String Template?</h3>
110126
<p>String Template is a process of substituting values of variables into placeholders in a string. In the past, we relied on string concatenation to format output for print statements. </p>
111127
<p><code>System.out.println(arr[i] + &quot; &quot; + &quot;From for loop&quot;);</code></p>

Diff for: public/sitemap.xml

+6-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
33
xmlns:xhtml="http://www.w3.org/1999/xhtml"
44
><url>
5+
<loc>https://shiva.dev/categories/</loc><lastmod>2024-07-08T13:53:18-04:00</lastmod></url><url>
6+
<loc>https://shiva.dev/categories/development/</loc><lastmod>2024-07-08T13:53:18-04:00</lastmod></url><url>
7+
<loc>https://shiva.dev/tags/hugo/</loc><lastmod>2024-07-08T13:53:18-04:00</lastmod></url><url>
8+
<loc>https://shiva.dev/</loc><lastmod>2024-07-08T13:53:18-04:00</lastmod></url><url>
9+
<loc>https://shiva.dev/tags/</loc><lastmod>2024-07-08T13:53:18-04:00</lastmod></url><url>
10+
<loc>https://shiva.dev/posts/top_secret/</loc><lastmod>2024-07-08T13:53:18-04:00</lastmod></url><url>
511
<loc>https://shiva.dev/posts/lunr_search_for_hugo/</loc><lastmod>2024-06-23T13:12:21-04:00</lastmod></url><url>
6-
<loc>https://shiva.dev/categories/</loc><lastmod>2024-06-23T13:12:21-04:00</lastmod></url><url>
7-
<loc>https://shiva.dev/categories/development/</loc><lastmod>2024-06-23T13:12:21-04:00</lastmod></url><url>
8-
<loc>https://shiva.dev/tags/hugo/</loc><lastmod>2024-06-23T13:12:21-04:00</lastmod></url><url>
912
<loc>https://shiva.dev/tags/lunr/</loc><lastmod>2024-06-23T13:12:21-04:00</lastmod></url><url>
1013
<loc>https://shiva.dev/tags/search/</loc><lastmod>2024-06-23T13:12:21-04:00</lastmod></url><url>
11-
<loc>https://shiva.dev/</loc><lastmod>2024-06-23T13:12:21-04:00</lastmod></url><url>
12-
<loc>https://shiva.dev/tags/</loc><lastmod>2024-06-23T13:12:21-04:00</lastmod></url><url>
1314
<loc>https://shiva.dev/docs/example-three/</loc><lastmod>2024-06-10T17:46:27-04:00</lastmod></url><url>
1415
<loc>https://shiva.dev/tags/java/</loc><lastmod>2024-06-23T13:12:21-04:00</lastmod></url><url>
1516
<loc>https://shiva.dev/tags/java21/</loc><lastmod>2024-06-23T13:12:21-04:00</lastmod></url><url>

Diff for: public/tags/hugo/index.html

+3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@
8181
<div id="search-dropdown-mobile"></div>
8282
</div><main class="main">
8383
<div class="container"><div class="page archive"><h2 class="single-title animate__animated animate__pulse animate__faster"><i class="fas fa-tag fa-fw" aria-hidden="true"></i>&nbsp;Hugo</h2><h3 class="group-title">2024</h3><article class="archive-item">
84+
<a href="/posts/top_secret/" class="archive-item-link">Top Secret</a>
85+
<span class="archive-item-date">07-07</span>
86+
</article><article class="archive-item">
8487
<a href="/posts/lunr_search_for_hugo/" class="archive-item-link">Add Lunr Search to Hugo site</a>
8588
<span class="archive-item-date">06-11</span>
8689
</article></div></div>

Diff for: public/tags/hugo/index.xml

+9-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@
44
<link>https://shiva.dev/tags/hugo/</link>
55
<description>Hugo - Tag - shiva.dev</description>
66
<generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>[email protected] (Shiva)</managingEditor>
7-
<webMaster>[email protected] (Shiva)</webMaster><lastBuildDate>Tue, 11 Jun 2024 20:02:20 -0500</lastBuildDate><atom:link href="https://shiva.dev/tags/hugo/" rel="self" type="application/rss+xml" /><item>
7+
<webMaster>[email protected] (Shiva)</webMaster><lastBuildDate>Sun, 07 Jul 2024 13:55:20 -0500</lastBuildDate><atom:link href="https://shiva.dev/tags/hugo/" rel="self" type="application/rss+xml" /><item>
8+
<title>Top Secret</title>
9+
<link>https://shiva.dev/posts/top_secret/</link>
10+
<pubDate>Sun, 07 Jul 2024 13:55:20 -0500</pubDate>
11+
<author>Shiva</author>
12+
<guid>https://shiva.dev/posts/top_secret/</guid>
13+
<description><![CDATA[Top Secret 1234567890 just kidding ;)]]></description>
14+
</item>
15+
<item>
816
<title>Add Lunr Search to Hugo site</title>
917
<link>https://shiva.dev/posts/lunr_search_for_hugo/</link>
1018
<pubDate>Tue, 11 Jun 2024 20:02:20 -0500</pubDate>

0 commit comments

Comments
 (0)