From c2e7f313b3d976f8bcf5012f2bcb350279e13fc5 Mon Sep 17 00:00:00 2001
From: Eslam Hindawy <eslam.foad@gmail.com>
Date: Sun, 28 Feb 2021 13:18:56 +0000
Subject: [PATCH] Add open graph tags (#140)
---
layouts/partials/head.html | 3 +++
README.md | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md
index c3155e2..4e99075 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,7 @@
- Katex support (optional)
- Formspree Contact Form (optional)
- Twitter Cards support
+- Open Graph support
- MIT License
- Fontawesome 5.15.1 icons
- Custom CSS (optional)
@@ -286,6 +287,9 @@
```toml
images = ["post-cover.png"]
```
+### Open Graph Support
+
+The [internal template for Open Graph protocol](https://gohugo.io/templates/internal/#open-graph) uses a mix of configuration variables; settings in `config.toml` and frontmatter of the page.
### Post Thumbnails
Thumbnails can be enabled easily by setting the `thumbnail` parameter in the frontmatter of a post to an image such as `"images/landscape.jpg"`.
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 62bc8e7..e98ba73 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -94,4 +94,7 @@
<!-- Twitter Cards -->
{{ template "_internal/twitter_cards.html" . }}
+
+ <!-- Open Graph -->
+ {{ template "_internal/opengraph.html" . }}
</head>
--
Gitblit v1.10.0