new head and limit post to 3 on home
Prithu Goswami prithugoswami524@gmail.com
Wed, 13 May 2020 16:25:21 +0530
3 files changed,
5 insertions(+),
8 deletions(-)
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.html
→
hugo-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.html
→
hugo-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">