From 93bfcb84709709ab2af375f6475c5461bc91d7ab Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 17 Dec 2020 15:10:29 +0530 Subject: [PATCH] all: switch to ezhil Signed-off-by: Harsh Shandilya --- archetypes/default.md | 5 ++ config.toml | 25 +++++++-- content/_index.md | 5 -- content/about.md | 4 +- content/aps-privacy.md | 3 +- content/projects.md | 4 +- content/uses.md | 4 +- content/viscerion-privacy.md | 3 +- layouts/_default/_markup/render-link.html | 1 - layouts/_default/baseof.html | 62 ----------------------- layouts/_default/single.html | 50 ------------------ layouts/partials/browse-by-tag.html | 7 --- layouts/standalone/single.html | 48 ------------------ layouts/taxonomy/tag.html | 26 ---------- 14 files changed, 35 insertions(+), 212 deletions(-) create mode 100644 archetypes/default.md delete mode 100644 content/_index.md delete mode 100644 layouts/_default/_markup/render-link.html delete mode 100644 layouts/_default/baseof.html delete mode 100644 layouts/_default/single.html delete mode 100644 layouts/partials/browse-by-tag.html delete mode 100644 layouts/standalone/single.html delete mode 100644 layouts/taxonomy/tag.html diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..26f317f --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- diff --git a/config.toml b/config.toml index 6d6d6c4..179e347 100644 --- a/config.toml +++ b/config.toml @@ -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" diff --git a/content/_index.md b/content/_index.md deleted file mode 100644 index 9144ae1..0000000 --- a/content/_index.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -heading: "Hi, I'm Harsh" -subheading: "Android developer, Kotlin fanatic and wannabe Rustacean" -handle: "msfjarvis" ---- diff --git a/content/about.md b/content/about.md index 67b5328..5c25ce3 100644 --- a/content/about.md +++ b/content/about.md @@ -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). diff --git a/content/aps-privacy.md b/content/aps-privacy.md index 909616f..f7a5e3a 100644 --- a/content/aps-privacy.md +++ b/content/aps-privacy.md @@ -1,8 +1,7 @@ +++ title = "Android Password Store Privacy Policy" id = "aps-privacy" -type = "standalone" -layout = "standalone" +type = "page" +++ ## Privacy Policy diff --git a/content/projects.md b/content/projects.md index 42990af..f444826 100644 --- a/content/projects.md +++ b/content/projects.md @@ -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: diff --git a/content/uses.md b/content/uses.md index cba38e8..816d6de 100644 --- a/content/uses.md +++ b/content/uses.md @@ -1,8 +1,8 @@ +++ layout = "standalone" title = "Uses" -type = "standalone" - +type = "page" +date = "2020-10-31" +++ ## Editor + Terminal diff --git a/content/viscerion-privacy.md b/content/viscerion-privacy.md index 2eaf3dd..f04a873 100644 --- a/content/viscerion-privacy.md +++ b/content/viscerion-privacy.md @@ -1,8 +1,7 @@ +++ title = "Viscerion Privacy Policy" id = "viscerion-privacy" -type = "standalone" -layout = "standalone" +type = "page" +++ ## Privacy Policy diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html deleted file mode 100644 index f8b56fe..0000000 --- a/layouts/_default/_markup/render-link.html +++ /dev/null @@ -1 +0,0 @@ -{{ .Text | safeHTML }} \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html deleted file mode 100644 index 09342a5..0000000 --- a/layouts/_default/baseof.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }} - - - - - - - - - - - {{ partial "social_metadata.html" . }} - - {{ partial "favicon.html" }} - - - {{ block "styles" . }} {{ end }} - {{ $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 }} - - {{ end }} - - {{ range .AlternativeOutputFormats }} - {{ printf `` .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 -}} - - - - - {{ partial "burger.html" .}} - - {{ partial "nav.html" .}} - -
- {{ block "main" . }} {{ end }} -
- - {{ block "footer" . }} {{ end }} - - {{ $script := resources.Get "js/index.js" | minify | fingerprint }} - - {{ block "scripts" . }} {{ end }} - - - - - diff --git a/layouts/_default/single.html b/layouts/_default/single.html deleted file mode 100644 index 862b8d3..0000000 --- a/layouts/_default/single.html +++ /dev/null @@ -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" }} - -
-
-
-
-

{{.Title}}

- {{ if .Date }} {{ end }} -
-
- {{ partial "anchored-headings.html" .Content }} - {{ if or .Params.math .Site.Params.math }} - {{ partial "math.html" . }} - {{ end }} -
- {{ partial "tags.html" .}} - {{ partial "post-pagination.html" .}} - {{ if false -}} - {{ partial "sponsors.html" .}} - {{- end }} -
-
- {{ if .Params.toc }} -
- {{ if .Site.Params.showPageTitleInTOC }}
{{ .Title }}
{{ end }} - {{ .TableOfContents }} -
- {{ end }} -
- -{{ end }} - -{{ define "scripts" }} - {{/* Hardcode a specific prismjs version to avoid a redirect on every page load. */}} - - - {{/* Automatically loads the needed languages to highlight the code blocks. */}} - - - {{ if .Params.toc }} - - {{ end }} - -{{ end }} diff --git a/layouts/partials/browse-by-tag.html b/layouts/partials/browse-by-tag.html deleted file mode 100644 index eb7a918..0000000 --- a/layouts/partials/browse-by-tag.html +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/layouts/standalone/single.html b/layouts/standalone/single.html deleted file mode 100644 index 00103c0..0000000 --- a/layouts/standalone/single.html +++ /dev/null @@ -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" }} - -
-
-
-
-

{{.Title}}

-
-
- {{ partial "anchored-headings.html" .Content }} - {{ if or .Params.math .Site.Params.math }} - {{ partial "math.html" . }} - {{ end }} -
-
- {{ partial "social-icons.html" .}} -

{{ replace .Site.Copyright "{year}" now.Year }}

-
-
-
- {{ if .Params.toc }} -
- {{ if .Site.Params.showPageTitleInTOC }}
{{ .Title }}
{{ end }} - {{ .TableOfContents }} -
- {{ end }} -
- -{{ end }} - -{{ define "scripts" }} - {{/* Hardcode a specific prismjs version to avoid a redirect on every page load. */}} - - - {{/* Automatically loads the needed languages to highlight the code blocks. */}} - - - {{ if .Params.toc }} - - {{ end }} - -{{ end }} diff --git a/layouts/taxonomy/tag.html b/layouts/taxonomy/tag.html deleted file mode 100644 index a70c629..0000000 --- a/layouts/taxonomy/tag.html +++ /dev/null @@ -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" }} - -
-
- All posts/ -

{{ .Title }}

-
-
    - {{ range .Data.Pages }} -
  • -
    - -

    - {{ .Title }} -

    -
    -
  • - {{ end }} -
-
-{{ end }}