contentClasses from settings (#132)

This commit is contained in:
Utsob Roy 2023-04-25 21:05:47 +06:00 committed by GitHub
parent d7dca4e45f
commit 4b93ad4e43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
{% if settings.dgEnableSearch === true %}
{%include "components/searchContainer.njk"%}
{% endif %}
<main class="content cm-s-obsidian">
<main class="content cm-s-obsidian {{contentClasses}}">
<header>
{% if settings.dgShowInlineTitle === true %}
<h1>{{ noteTitle }}</h1>

View File

@ -26,7 +26,7 @@ permalink: "notes/{{ page.fileSlug | slugify }}/"
{%include "components/searchContainer.njk"%}
{% endif %}
<main class="content cm-s-obsidian">
<main class="content cm-s-obsidian {{contentClasses}}">
<header>
{% if settings.dgShowInlineTitle === true %}
<h1 data-note-icon="{% if noteIcon %}{{noteIcon}}{% else %}{{meta.noteIconsSettings.default}}{% endif %}">{% if title %}{{ title }}{% else %}{{ page.fileSlug }}{% endif %}</h1>