Skip to content

Commit

Permalink
feat: Add Open Graph Protocol options
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Feb 1, 2020
1 parent 08d9f8f commit be29814
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ This repository includes the [Hugo] theme.
- Eye-catching Image
- Disqus Comment System
- Google Analytics
- Open Graph Protocol, OGP Images

### Roadmap

Expand All @@ -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


Expand Down
3 changes: 2 additions & 1 deletion exampleSite/config/_default/params.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# googleAnalytics: UA-xxxxxxxxx-x
images:
- images/ogp.jpg

repo:
URL: "https://github.com/peaceiris/hugo-theme-iris"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion layouts/partials/head/general.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{{ hugo.Generator }}

<!-- Google Analytics -->
{{ template "_internal/google_analytics_async.html" . }}

<!-- cf. https://github.com/joshbuchea/HEAD -->
Expand Down Expand Up @@ -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" . }}

0 comments on commit be29814

Please sign in to comment.