all repos — website @ 5c07250cd27e59cd77389062693df353dcaec405

personal website hosted at prithu.xyz, built using hugo

new head and limit post to 3 on home
Prithu Goswami prithugoswami524@gmail.com
Wed, 13 May 2020 16:25:21 +0530
commit

5c07250cd27e59cd77389062693df353dcaec405

parent

06a5072d5284c9c1c25de0b3aee51a1e685b7b52

3 files changed, 5 insertions(+), 8 deletions(-)

jump to
D hugo-site/content/posts/hello.md

@@ -1,7 +0,0 @@

---- -title: "Moving to Hugo" -date: 2020-05-01T14:15:30+05:30 -draft: false ---- - -Hello hugo!
M hugo-site/layouts/index.htmlhugo-site/layouts/index.html

@@ -116,7 +116,7 @@ <div class=container>

<h1>I also write about stuff</h1> <div class="shadow-box"> <div class="section-text"> - {{ range sort (where .Site.RegularPages "Section" "posts") "Date" "desc"}} + {{ range sort (where .Site.RegularPages "Section" "posts") "Date" "desc" | first 3}} <a href="{{ .RelPermalink }}" target="_blank"> <div class=section-item> <h2>{{ .Title }}</h2>
M hugo-site/layouts/partials/head.htmlhugo-site/layouts/partials/head.html

@@ -3,7 +3,11 @@ <html lang="en">

<head> <meta charset="utf-8"> + {{ if .IsHome }} <title>Prithu Goswami</title> + {{ else }} + <title>Prithu Goswami - {{ humanize .Page.Type}} - {{.Title}}</title> + {{ end }} <meta name="description" content="Prithu Goswami's personal website"> <meta name="author" content="Prithu Goswami"> <meta name="viewport" content="width=device-width, initial-scale=1">