aboutsummaryrefslogtreecommitdiff
path: root/templates/base/opengraph.gohtml
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-09 21:52:13 +0100
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-09 21:52:13 +0100
commitd25e04d8c736e5ee0a4bdc2531a6047dccc81013 (patch)
treee12332d91cdeba5ffb4a99d70e045b24afa661bf /templates/base/opengraph.gohtml
parenta50d678a6757212f6f7fdcb0c35641fb18874872 (diff)
feat(data): parse json and render simple thing
Diffstat (limited to 'templates/base/opengraph.gohtml')
-rw-r--r--templates/base/opengraph.gohtml18
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/base/opengraph.gohtml b/templates/base/opengraph.gohtml
new file mode 100644
index 0000000..f51d561
--- /dev/null
+++ b/templates/base/opengraph.gohtml
@@ -0,0 +1,18 @@
+{{define "opengraph-base"}}
+ <meta property="description" content="{{.Description}}" />
+ <!-- Open Graph -->
+ <meta property="og:title" content="{{.Title}}" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://{{.Domain}}{{.URL}}" />
+ <meta property="og:image" content="https://{{.Domain}}{{.Image}}" />
+ <meta property="og:description" content="{{.Description}}" />
+ <meta property="og:local" content="fr_FR" />
+ <meta property="og:site_name" content="Architects Land" />
+ <!-- Twitter -->
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta property="twitter:domain" content="{{.Domain}}" />
+ <meta property="twitter:url" content="https://{{.Domain}}{{.URL}}/" />
+ <meta name="twitter:title" content="{{.Title}}" />
+ <meta name="twitter:description" content="{{.Description}}" />
+ <meta name="twitter:image" content="https://{{.Domain}}{{.Image}}" />
+{{end}}