Skip to content

Commit b603def

Browse files
committed
Updated to latest version of Hugo and fixed depricated
1 parent 65d6f25 commit b603def

File tree

42 files changed

+741
-598
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+741
-598
lines changed

config.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ hasCJKLanguage = false
2424

2525
# default amount of posts in each pages
2626
# 默认每页列表显示的文章数目
27-
paginate = 12
27+
pagination.pagerSize = 12
2828
# google analytics code [UA-XXXXXXXX-X]
2929
# 谷歌分析代号 [UA-XXXXXXXX-X]
3030
googleAnalytics = ""
@@ -43,6 +43,9 @@ gitRepo = "https://github.com/lazydeveloper/lazydeveloper.github.io"
4343
# ignore some build errors
4444
ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"]
4545

46+
# suppress specific warnings
47+
ignoreLogs = ['warning-goldmark-raw-html']
48+
4649
# Author config
4750
[author]
4851
name = "Shiva"
@@ -68,4 +71,4 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"]
6871

6972

7073

71-
74+

public/404.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
3+
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<meta name="robots" content="noodp" />
77
<title>404 Page not found - shiva.dev</title>
8-
<script src="https://cdnjs.cloudflare.com/ajax/libs/lunr.js/2.3.9/lunr.min.js"></script><meta name="Description" content="A tech blog by Shiva Inampudi"><meta property="og:url" content="https://shiva.dev/404.html">
8+
<script src="https://cdnjs.cloudflare.com/ajax/libs/lunr.js/2.3.9/lunr.min.js"></script><meta name="Description" content="A tech blog by Shiva Inampudi"><meta property="og:url" content="http://localhost:1313/404.html">
99
<meta property="og:site_name" content="shiva.dev">
1010
<meta property="og:title" content="404 Page not found">
1111
<meta property="og:description" content="A tech blog by Shiva Inampudi">
@@ -15,12 +15,11 @@
1515
<meta name="twitter:card" content="summary">
1616
<meta name="twitter:title" content="404 Page not found">
1717
<meta name="twitter:description" content="A tech blog by Shiva Inampudi">
18-
<meta name="twitter:site" content="@shiva__dev">
19-
<meta name="application-name" content="Shiva&#39;s Tech Blog">
20-
<meta name="apple-mobile-web-app-title" content="Shiva&#39;s Tech Blog"><meta name="theme-color" content="#ffffff"><meta name="msapplication-TileColor" content="#da532c"><link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
18+
<meta name="application-name" content="A tech blog by Shiva Inampudi">
19+
<meta name="apple-mobile-web-app-title" content="A tech blog by Shiva Inampudi"><meta name="theme-color" content="#ffffff"><meta name="msapplication-TileColor" content="#da532c"><link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
2120
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
2221
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"><link rel="manifest" href="/site.webmanifest"><link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap" rel="stylesheet">
23-
<link href="https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/normalize[email protected]/normalize.min.css"><link rel="stylesheet" href="/css/style.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.1/css/all.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate[email protected]/animate.min.css"></head>
22+
<link href="https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet"><link rel="stylesheet" href="/lib/normalize/normalize.min.css"><link rel="stylesheet" href="/css/style.min.css"><link rel="stylesheet" href="/lib/fontawesome-free/all.min.css"><link rel="stylesheet" href="/lib/animate/animate.min.css"></head>
2423
<body data-header-desktop="fixed" data-header-mobile="auto"><script type="text/javascript">(window.localStorage && localStorage.getItem('theme') ? localStorage.getItem('theme') === 'dark' : ('auto' === 'auto' ? window.matchMedia('(prefers-color-scheme: dark)').matches : 'auto' === 'dark')) && document.body.setAttribute('theme', 'dark');</script>
2524

2625
<div id="mask"></div><div class="wrapper"><header class="desktop" id="header-desktop">
@@ -95,8 +94,8 @@ <h1 id="error-emoji"></h1>
9594
})();
9695
</script></div>
9796
</main><footer class="footer">
98-
<div class="footer-container"><div class="footer-line">Powered by <a href="https://gohugo.io/" target="_blank" rel="noopener noreffer" title="Hugo 0.129.0">Hugo</a> | Theme - <a href="https://github.com/dillonzq/LoveIt" target="_blank" rel="noopener noreffer" title="LoveIt 0.2.10"><i class="far fa-kiss-wink-heart fa-fw" aria-hidden="true"></i> LoveIt</a>
99-
</div><div class="footer-line" itemscope itemtype="http://schema.org/CreativeWork"><i class="far fa-copyright fa-fw" aria-hidden="true"></i><span itemprop="copyrightYear">2019 - 2025</span><span class="author" itemprop="copyrightHolder">&nbsp;<a href="https://shiva.dev" target="_blank">Shiva</a></span></div>
97+
<div class="footer-container"><div class="footer-line">Powered by <a href="https://gohugo.io/" target="_blank" rel="noopener noreffer" title="Hugo 0.146.2">Hugo</a> | Theme - <a href="https://github.com/dillonzq/LoveIt" target="_blank" rel="noopener noreffer" title="LoveIt 0.2.10"><i class="far fa-kiss-wink-heart fa-fw" aria-hidden="true"></i> LoveIt</a>
98+
</div><div class="footer-line" itemscope itemtype="http://schema.org/CreativeWork"><i class="far fa-copyright fa-fw" aria-hidden="true"></i><span itemprop="copyrightYear">2019 - 2025</span><span class="author" itemprop="copyrightHolder">&nbsp;<a href="/" target="_blank"></a></span></div>
10099
</div>
101100
</footer></div>
102101

@@ -105,7 +104,7 @@ <h1 id="error-emoji"></h1>
105104
</a><a href="#" id="view-comments" class="fixed-button" title="View Comments">
106105
<i class="fas fa-comment fa-fw" aria-hidden="true"></i>
107106
</a>
108-
</div><script type="text/javascript" src="https://cdn.jsdelivr.net/npm/autocomplete[email protected]/dist/autocomplete.min.js"></script><script type="text/javascript" src="https://cdn.jsdelivr.net/npm/lunr@2.3.9/lunr.min.js"></script><script type="text/javascript" src="https://cdn.jsdelivr.net/npm/lazysizes@5.3.1/lazysizes.min.js"></script><script type="text/javascript" src="https://cdn.jsdelivr.net/npm/clipboard@2.0.11/dist/clipboard.min.js"></script><script type="text/javascript" src="https://cdn.jsdelivr.net/npm/sharer[email protected]/sharer.min.js"></script><script type="text/javascript">window.config={"code":{"copyTitle":"Copy to clipboard","maxShownLines":50},"search":{"highlightTag":"em","lunrIndexURL":"/index.json","maxResultLength":10,"noResultsFound":"No results found","snippetLength":30,"type":"lunr"}};</script><script type="text/javascript" src="/js/theme.min.js"></script></body>
107+
</div><script type="text/javascript" src="/lib/autocomplete/autocomplete.min.js"></script><script type="text/javascript" src="/lib/lunr/lunr.min.js"></script><script type="text/javascript" src="/lib/lazysizes/lazysizes.min.js"></script><script type="text/javascript" src="/lib/clipboard/clipboard.min.js"></script><script type="text/javascript" src="/lib/sharer/sharer.min.js"></script><script type="text/javascript">window.config={"code":{"copyTitle":"Copy to clipboard","maxShownLines":50},"search":{"highlightTag":"em","lunrIndexURL":"/index.json","maxResultLength":10,"noResultsFound":"No results found","snippetLength":30,"type":"lunr"}};</script><script type="text/javascript" src="/js/theme.min.js"></script></body>
109108

110109

111110
<script>
Lines changed: 46 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,47 @@
1-
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
2-
<channel>
3-
<title>Development - Category - shiva.dev</title>
4-
<link>https://shiva.dev/categories/development/</link>
5-
<description>Development - Category - shiva.dev</description>
6-
<generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>[email protected] (Shiva)</managingEditor>
7-
<webMaster>[email protected] (Shiva)</webMaster><lastBuildDate>Wed, 31 Jul 2024 13:55:20 -0500</lastBuildDate><atom:link href="https://shiva.dev/categories/development/" rel="self" type="application/rss+xml" /><item>
8-
<title>Bind Ctrl &#43; HJKL to arrow keys on a Mac Machine</title>
9-
<link>https://shiva.dev/posts/bind_ctrl_&#43;&#43;hjkl_to_arrow_keys_on_a_mac/</link>
10-
<pubDate>Wed, 31 Jul 2024 13:55:20 -0500</pubDate>
11-
<author>Shiva</author>
12-
<guid>https://shiva.dev/posts/bind_ctrl_&#43;&#43;hjkl_to_arrow_keys_on_a_mac/</guid>
13-
<description><![CDATA[What this post covers? So instead of reaching to arrow keys, you can just use h (as left arrow), j (as down arrow) k (as up arrow) and l (as right arrow) by hoding ctrl key.
14-
Before we start First things first, we need to install a free tool called Hammerspoon. This tool will allow us to configure the key bindings.
15-
Keyboard Settings on Mac Navigate to System Settings &gt; Keyboard &gt; Keyboard Shortcut &gt; Modifier Keys (left pane).]]></description>
16-
</item>
17-
<item>
18-
<title>Adding Password Protection To A Hugo Post</title>
19-
<link>https://shiva.dev/posts/adding_password_protection_to_a_hugo_post/</link>
20-
<pubDate>Sun, 07 Jul 2024 13:55:20 -0500</pubDate>
21-
<author>Shiva</author>
22-
<guid>https://shiva.dev/posts/adding_password_protection_to_a_hugo_post/</guid>
23-
<description><![CDATA[In this post, I&rsquo;ll show you the simplest way to protect a Hugo page with a password by using front matter and adding a new parameter called &ldquo;password.&rdquo; This allows you to set a unique password for each post.
24-
proceed with caution This method lacks complete security. Anyone with basic computer knowledge can access your post or the repository and view the passwords. Therefore, it&rsquo;s advisable to avoid sharing sensitive information using this approach.]]></description>
25-
</item>
26-
<item>
27-
<title>Top Secret</title>
28-
<link>https://shiva.dev/posts/password/</link>
29-
<pubDate>Sun, 07 Jul 2024 13:55:20 -0500</pubDate>
30-
<author>Shiva</author>
31-
<guid>https://shiva.dev/posts/password/</guid>
32-
<description><![CDATA[Top Secret 1234567890 just kidding ;)]]></description>
33-
</item>
34-
<item>
35-
<title>Top Secret</title>
36-
<link>https://shiva.dev/posts/top_secret/</link>
37-
<pubDate>Sun, 07 Jul 2024 13:55:20 -0500</pubDate>
38-
<author>Shiva</author>
39-
<guid>https://shiva.dev/posts/top_secret/</guid>
40-
<description><![CDATA[Top Secret 1234567890 just kidding ;)]]></description>
41-
</item>
42-
<item>
43-
<title>Add Lunr Search to Hugo site</title>
44-
<link>https://shiva.dev/posts/lunr_search_for_hugo/</link>
45-
<pubDate>Tue, 11 Jun 2024 20:02:20 -0500</pubDate>
46-
<author>Shiva</author>
47-
<guid>https://shiva.dev/posts/lunr_search_for_hugo/</guid>
48-
<description><![CDATA[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 :)
49-
Install or update! Make sure you update or install before we start.]]></description>
50-
</item>
51-
</channel>
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
2+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3+
<channel>
4+
<title>Development on shiva.dev</title>
5+
<link>http://localhost:1313/categories/development/</link>
6+
<description>Recent content in Development on shiva.dev</description>
7+
<generator>Hugo</generator>
8+
<language>en</language>
9+
<lastBuildDate>Thu, 01 Aug 2024 21:45:43 -0400</lastBuildDate>
10+
<atom:link href="http://localhost:1313/categories/development/index.xml" rel="self" type="application/rss+xml" />
11+
<item>
12+
<title>Bind Ctrl &#43; HJKL to arrow keys on a Mac Machine</title>
13+
<link>http://localhost:1313/posts/bind_ctrl_&#43;&#43;hjkl_to_arrow_keys_on_a_mac/</link>
14+
<pubDate>Wed, 31 Jul 2024 13:55:20 -0500</pubDate>
15+
<guid>http://localhost:1313/posts/bind_ctrl_&#43;&#43;hjkl_to_arrow_keys_on_a_mac/</guid>
16+
<description>&lt;h3 id=&#34;what-this-post-covers&#34;&gt;What this post covers?&lt;/h3&gt;&#xA;&lt;p&gt;So instead of reaching to arrow keys, you can just use h (as left arrow), j (as down arrow) k (as up arrow) and l (as right arrow) by hoding ctrl key.&lt;/p&gt;&#xA;&lt;h3 id=&#34;before-we-start&#34;&gt;Before we start&lt;/h3&gt;&#xA;&lt;p&gt;First things first, we need to install a free tool called Hammerspoon. This tool will allow us to configure the key bindings.&lt;/p&gt;&#xA;&lt;h2 id=&#34;keyboard-settings-on-mac&#34;&gt;Keyboard Settings on Mac&lt;/h2&gt;&#xA;&lt;p&gt;Navigate to System Settings &amp;gt; Keyboard &amp;gt; Keyboard Shortcut &amp;gt; Modifier Keys (left pane). Select your keyboard, and for the Caps Lock key, choose Control from the drop-down menu.&lt;/p&gt;</description>
17+
</item>
18+
<item>
19+
<title>Adding Password Protection To A Hugo Post</title>
20+
<link>http://localhost:1313/posts/adding_password_protection_to_a_hugo_post/</link>
21+
<pubDate>Sun, 07 Jul 2024 13:55:20 -0500</pubDate>
22+
<guid>http://localhost:1313/posts/adding_password_protection_to_a_hugo_post/</guid>
23+
<description>&lt;p&gt;In this post, I&amp;rsquo;ll show you the simplest way to protect a Hugo page with a password by using front matter and adding a new parameter called &amp;ldquo;password.&amp;rdquo; This allows you to set a unique password for each post.&lt;/p&gt;&#xA;&lt;div class=&#34;details admonition warning open&#34;&gt;&#xA; &lt;div class=&#34;details-summary admonition-title&#34;&gt;&#xA; &lt;i class=&#34;icon fas fa-exclamation-triangle fa-fw&#34; aria-hidden=&#34;true&#34;&gt;&lt;/i&gt;proceed with caution&lt;i class=&#34;details-icon fas fa-angle-right fa-fw&#34; aria-hidden=&#34;true&#34;&gt;&lt;/i&gt;&#xA; &lt;/div&gt;&#xA; &lt;div class=&#34;details-content&#34;&gt;&#xA; &lt;div class=&#34;admonition-content&#34;&gt;This method lacks complete security. Anyone with basic computer knowledge can access your post or the repository and view the passwords. Therefore, it&amp;rsquo;s advisable to avoid sharing sensitive information using this approach. For full password protection, consider using GitHub secrets or variables instead of passwords, though this topic is not covered in this post.&lt;/div&gt;&#xA; &lt;/div&gt;&#xA; &lt;/div&gt;&#xA;&lt;div class=&#34;details admonition success&#34;&gt;&#xA; &lt;div class=&#34;details-summary admonition-title&#34;&gt;&#xA; &lt;i class=&#34;icon fas fa-check-circle fa-fw&#34; aria-hidden=&#34;true&#34;&gt;&lt;/i&gt;What this post cover&lt;i class=&#34;details-icon fas fa-angle-right fa-fw&#34; aria-hidden=&#34;true&#34;&gt;&lt;/i&gt;&#xA; &lt;/div&gt;&#xA; &lt;div class=&#34;details-content&#34;&gt;&#xA; &lt;div class=&#34;admonition-content&#34;&gt;&lt;ol&gt;&#xA;&lt;li&gt;Easy method to assign a password to any Hugo post (not 100% secured)&lt;/li&gt;&#xA;&lt;li&gt;Users will be prompted to enter a password to access the post.&lt;/li&gt;&#xA;&lt;li&gt;Unique password for each post&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/div&gt;&#xA; &lt;/div&gt;&#xA; &lt;/div&gt;&#xA;&lt;p&gt;Before we proceed, open the post &lt;a href=&#34;http://localhost:1313/posts/top_secret/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreffer&#34;&gt;Top Secret&lt;/a&gt;&#xA; that is protection with a password. When prompted, enter the password &lt;code&gt;1234&lt;/code&gt; to read the top secret.&lt;/p&gt;</description>
24+
</item>
25+
<item>
26+
<title>Top Secret</title>
27+
<link>http://localhost:1313/posts/password/</link>
28+
<pubDate>Sun, 07 Jul 2024 13:55:20 -0500</pubDate>
29+
<guid>http://localhost:1313/posts/password/</guid>
30+
<description>&lt;div class=&#34;details admonition danger open&#34;&gt;&#xA; &lt;div class=&#34;details-summary admonition-title&#34;&gt;&#xA; &lt;i class=&#34;icon fas fa-skull-crossbones fa-fw&#34; aria-hidden=&#34;true&#34;&gt;&lt;/i&gt;Top Secret&lt;i class=&#34;details-icon fas fa-angle-right fa-fw&#34; aria-hidden=&#34;true&#34;&gt;&lt;/i&gt;&#xA; &lt;/div&gt;&#xA; &lt;div class=&#34;details-content&#34;&gt;&#xA; &lt;div class=&#34;admonition-content&#34;&gt;1234567890&lt;/div&gt;&#xA; &lt;/div&gt;&#xA; &lt;/div&gt;&#xA;&lt;p&gt;just kidding ;)&lt;/p&gt;</description>
31+
</item>
32+
<item>
33+
<title>Top Secret</title>
34+
<link>http://localhost:1313/posts/top_secret/</link>
35+
<pubDate>Sun, 07 Jul 2024 13:55:20 -0500</pubDate>
36+
<guid>http://localhost:1313/posts/top_secret/</guid>
37+
<description>&lt;div class=&#34;details admonition danger open&#34;&gt;&#xA; &lt;div class=&#34;details-summary admonition-title&#34;&gt;&#xA; &lt;i class=&#34;icon fas fa-skull-crossbones fa-fw&#34; aria-hidden=&#34;true&#34;&gt;&lt;/i&gt;Top Secret&lt;i class=&#34;details-icon fas fa-angle-right fa-fw&#34; aria-hidden=&#34;true&#34;&gt;&lt;/i&gt;&#xA; &lt;/div&gt;&#xA; &lt;div class=&#34;details-content&#34;&gt;&#xA; &lt;div class=&#34;admonition-content&#34;&gt;1234567890&lt;/div&gt;&#xA; &lt;/div&gt;&#xA; &lt;/div&gt;&#xA;&lt;p&gt;just kidding ;)&lt;/p&gt;</description>
38+
</item>
39+
<item>
40+
<title>Add Lunr Search to Hugo site</title>
41+
<link>http://localhost:1313/posts/lunr_search_for_hugo/</link>
42+
<pubDate>Tue, 11 Jun 2024 20:02:20 -0500</pubDate>
43+
<guid>http://localhost:1313/posts/lunr_search_for_hugo/</guid>
44+
<description>&lt;h3 id=&#34;whats-covered-in-this-post&#34;&gt;What&amp;rsquo;s covered in this post?&lt;/h3&gt;&#xA;&lt;p&gt;Hugo ships with out search, yet I love it. However, I&amp;rsquo;ve managed to integrate lunr search that is supported by the theme &lt;a href=&#34;https://hugoloveit.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreffer&#34;&gt;Loveit&lt;/a&gt;&#xA; I&amp;rsquo;m using on this website. With that being said, this post will cover how I integrate &lt;code&gt;lurn&lt;/code&gt; on &lt;a href=&#34;https://shiva.dev/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreffer&#34;&gt;my website&lt;/a&gt;&#xA; - for demo, go ahead and search for something on this website :)&lt;/p&gt;&#xA;&lt;h3 id=&#34;install-or-update&#34;&gt;Install or update!&lt;/h3&gt;&#xA;&lt;p&gt;Make sure you update or install before we start.&lt;/p&gt;</description>
45+
</item>
46+
</channel>
5247
</rss>

0 commit comments

Comments
 (0)