Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support hide_title field in Markdown front matter #25

Open
1 task
Tracked by #21
oliver-pham opened this issue Oct 30, 2021 · 0 comments
Open
1 task
Tracked by #21

Support hide_title field in Markdown front matter #25

oliver-pham opened this issue Oct 30, 2021 · 0 comments

Comments

@oliver-pham
Copy link
Owner

oliver-pham commented Oct 30, 2021

Requirements

  • If hide_title is set to true, hide the title, declared through the front matter, at the top of the doc. This should not affect the title already exists at the top of the doc

Examples

If the content of example-lyrics.md is:

---
title: Never Gonna Give You Up
hide_title: true
---

We're no strangers to love
You know the rules and so do I

The title should not be added as a <h1> element to the <body> of the generated HTML file:

<html>
  <head>
  ...
  <title>Never Gonna Give You Up</title>
  </head>
  <body>
    <p>We're no strangers to love</p>
    <p>You know the rules and so do I</p>
  </body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant