Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/peaceiris/hugo-theme-iris.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--exampleSite/config/_default/params.yaml3
-rw-r--r--exampleSite/content/en/posts/github-pages-and-github-actions/index.md2
-rw-r--r--exampleSite/content/en/posts/lighthouse-github-actions/index.md2
-rw-r--r--exampleSite/content/ja/posts/github-pages-and-github-actions/index.md2
-rw-r--r--exampleSite/content/ja/posts/lighthouse-github-actions/index.md2
-rw-r--r--layouts/partials/head/general.html9
7 files changed, 19 insertions, 3 deletions
diff --git a/README.md b/README.md
index 7392e9d3..2fc2a925 100644
--- a/README.md
+++ b/README.md
@@ -65,6 +65,7 @@ This repository includes the [Hugo] theme.
- Eye-catching Image
- Disqus Comment System
- Google Analytics
+- Open Graph Protocol, OGP Images
### Roadmap
@@ -73,7 +74,6 @@ This repository includes the [Hugo] theme.
- [MathJax]: Beautiful math in all browsers.
- [mermaid]: Generation of diagram and flowchart from text in a similar manner as markdown.
- Categories, Tags, Authors
-- Open Graph Protocol (OGP) Image
- Font Awesome
diff --git a/exampleSite/config/_default/params.yaml b/exampleSite/config/_default/params.yaml
index a9df8448..45dd017f 100644
--- a/exampleSite/config/_default/params.yaml
+++ b/exampleSite/config/_default/params.yaml
@@ -1,4 +1,5 @@
-# googleAnalytics: UA-xxxxxxxxx-x
+images:
+ - images/ogp.jpg
repo:
URL: "https://github.com/peaceiris/hugo-theme-iris"
diff --git a/exampleSite/content/en/posts/github-pages-and-github-actions/index.md b/exampleSite/content/en/posts/github-pages-and-github-actions/index.md
index 4163efb0..611b743e 100644
--- a/exampleSite/content/en/posts/github-pages-and-github-actions/index.md
+++ b/exampleSite/content/en/posts/github-pages-and-github-actions/index.md
@@ -4,6 +4,8 @@ description: Deploy your static site to GitHub Pages using GitHub Actions
publishdate: 2019-11-01T01:00:00.000Z
# draft: true
eyecatch: true
+images:
+ - posts/github-pages-and-github-actions/eyecatch.jpg
# tags: ["GitHub Actions"]
# toc: true
# mathjax: true
diff --git a/exampleSite/content/en/posts/lighthouse-github-actions/index.md b/exampleSite/content/en/posts/lighthouse-github-actions/index.md
index 6376fdb8..8908cfbb 100644
--- a/exampleSite/content/en/posts/lighthouse-github-actions/index.md
+++ b/exampleSite/content/en/posts/lighthouse-github-actions/index.md
@@ -4,6 +4,8 @@ description: How to run lighthouse on GitHub Actions and test your site performa
publishdate: 2019-10-01T01:00:00.000Z
# draft: true
eyecatch: true
+images:
+ - posts/lighthouse-github-actions/eyecatch.jpg
# tags: ["GitHub Actions"]
# toc: true
# mathjax: true
diff --git a/exampleSite/content/ja/posts/github-pages-and-github-actions/index.md b/exampleSite/content/ja/posts/github-pages-and-github-actions/index.md
index 8103a0e3..613f36bf 100644
--- a/exampleSite/content/ja/posts/github-pages-and-github-actions/index.md
+++ b/exampleSite/content/ja/posts/github-pages-and-github-actions/index.md
@@ -4,6 +4,8 @@ description: GitHub Actions による GitHub Pages へのデプロイ
publishdate: 2019-11-01T01:00:00.000Z
# draft: true
eyecatch: true
+images:
+ - posts/github-pages-and-github-actions/eyecatch.jpg
# tags: ["GitHub Actions"]
# toc: true
# mathjax: true
diff --git a/exampleSite/content/ja/posts/lighthouse-github-actions/index.md b/exampleSite/content/ja/posts/lighthouse-github-actions/index.md
index 8a74437a..4c969218 100644
--- a/exampleSite/content/ja/posts/lighthouse-github-actions/index.md
+++ b/exampleSite/content/ja/posts/lighthouse-github-actions/index.md
@@ -4,6 +4,8 @@ description: GitHub Actions で lighthouse を実行してサイトパフォー
publishdate: 2019-10-01T01:00:00.000Z
# draft: true
eyecatch: true
+images:
+ - posts/lighthouse-github-actions/eyecatch.jpg
# tags: ["GitHub Actions"]
# toc: true
# mathjax: true
diff --git a/layouts/partials/head/general.html b/layouts/partials/head/general.html
index e39edd5d..34006f7e 100644
--- a/layouts/partials/head/general.html
+++ b/layouts/partials/head/general.html
@@ -1,3 +1,6 @@
+{{ hugo.Generator }}
+
+<!-- Google Analytics -->
{{ template "_internal/google_analytics_async.html" . }}
<!-- cf. https://github.com/joshbuchea/HEAD -->
@@ -36,4 +39,8 @@
<meta name="author" content="{{ with .Site.Params.author }}{{ . }}{{ end }}">
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
-{{ hugo.Generator }}
+<!-- Open Graph Protocol (OGP) -->
+{{ template "_internal/opengraph.html" . }}
+
+<!-- Twitter Cards -->
+{{ template "_internal/twitter_cards.html" . }}