ageekymonk / hugo-tracks-theme

This is port of Tracks theme
MIT License
21 stars 21 forks source link

Post with only an Image #5

Open PhreakyFreaky opened 7 years ago

PhreakyFreaky commented 7 years ago

Is there a way to make a post with just an image. I have seen that showonlyimage isn't implemented as far as I can see.

I tried to implemented it in portfolio.html with the following but my css is not good enough to see/select right classes nor I am sure those exist.

{{ if and (isset .Params "showonlyimage") .Params.showonlyimage (isset .Params "image") .Params.image }}
<div class="row">
 <div class="row content-image" style="background-image: url({{ .Params.image }})">
  </div>
  </div>
  {{ else }}