calintat / minimal

Personal blog theme powered by Hugo
https://themes.gohugo.io/minimal/
MIT License
404 stars 221 forks source link

Option to hide date and/or title of post #76

Closed j450h1 closed 6 years ago

j450h1 commented 6 years ago

I would like to remove the date from a post without having to manually delete from the html from the public folder after running blogdown::build_site().

I have a post called Gallery which has the following yaml header in the Rmarkdown file:

---
title: Gallery
date: null
output:
  blogdown::html_page:
    date: null
---

This is how it is rendered in the public/gallery/index.html file:

<main>

    <div class="item">

    <h4><a href="/gallery/">Gallery</a></h4>
    <h5>January 1, 0001</h5>

</div>

Anyway to remove/hide it without doing it manually?

j450h1 commented 6 years ago

This can be accomplished by changing a few things as noted here: