all: switch to ezhil

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-12-17 15:10:29 +05:30
parent 2a3cd52758
commit 93bfcb8470
No known key found for this signature in database
GPG Key ID: 366D7BBAD1031E80
14 changed files with 35 additions and 212 deletions

5
archetypes/default.md Normal file
View File

@ -0,0 +1,5 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

View File

@ -1,17 +1,22 @@
baseurl = "https://msfjarvis.dev/"
languageCode = "en-us"
title = "Harsh Shandilya"
theme = ["hugo-social-metadata", "codex"]
pygmentsUseClasses = true
theme = ["hugo-social-metadata", "ezhil"]
pygmentsstyle = "tango"
pygmentscodefences = true
pygmentscodefencesguesssyntax = true
author = "Harsh Shandilya"
ignoreErrors = ["error-remote-getjson"]
[params]
description = "Android developer, Kotlin fanatic and wannabe Rustacean"
subtitle = "Android developer, Kotlin fanatic and wannabe Rustacean"
keywords = "homepage, blog, android, kotlin, rust"
twitterUsername = "@msf_jarvis"
socialImage = "android-chrome-512x512.webp"
contentTypeName = "posts"
mainSections = ["posts"]
mode = "light"
featherIconsCDN = true
[[menu.main]]
identifier = "about"
@ -36,3 +41,17 @@ ignoreErrors = ["error-remote-getjson"]
name = "projects"
title = "Projects"
url = "/projects"
[[params.social]]
name = "Github"
icon = "github"
url = "https://github.com/msfjarvis"
[[params.social]]
name = "Twitter"
icon = "twitter"
url = "https://twitter.com/msfjarvis"
# Enable tags.
[taxonomies]
tag = "tags"

View File

@ -1,5 +0,0 @@
---
heading: "Hi, I'm Harsh"
subheading: "Android developer, Kotlin fanatic and wannabe Rustacean"
handle: "msfjarvis"
---

View File

@ -1,12 +1,12 @@
+++
title = "About Me"
id = "about"
type = "standalone"
layout = "standalone"
type = "page"
aliases = [
"/about",
"/contact",
]
date = "2020-12-05"
+++
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).

View File

@ -1,8 +1,7 @@
+++
title = "Android Password Store Privacy Policy"
id = "aps-privacy"
type = "standalone"
layout = "standalone"
type = "page"
+++
## Privacy Policy

View File

@ -1,8 +1,8 @@
+++
title = "Projects"
id = "projects"
type = "standalone"
layout = "standalone"
type = "page"
date = "2020-11-21"
+++
Over the years I have worked on and contributed to various projects in the Android community. My personal projects can be found on [GitHub](https://github.com/msfjarvis), some of the prominent ones are:

View File

@ -1,8 +1,8 @@
+++
layout = "standalone"
title = "Uses"
type = "standalone"
type = "page"
date = "2020-10-31"
+++
## Editor + Terminal

View File

@ -1,8 +1,7 @@
+++
title = "Viscerion Privacy Policy"
id = "viscerion-privacy"
type = "standalone"
layout = "standalone"
type = "page"
+++
## Privacy Policy

View File

@ -1 +0,0 @@
<a class="link" href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>

View File

@ -1,62 +0,0 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
<meta charset="UTF-8">
<meta name="language" content="en">
<meta name="description" content="{{ if .IsHome}}{{ .Site.Params.Description }}{{ else }}{{.Page.Params.Description}}{{ end }}">
<meta name="keywords" content="{{ delimit .Keywords " , " }}">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Twitter -->
{{ partial "social_metadata.html" . }}
{{ partial "favicon.html" }}
<!-- Styles -->
{{ block "styles" . }} {{ end }} <!-- Get "style_opts" variable from "styles" block -->
{{ $base_styles_opts := .Scratch.Get "style_opts" | default (dict "src" "scss/pages/about.scss" "dest" "css/about.css") }}
{{ $custom_styles_opts := (dict "src" "scss/custom.scss" "dest" "css/custom.css") }}
{{ $current_page := . }}
{{ range (slice $base_styles_opts $custom_styles_opts) }}
{{ $style := resources.Get .src | resources.ExecuteAsTemplate .dest $current_page | toCSS | minify | fingerprint }}
<link type="text/css" rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}"/>
{{ end }}
{{ range .AlternativeOutputFormats }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end }}
{{ block "links" . }} {{ end }}
{{ partial "seo-schema.html" .}}
{{- if not .Site.IsServer -}}
{{ template "_internal/google_analytics_async.html" . }}
{{- end -}}
<script>window.sa_event=window.sa_event||function(){a=[].slice.call(arguments);sa_event.q?sa_event.q.push(a):sa_event.q=[a]};</script>
</head>
<body>
{{ partial "burger.html" .}}
{{ partial "nav.html" .}}
<main>
{{ block "main" . }} {{ end }}
</main>
{{ block "footer" . }} {{ end }}
{{ $script := resources.Get "js/index.js" | minify | fingerprint }}
<script src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity | safeHTMLAttr }}" crossorigin="anonymous"></script>
{{ block "scripts" . }} {{ end }}
<script data-skip-dnt="true" async defer src="https://insights.msfjarvis.dev/latest.js"></script>
<noscript><img src="https://insights.msfjarvis.dev/noscript.gif?ignore-dnt=true" alt=""/></noscript>
</body>
</html>

View File

@ -1,50 +0,0 @@
{{ define "styles" }}
{{ $.Scratch.Set "style_opts" (dict "src" "scss/pages/post.scss" "dest" "css/post.css") }}
{{ end }}
{{ define "main" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2 2006" }}
<div class="flex-wrapper">
<div class="post__container">
<div class="post">
<header class="post__header">
<h1 id="post__title">{{.Title}}</h1>
{{ if .Date }}<time datetime="{{ .Date }}" class="post__date">{{ .Date.Format $dateFormat }}</time> {{ end }}
</header>
<article class="post__content">
{{ partial "anchored-headings.html" .Content }}
{{ if or .Params.math .Site.Params.math }}
{{ partial "math.html" . }}
{{ end }}
</article>
{{ partial "tags.html" .}}
{{ partial "post-pagination.html" .}}
{{ if false -}}
{{ partial "sponsors.html" .}}
{{- end }}
</div>
</div>
{{ if .Params.toc }}
<div class="toc-container">
{{ if .Site.Params.showPageTitleInTOC }} <div class="toc-post-title">{{ .Title }}</div> {{ end }}
{{ .TableOfContents }}
</div>
{{ end }}
</div>
{{ end }}
{{ define "scripts" }}
{{/* Hardcode a specific prismjs version to avoid a redirect on every page load. */}}
<!--<script src="https://unpkg.com/prismjs@1.20.0/components/prism-core.min.js"></script>-->
{{/* Automatically loads the needed languages to highlight the code blocks. */}}
<!--<script src="https://unpkg.com/prismjs@1.20.0/plugins/autoloader/prism-autoloader.min.js"
data-autoloader-path="https://unpkg.com/prismjs@1.20.0/components/"></script>-->
{{ if .Params.toc }}
<script src="/js/table-of-contents.js"></script>
{{ end }}
{{ end }}

View File

@ -1,7 +0,0 @@
<ul class="tags__list">
{{ range $category, $value := $.Site.Taxonomies.categories }}
<li class="tag__item">
<a class="tag__link" href="{{ "/categories/" | relLangURL}}{{ $category | urlize }}/">{{ $category | urlize }} ({{ len $value }})</a>
</li>
{{ end }}
</ul>

View File

@ -1,48 +0,0 @@
{{ define "styles" }}
{{ $.Scratch.Set "style_opts" (dict "src" "scss/pages/post.scss" "dest" "css/post.css") }}
{{ end }}
{{ define "main" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2 2006" }}
<div class="flex-wrapper">
<div class="post__container">
<div class="post">
<header class="post__header">
<h1 id="post__title">{{.Title}}</h1>
</header>
<article class="post__content">
{{ partial "anchored-headings.html" .Content }}
{{ if or .Params.math .Site.Params.math }}
{{ partial "math.html" . }}
{{ end }}
</article>
<footer class="post__footer">
{{ partial "social-icons.html" .}}
<p>{{ replace .Site.Copyright "{year}" now.Year }}</p>
</footer>
</div>
</div>
{{ if .Params.toc }}
<div class="toc-container">
{{ if .Site.Params.showPageTitleInTOC }} <div class="toc-post-title">{{ .Title }}</div> {{ end }}
{{ .TableOfContents }}
</div>
{{ end }}
</div>
{{ end }}
{{ define "scripts" }}
{{/* Hardcode a specific prismjs version to avoid a redirect on every page load. */}}
<script src="https://unpkg.com/prismjs@1.20.0/components/prism-core.min.js"></script>
{{/* Automatically loads the needed languages to highlight the code blocks. */}}
<script src="https://unpkg.com/prismjs@1.20.0/plugins/autoloader/prism-autoloader.min.js"
data-autoloader-path="https://unpkg.com/prismjs@1.20.0/components/"></script>
{{ if .Params.toc }}
<script src="/js/table-of-contents.js"></script>
{{ end }}
{{ end }}

View File

@ -1,26 +0,0 @@
{{ define "styles" }}
{{ $.Scratch.Set "style_opts" (dict "src" "scss/pages/tags.scss" "dest" "css/tags.css") }}
{{ end }}
{{ define "main" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2 2006" }}
<div class="post-list__container">
<div class="tag__header">
<a href="/posts">All posts</a><span class="separator">/</span>
<h1 class="tag__term">{{ .Title }}</h1>
</div>
<ul class="post-list">
{{ range .Data.Pages }}
<li class="post">
<div class="post__header">
<time class="post__date" datetime="{{ .Date }}">{{ .Date.Format $dateFormat }}</time>
<h2 class="post__title">
<a href="{{.RelPermalink}}">{{ .Title }}</a>
</h2>
</div>
</li>
{{ end }}
</ul>
</div>
{{ end }}