all repos — website @ 032aa335538d66581c787459a786b84aec05b4a3

personal website hosted at prithu.xyz, built using hugo

add open graph meta tags
Prithu Goswami prithugoswami524@gmail.com
Wed, 13 May 2020 22:14:44 +0530
commit

032aa335538d66581c787459a786b84aec05b4a3

parent

ef8433844d725f709de7e3f35eee91985d70fe36

1 files changed, 6 insertions(+), 0 deletions(-)

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

@@ -6,9 +6,15 @@ <meta charset="utf-8">

{{ if .IsHome }} <title>Prithu Goswami</title> <meta name="description" content="Prithu Goswami's personal website"> + <meta property="og:title" content="Prithu Goswami"> + <meta property="og:description" content="Prithu Goswami's personal website"> + <meta property="og:image" content="/img/favicon.png"> {{ else }} <title>Prithu Goswami - {{ humanize .Page.Type}} - {{.Title}}</title> <meta name="description" content="{{ with .Params.description }}{{ . }}{{ else }}{{.Summary | truncate 110 }}{{ end }}"> + <meta property="og:title" content="{{.Title}}"> + <meta property="og:description" content="{{ with .Params.description }}{{ . }}{{ else }}{{.Summary | truncate 110 }}{{ end }}"> + <meta property="og:image" content="/img/favicon.png"> {{ end }} <meta name="author" content="Prithu Goswami"> <meta name="viewport" content="width=device-width, initial-scale=1">