Skip to content

Commit

Permalink
Merge pull request #34 from ihzarizkyk/master
Browse files Browse the repository at this point in the history
[NEW FEATURE] Add the article thumbnail feature or post
  • Loading branch information
Ben authored Oct 1, 2020
2 parents 5a691a7 + 9c52165 commit 91f6b2d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ collaboration of others.
* [Christoph Petrausch](https://github.com/hikhvar)
* [Mohamed Muhannad](https://github.com/muhannad0)
* [Jon Besga](https://github.com/jonbesga)
* [Mochammad Ihza Rizky Karim](https://github.com/ihzarizkyk)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ For more explanation about various features, scroll down to **Features**
* Twitter cards and Open Graph tags integration
* Images for post headers
* Use of a homepage instead of a list of posts
* Thumbnail Article or Post
* And some other cool features...

## Installation
Expand Down
6 changes: 6 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--Showing Thumbnail Title Article / Post-->
<meta property="og:title" content="{{ .Title }}">
<!--Showing Thumbnail Image Article / Post-->
{{ if isset .Params "image" }}
<meta propert="og:image" content="{{ relURL .Params.image }}">
{{ end }}
<!-- If a author is set for the page it will be used -->
{{- with $.Param "author" -}}
<meta name="author" content="{{ . }}">
Expand Down

0 comments on commit 91f6b2d

Please sign in to comment.