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

Allow hiding title #583

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@ info:
# Set to true to not render your intro items
# Default: false
x-hideIntroItems: false
# Set to true to not render your title
# Default: false
x-hideIntroTitle: false

# Set to true to not render the deprecated label
# Default: false
Expand Down
4 changes: 3 additions & 1 deletion src/themes/default/views/partials/layout/content/main.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{{! DO THE CONTENT }}
<article id="content">
<h1 class="doc-heading">{{info.title}}</h1>
{{#unless info.x-hideIntroTitle}}
<h1 class="doc-heading">{{info.title}}</h1>
{{/unless}}
{{! Check if there is effectively nothing to do }}
{{#unless (or info.x-hideIntroduction (and info.x-hideWelcome (or info.x-hideIntroItems (empty info.x-introItems))))}}
{{>layout/content/introduction/main}}
Expand Down