all repos — website @ ef8433844d725f709de7e3f35eee91985d70fe36

personal website hosted at prithu.xyz, built using hugo

change the head partial to include description and title
Prithu Goswami prithugoswami524@gmail.com
Wed, 13 May 2020 21:32:30 +0530
commit

ef8433844d725f709de7e3f35eee91985d70fe36

parent

e04c111c5a5d24c2951a14a7b9f2cc61825675d1

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M hugo-site/layouts/partials/head.htmlhugo-site/layouts/partials/head.html

@@ -5,10 +5,11 @@

<meta charset="utf-8"> {{ if .IsHome }} <title>Prithu Goswami</title> + <meta name="description" content="Prithu Goswami's personal website"> {{ else }} <title>Prithu Goswami - {{ humanize .Page.Type}} - {{.Title}}</title> + <meta name="description" content="{{ with .Params.description }}{{ . }}{{ else }}{{.Summary | truncate 110 }}{{ end }}"> {{ 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"> <link href="https://fonts.googleapis.com/css?family=Roboto+Mono:300,400,700" rel="stylesheet">