Merge branch 'main' of github.com:msfjarvis/hugo-social-metadata into src [deploy] [staging]

* 'main' of github.com:msfjarvis/hugo-social-metadata:
  layouts: add rel="canonical" link to each post
  hugo: mark theme as a module
  theme: update branch
This commit is contained in:
Harsh Shandilya 2020-12-21 22:04:00 +05:30
commit c0879a685e
3 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,3 @@
module github.com/msfjarvis/hugo-social-metadata
go 1.15

View File

@ -36,4 +36,5 @@
{{ else }}
<meta property="og:image" content="{{ .Site.BaseURL}}{{ .Site.Params.SocialImage }}" key="ogimage" />
{{ end }}
<link rel="canonical" href="{{ .RelPermalink }}" />
{{ end }}

View File

@ -1,6 +1,6 @@
name = "Hugo Social Metadata"
license = "MIT"
licenselink = "https://github.com/msfjarvis/hugo-social-metadata/blob/master/LICENSE"
licenselink = "https://github.com/msfjarvis/hugo-social-metadata/blob/main/LICENSE"
description = "Hugo theme component that automatically generates metadata for Twitter's cards and Facebook's Open Graph protocol"
homepage = "http://example.com/"
tags = ["component", "social metadata"]