diff --git a/exampleSite/content/posts/hugoisforlovers.md b/exampleSite/content/posts/hugoisforlovers.md index ecb53ad..f6a051c 100644 --- a/exampleSite/content/posts/hugoisforlovers.md +++ b/exampleSite/content/posts/hugoisforlovers.md @@ -12,6 +12,7 @@ categories = [ "golang", ] series = ["Getting Started", "Hugo"] +featured_image = "https://imgs.xkcd.com/comics/angular_momentum.jpg" +++ ## Step 1. Install Hugo diff --git a/layouts/posts/single.html b/layouts/posts/single.html index eedb778..1e7d064 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -27,9 +27,13 @@
+ {{ if .Params.featured_image }} + Featured image + {{ end }} {{ .Content }}
+