all: switch to Hugo PaperMod [staging]
This commit is contained in:
parent
3a326a4d0f
commit
c36f173f22
49
config.toml
49
config.toml
|
@ -1,51 +1,68 @@
|
|||
baseurl = "https://msfjarvis.dev/"
|
||||
languageCode = "en-us"
|
||||
title = "Harsh Shandilya"
|
||||
theme = ["github.com/msfjarvis/hugo-social-metadata", "github.com/knadh/hugo-ink"]
|
||||
pygmentsstyle = "tango"
|
||||
theme = ["github.com/msfjarvis/hugo-social-metadata", "github.com/adityatelange/hugo-PaperMod"]
|
||||
pygmentsstyle = "dracula"
|
||||
pygmentscodefences = true
|
||||
pygmentscodefencesguesssyntax = true
|
||||
author = "Harsh Shandilya"
|
||||
ignoreErrors = ["error-remote-getjson"]
|
||||
paginate = 5
|
||||
enableInlineShortcodes = true
|
||||
enableRobotsTXT = true
|
||||
enableEmoji = true
|
||||
|
||||
[module]
|
||||
[[module.imports]]
|
||||
path = "github.com/msfjarvis/hugo-social-metadata"
|
||||
[[module.imports]]
|
||||
path = "github.com/knadh/hugo-ink"
|
||||
path = "github.com/adityatelange/hugo-PaperMod"
|
||||
|
||||
[params]
|
||||
description = "Android developer, Kotlin fanatic and wannabe Rustacean"
|
||||
subtitle = "Android developer, Kotlin fanatic and wannabe Rustacean"
|
||||
keywords = "homepage, blog, android, kotlin, rust"
|
||||
keywords = [
|
||||
"homepage",
|
||||
"blog",
|
||||
"android",
|
||||
"kotlin",
|
||||
"rust",
|
||||
]
|
||||
# Set default theme and remove toggle
|
||||
defaultTheme = "dark"
|
||||
disableThemeToggle = true
|
||||
# Set parameters for social metadata
|
||||
twitterUsername = "@msfjarvis"
|
||||
socialImage = "android-chrome-512x512.webp"
|
||||
mainSections = ["posts"]
|
||||
mode = "light"
|
||||
# Turn on Utterances-backed comments
|
||||
comments = true
|
||||
utterancesRepo = "msfjarvis/msfjarvis.dev"
|
||||
utterancesTheme = "github-light"
|
||||
# Configure the theme
|
||||
ShowReadingTime = true
|
||||
ShowFullTextinRSS = true
|
||||
ShowCodeCopyButtons = true
|
||||
ShowBreadCrumbs = true
|
||||
disableSpecial1stPost = true
|
||||
ShowPostNavLinks = true
|
||||
ShowToc = true
|
||||
# Required for search engine indexers
|
||||
env = "production"
|
||||
|
||||
[[menu.main]]
|
||||
identifier = "about"
|
||||
name = "about"
|
||||
title = "About"
|
||||
name = "About"
|
||||
url = "/about"
|
||||
|
||||
[[menu.main]]
|
||||
identifier = "blog"
|
||||
name = "blog"
|
||||
title = "Blog"
|
||||
name = "Blog"
|
||||
url = "/posts"
|
||||
|
||||
[[menu.main]]
|
||||
identifier = "uses"
|
||||
name = "uses"
|
||||
title = "Uses"
|
||||
name = "Uses"
|
||||
url = "/uses"
|
||||
|
||||
[[params.social]]
|
||||
name = "Github"
|
||||
icon = "github"
|
||||
url = "https://github.com/msfjarvis"
|
||||
|
||||
[[params.social]]
|
||||
|
|
|
@ -6,6 +6,8 @@ aliases = [
|
|||
"/about",
|
||||
"/contact",
|
||||
]
|
||||
ShowReadingTime = false
|
||||
ShowToc = false
|
||||
+++
|
||||
|
||||
I am 21 year old Android developer with more than 4 years of experience building apps and library of various sizes. I love working with [Kotlin](https://github.com/msfjarvis?utf8=%E2%9C%93&tab=repositories&q=&type=&language=kotlin) and have gotten familiar with [Rust](https://github.com/msfjarvis?utf8=%E2%9C%93&tab=repositories&q=&type=&language=rust) as well. Some of my work in open-source is documented on the [projects page](/projects), and the rest of them can be found on my [GitHub](https://github.com/msfjarvis) profile. The latest copy of my resume can be found [here](/resume.pdf).
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
title = "Android Password Store Privacy Policy"
|
||||
id = "aps-privacy"
|
||||
type = "page"
|
||||
ShowReadingTime = false
|
||||
ShowToc = false
|
||||
+++
|
||||
|
||||
## Privacy Policy
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
+++
|
||||
layout = "standalone"
|
||||
title = "Uses"
|
||||
type = "page"
|
||||
ShowReadingTime = false
|
||||
ShowToc = false
|
||||
+++
|
||||
|
||||
## Editor + Terminal
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
title = "Viscerion Privacy Policy"
|
||||
id = "viscerion-privacy"
|
||||
type = "page"
|
||||
ShowReadingTime = false
|
||||
ShowToc = false
|
||||
+++
|
||||
|
||||
## Privacy Policy
|
||||
|
|
2
go.mod
2
go.mod
|
@ -3,6 +3,6 @@ module github.com/msfjarvis/msfjarvis.dev
|
|||
go 1.16
|
||||
|
||||
require (
|
||||
github.com/knadh/hugo-ink v1.0.1-0.20220109072942-d3dad55ecb77 // indirect
|
||||
github.com/adityatelange/hugo-PaperMod v0.0.0-20220215143121-43c810c3e20b // indirect
|
||||
github.com/msfjarvis/hugo-social-metadata v1.0.0 // indirect
|
||||
)
|
||||
|
|
4
go.sum
4
go.sum
|
@ -1,4 +1,4 @@
|
|||
github.com/knadh/hugo-ink v1.0.1-0.20220109072942-d3dad55ecb77 h1:m38vQPPtPf7c/o4uWnFGV3WDKxaPuS284Z/rXlKShNY=
|
||||
github.com/knadh/hugo-ink v1.0.1-0.20220109072942-d3dad55ecb77/go.mod h1:sUbc+cWg9QmDA9NjJYewZ8ooDE/bgCTgtO81Z+0DbTY=
|
||||
github.com/adityatelange/hugo-PaperMod v0.0.0-20220215143121-43c810c3e20b h1:Nvugtfla//gBAQ8PIZ8Pt+Rsjm67GsUiegjzJ3mc6jo=
|
||||
github.com/adityatelange/hugo-PaperMod v0.0.0-20220215143121-43c810c3e20b/go.mod h1:HCHxNMKYdGafUYjVV3ICiAqznZK2yH0iI53jqcDFDdQ=
|
||||
github.com/msfjarvis/hugo-social-metadata v1.0.0 h1:mfLnus8iznPGiyFkJC93eCWr1PrdiNyv2BSONX1ZQVg=
|
||||
github.com/msfjarvis/hugo-social-metadata v1.0.0/go.mod h1:VfkrQTa9Gvdja58swLlBZz2/7ZEoj5nk9xt0pJAhfVo=
|
||||
|
|
|
@ -1,46 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{ partial "header.html" . }}
|
||||
<body>
|
||||
<div class="container wrapper">
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<div class="post">
|
||||
<div class="post-header">
|
||||
{{ if ne .Date.Year 1 }}
|
||||
<div class="meta">
|
||||
<div class="date">
|
||||
<span class="day">{{ dateFormat "02" .Date }}</span>
|
||||
<span class="rest">{{ if $.Site.Data.month }}{{ index $.Site.Data.month (printf "%d" .Date.Month) }} {{ .Date.Year }}{{ else }}{{ dateFormat "Jan 2006" .Date }}{{ end }}</span>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="matter">
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="markdown">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
<div class="tags">
|
||||
{{ if ne .Type "page" }}
|
||||
{{ if gt .Params.tags 0 }}
|
||||
<ul class="flat">
|
||||
{{ range .Params.tags }}
|
||||
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{- if and (isset .Site.Params "utterancesrepo") (and (not (eq .Type "page")) (and (not .Site.IsServer) (not .Site.BuildDrafts))) -}}
|
||||
{{ partial "utterances.html" . }}
|
||||
{{- end -}}
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
|
@ -1,3 +0,0 @@
|
|||
<div id="commento"></div>
|
||||
<script defer src="{{ .Site.Params.CommentoURL }}/js/commento.js"></script>
|
||||
<noscript>Please enable JavaScript to load the comments.</noscript>
|
|
@ -1,3 +1,4 @@
|
|||
{{- if and (isset .Site.Params "utterancesrepo") (and (not (eq .Type "page")) (and (not .Site.IsServer) (not .Site.BuildDrafts))) -}}
|
||||
<script src="https://utteranc.es/client.js"
|
||||
repo="{{ .Site.Params.UtterancesRepo }}"
|
||||
issue-term="pathname"
|
||||
|
@ -5,3 +6,4 @@
|
|||
crossorigin="anonymous"
|
||||
async>
|
||||
</script>
|
||||
{{- end -}}
|
|
@ -0,0 +1 @@
|
|||
{{ partial "social_metadata.html" . }}
|
|
@ -1,10 +0,0 @@
|
|||
<div class="footer wrapper">
|
||||
<nav class="nav">
|
||||
<div>{{ dateFormat "2006" now }} {{ with .Site.Copyright }} {{ . | safeHTML }} | {{ end }} <a href="https://github.com/knadh/hugo-ink">Ink</a> theme on <a href="https://gohugo.io">Hugo</a></div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
{{ partial "simple_analytics.html" . }}
|
||||
{{- with .Site.Params.Social -}}
|
||||
<script>feather.replace()</script>
|
||||
{{- end -}}
|
|
@ -1,4 +0,0 @@
|
|||
<p style="margin: 1.5em 0 0; font-style: italic">
|
||||
You can sponsor me through GitHub to support this blog, my work on <a href="https://msfjarvis.dev/aps" target="_blank" rel="noopener">Password Store</a> and all my other open source projects.
|
||||
</p>
|
||||
<iframe src="https://github.com/sponsors/msfjarvis/card" title="Sponsor msfjarvis" height="225" width="100%" style="border: 0; margin: 1em 0 0"></iframe>
|
|
@ -6,7 +6,7 @@ const GITHUB_URL = `https://github.com`;
|
|||
const MY_GITHUB = `${GITHUB_URL}/${GITHUB_USERNAME}`;
|
||||
const APS_GITHUB_URL = `https://github.com/${APS_SLUG}/${APS_SLUG}`;
|
||||
const CSP_POLICY =
|
||||
"base-uri 'self'; connect-src 'self' insights.msfjarvis.dev utteranc.es; default-src 'self'; frame-ancestors 'none'; frame-src asciinema.org github.com platform.twitter.com utteranc.es; font-src 'self' fonts.gstatic.com; img-src 'self' data: gfycat.com imgur.com *.imgur.com insights.msfjarvis.dev syndication.twitter.com; object-src 'none'; script-src 'self' asciinema.org platform.twitter.com utteranc.es insights.msfjarvis.dev 'sha256-T5xaPlQfl1etSoFCqKdmLNHpv3NOQn2KQJoj6Pduxg4='; style-src 'self' fonts.googleapis.com 'unsafe-inline';";
|
||||
"base-uri 'self'; connect-src 'self' insights.msfjarvis.dev utteranc.es; default-src 'self'; frame-ancestors 'none'; frame-src asciinema.org github.com platform.twitter.com utteranc.es; font-src 'self' fonts.gstatic.com; img-src 'self' data: gfycat.com imgur.com *.imgur.com insights.msfjarvis.dev syndication.twitter.com; object-src 'none'; script-src 'self' asciinema.org platform.twitter.com utteranc.es insights.msfjarvis.dev 'sha256-/nV291Na1MuGRmAF5BCX/72e5aDh6O5wnlvisox+3Ts=' 'sha256-a72MzDH/lZnJJFjeA4unJdesRzjwr3TeZVNYucgNkJk=' 'sha256-X5avg43RTxt2cSum+E3xICbowEMaOBxeBiNh05CXDTY=' 'sha256-4O+m6kk1wMpldFXFB8ldHkY/86U5xWfKtcSWERnGmhA='; style-src 'self' fonts.googleapis.com 'unsafe-inline';";
|
||||
const PERMISSIONS_POLICY =
|
||||
"accelerometer=(), autoplay=(), camera=(), encrypted-media=(), geolocation=(), gyroscope=(), interest-cohort=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), sync-xhr=(), usb=()";
|
||||
|
||||
|
|
Loading…
Reference in New Issue