diff --git a/.forestry/front_matter/templates/blog-post.yml b/.forestry/front_matter/templates/blog-post.yml deleted file mode 100644 index 5d6ba1e..0000000 --- a/.forestry/front_matter/templates/blog-post.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -label: Blog post -hide_body: false -fields: -- type: text - name: title - label: title -- type: text - name: author - label: author -- type: text - name: type - label: type -- type: datetime - name: date - label: date -- type: text - name: url - label: url -- type: list - name: categories - label: categories -- type: list - name: tags - label: tags -pages: -- content/blog/deep-work-a-summary.md diff --git a/.forestry/settings.yml b/.forestry/settings.yml deleted file mode 100644 index 8e1142c..0000000 --- a/.forestry/settings.yml +++ /dev/null @@ -1,50 +0,0 @@ ---- -new_page_extension: md -auto_deploy: false -admin_path: -webhook_url: -sections: -- type: directory - path: content - label: Pages - create: all - match: "*" -- type: directory - path: content/blog_list - label: Blog list - create: all - match: "**/*" -- type: directory - path: content/blog - label: Blog - create: all - match: "**/*" -- type: directory - path: content/search - label: Search - create: all - match: "**/*" -- type: directory - path: content/wp-content - label: Wp content - create: all - match: "**/*" -upload_dir: static/uploads -public_path: "/uploads" -front_matter_path: '' -use_front_matter_path: false -file_template: ":filename:" -build: - preview_command: hugo -E -F -D -b $DEPLOY_URL -d public - publish_command: hugo -d public - preview_env: - - HUGO_ENV=staging - - HUGO_VERSION=0.55.2 - publish_env: - - HUGO_ENV=production - - HUGO_VERSION=0.55.2 - preview_output_directory: public - output_directory: public - instant_preview_command: hugo server -D -E -F --port 8080 --bind 0.0.0.0 --renderToDisk - -d public -version: 0.55.2 diff --git a/assets/css/custom.css b/assets/css/custom.css index cb985c7..9717489 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -3,26 +3,42 @@ dark-mode-toggle { --dark-mode-toggle-light-icon: url("/wp-content/moon.png"); } -body.light { - background: #fffcf5; -} -@media screen and (min-width: 1615px) { - #disqus_thread{ - position: absolute; - top:50px; - right: 10px; - width: calc(100rem - 75rem); - } +@font-face { + font-family: 'Inter'; + font-display: auto; + font-style: normal; + font-weight: 400; + src: url("https://rsms.me/inter/font-files/Inter-Regular.woff2") format("woff2"), + url("https://rsms.me/inter/font-files/Inter-Regular.woff") format("woff"); +} +@font-face { + font-family: 'Inter'; + font-display: auto; + font-style: normal; + font-weight: 500; + src: url("https://rsms.me/inter/font-files/Inter-Medium.woff2") format("woff2"), + url("https://rsms.me/inter/font-files/Inter-Medium.woff") format("woff"); } +body.light { + background: #ededed; +} +body.dark { + background: #222; +} -.hack, .hack blockquote, .hack code, .hack em, .hack h1, .hack h2, .hack h3, .hack h4, .hack h5, .hack h6, .hack strong { +.hack code { font-family: 'Roboto Mono', monospace; } +.hack, .hack blockquote, .hack em, .hack h1, .hack h2, .hack h3, .hack h4, .hack h5, .hack h6, .hack strong { + font-family: 'Inter', monospace; +} .hack { - font-family: "Roboto Slab", serif; + font-family: "Inter", serif; + font-weight: 400; + text-align: justify; } a[rel*="external"]::after { @@ -39,9 +55,17 @@ nav a { color: #422eff; border-bottom: 1px solid #00ff9c; } +.light pre { + border: none; + background: #222; + padding: 1rem; +} +.light pre code { + color: #00bcd4; +} .dark a { color: rgb(82, 174, 255); - border-bottom: 1px solid rgb(0, 204, 125); + border-bottom: 1px solid rgb(15, 143, 94); } .light a:hover { color: #000; @@ -49,7 +73,14 @@ nav a { } .dark a:hover { color: #333; - background-color: #00ff9c; + background-color: rgb(15, 143, 94); +} +.dark pre { + background-color: #222; + padding: 1rem; +} +.dark table tbody td:first-child { + color: #ccc; } .muted, .help-block { opacity: 0.70; @@ -86,4 +117,15 @@ nav a { small { font-weight: 400; +} + +a.no-underline { +border: none; +} + +.archive h1 { + display: grid; + grid-template-columns: 1fr minmax(min-content, auto); + column-gap: 20px; + grid-template-areas: "div div"; } \ No newline at end of file diff --git a/config.toml b/config.toml index a10b630..4bef923 100644 --- a/config.toml +++ b/config.toml @@ -32,7 +32,7 @@ footnoteReturnLinkContents = "↩" # Provides a nicer footnote return link [params.layout.menu.main] hidden = false # Optional, set false or remove to show section menu - exclude = ["search", "blog_list", "project_list"] # exclude homepage and blog postings + exclude = ["search", "archive", "project_list"] # exclude homepage and blog postings [[menu.main]] name = "Home" diff --git a/content/about.md b/content/about.md index 69152c0..e6aebff 100644 --- a/content/about.md +++ b/content/about.md @@ -1,8 +1,10 @@ -## About +--- +title: "About" +--- -### Work +## Work I’m currently working as a Software Developer at -Zerodha Tech +[Zerodha Tech](https://zerodha.com/products) where I am writing Golang, Python and a bit of Javascript to build fintech products used at scale everyday. @@ -17,8 +19,8 @@ the cash flows for Dell and customer facing invoice accuracy via last mile automation. I have -also worked remotely during my participation in Google Summer -of Code in 2016 and contributed to the Open Source Apache +also worked remotely during my participation in [Google Summer +of Code](/blog/2016/08/09/apache-allura-gsoc-2016-summary/) in 2016 and contributed to the Open Source Apache Allura Project that powers SourceForge.com. Out of interest and curiosity, I have (little) experience with @@ -26,7 +28,7 @@ Machine Learning and AI through my pursuit of a Machine Learning Nanodegree which I earned through a MOOC curated by Udacity which I undertook in the summer of 2017. -### Personal +## Personal I am from New Delhi, India and am currently based in Bengaluru, India. I write code for a living, and often write code as a hobby, or to automate the diff --git a/content/archive/_index.md b/content/archive/_index.md new file mode 100644 index 0000000..d5cb5b1 --- /dev/null +++ b/content/archive/_index.md @@ -0,0 +1,3 @@ ++++ +title= "Blog Archive" ++++ \ No newline at end of file diff --git a/content/blog/2019/2019-11-15-hugo-group-by-year.md b/content/blog/2019/2019-11-15-hugo-group-by-year.md index fb116b7..e4e4742 100644 --- a/content/blog/2019/2019-11-15-hugo-group-by-year.md +++ b/content/blog/2019/2019-11-15-hugo-group-by-year.md @@ -9,7 +9,7 @@ url = "blog/2019/11/15/archive-pages-group-by-year-hugo" author = "Rohan Verma" +++ -I was on the hunt to find out how to organize my [blog](/blog_list) and +I was on the hunt to find out how to organize my [blog](/archive) and [project](/project) archive pages by year in Hugo. After being unable to find any easy solutions I decided I would sit down and write the go template to render these pages myself. The idea was simple, iterate over the list divided @@ -43,7 +43,7 @@ page. {{end}} {{.Date.Format "02 Jan"}} - {{.Title}} + {{.Title}} {{ $prev = .Date.Format "2006"}} {{end}} diff --git a/content/blog/_index.md b/content/blog/_index.md index 300ca7b..5308425 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -1,4 +1,4 @@ --- title: "Blogs" -listing: "/blog_list" +listing: "/archive" --- diff --git a/content/blog_list/_index.md b/content/blog_list/_index.md deleted file mode 100644 index fd5d38a..0000000 --- a/content/blog_list/_index.md +++ /dev/null @@ -1,3 +0,0 @@ -+++ -title= "Blog List" -+++ \ No newline at end of file diff --git a/content/project_list/_index.md b/content/project_list/_index.md deleted file mode 100644 index e46fc3d..0000000 --- a/content/project_list/_index.md +++ /dev/null @@ -1,3 +0,0 @@ -+++ -title= "Project List" -+++ \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 44e5703..c161be8 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,8 +2,17 @@ {{ partial "masthead.html" . }} {{ end }} {{ define "main" }} -
-

{{ .Title }} Full Listing

+
+

+
{{ .Title }}
+
+ + Archive + Categories + Tags + +
+

{{ range .Paginator.Pages }} {{ partial "page-summary.html" . }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 39b7367..57c65a3 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -5,11 +5,11 @@

{{ .Title }}

- +
+ {{ range $key, $value := .Data.Terms }} + {{ $key }}{{ len $value }} + {{ end }} +
{{ end }} {{ define "footer" }} {{ partial "powered-by.html" . }} diff --git a/layouts/index.html b/layouts/index.html index 3884d5c..ca38582 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -38,69 +38,51 @@ -

Projects

+

Blog

- My latest sideproject is upi.link, a small and nifty - programmable UPI shortlink generator. - -

- - Here is a list of my most recent projects: - -

- - {{ range first 10 .Site.Taxonomies.categories.projects }} -
  • - {{ .Page.Title }} -
  • - {{ end }} - -
    - - You can find all my projects at the project listing page. - -

    - -

    Blog

    - - My blog is also available via [RSS] - -

    - - You can read my blog where - I try to write about what I am doing and things I find interesting. - I have organized my blog using categories - and tags. You can navigate the blog by using them, - or if you prefer to view by date, you can visit - the blog listing page. -

    - - Here are the most recent blogs I wrote, - -

    + I write about what I am doing and things I find interesting. + + + This blog is also available via [RSS]

    - categories:
    +

    Categories

    {{range ($.Site.GetPage "taxonomyTerm" "categories").Pages }} - {{lower .Title}} + {{lower .Title}} {{end}}

    - tags:
    +

    Tags

    {{range ($.Site.GetPage "taxonomyTerm" "tags").Pages }} - {{lower .Title}} + {{lower .Title}} {{end}}

    +
    +

    Recent Projects

    + {{ end }} diff --git a/layouts/partials/head/custom.html b/layouts/partials/head/custom.html index 2558595..ffe829f 100644 --- a/layouts/partials/head/custom.html +++ b/layouts/partials/head/custom.html @@ -1,4 +1,4 @@ - + diff --git a/layouts/partials/post/meta.html b/layouts/partials/post/meta.html index b858373..2401789 100644 --- a/layouts/partials/post/meta.html +++ b/layouts/partials/post/meta.html @@ -16,7 +16,7 @@ GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ -}} - + diff --git a/layouts/section/blog_list.html b/layouts/section/archive.html similarity index 76% rename from layouts/section/blog_list.html rename to layouts/section/archive.html index 6e5b419..a3c4643 100644 --- a/layouts/section/blog_list.html +++ b/layouts/section/archive.html @@ -15,13 +15,19 @@ {{if .Date}} {{if gt $prev (.Date.Format "2006")}} {{ if ne $prev 3000}} + {{ end }} -

    {{ .Date.Format "2006" }}

    + + + + + + {{end}} - + {{ $prev = .Date.Format "2006"}} diff --git a/layouts/section/project_list.html b/layouts/section/project_list.html deleted file mode 100644 index da9608f..0000000 --- a/layouts/section/project_list.html +++ /dev/null @@ -1,36 +0,0 @@ -{{ define "title" -}} - Project List | {{ .Site.Title }} -{{- end }} -{{ define "header" }} - {{ partial "masthead.html" . }} -{{ end }} -{{ define "main" }} -
    -

    {{ .Title }}

    -
    - -
    - {{ $prev := 3000}} - {{range .Site.Taxonomies.categories.projects}} - {{if .Date}} - {{if gt $prev (.Date.Format "2006")}} - {{ if ne $prev 3000}} -
    {{ .Date.Format "2006" }}
    {{.Date.Format "02 Jan"}}{{.Date.Format "02 Jan"}} {{.Title}}
    - {{ end }} -

    {{ .Date.Format "2006" }}

    - - {{end}} - - - - - {{ $prev = .Date.Format "2006"}} - {{end}} - {{end}} -
    {{.Date.Format "02 Jan"}}{{.Title}}
    - - -{{ end }} -{{ define "footer" }} - {{ partial "powered-by.html" . }} -{{ end }} diff --git a/netlify.toml b/netlify.toml deleted file mode 100644 index 7f0e385..0000000 --- a/netlify.toml +++ /dev/null @@ -1,31 +0,0 @@ -[build] -publish = "public" -command = "hugo --gc --minify" - -[context.production.environment] -HUGO_VERSION = "0.56.0" -HUGO_ENV = "production" -HUGO_ENABLEGITINFO = "true" - -[context.split1] -command = "hugo --gc --minify --enableGitInfo" - -[context.split1.environment] -HUGO_VERSION = "0.56.0" -HUGO_ENV = "production" - -[context.deploy-preview] -command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" - -[context.deploy-preview.environment] -HUGO_VERSION = "0.56.0" - -[context.branch-deploy] -command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" - -[context.branch-deploy.environment] -HUGO_VERSION = "0.56.0" - -[context.next.environment] -HUGO_ENABLEGITINFO = "true" -