Add an optional featured image (#252)
* Make MathJax version 3 work
* Change my contributor link
* Add an optional featured image and table of contents
* Add an optional featured image and table of contents
* Add example of a featured image in post along with table of contents
* Remove word count criteria
* Fix formatting
* Add table of contents options
* Remove toc feature due to markdown bug
* Removing markup configuration
Co-authored-by: Luiz F. A. de PrĂ¡ <luizdepra@users.noreply.github.com>
| | |
| | | "golang", |
| | | ] |
| | | series = ["Getting Started", "Hugo"] |
| | | featured_image = "https://imgs.xkcd.com/comics/angular_momentum.jpg" |
| | | +++ |
| | | |
| | | ## Step 1. Install Hugo |
| | |
| | | </header> |
| | | |
| | | <div> |
| | | {{ if .Params.featured_image }} |
| | | <img src='{{ .Params.featured_image }}' alt="Featured image"/> |
| | | {{ end }} |
| | | {{ .Content }} |
| | | </div> |
| | | |
| | | |
| | | <footer> |
| | | {{ partial "posts/series.html" . }} |
| | | {{ partial "posts/disqus.html" . }} |