added some semantic tags (#61)

This commit is contained in:
Utsob Roy 2023-02-03 21:26:17 +06:00 committed by GitHub
parent a98720e8e3
commit e8ac35e373
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 8 deletions

View File

@ -1,4 +1,4 @@
<div> <aside>
<div class="sidebar"> <div class="sidebar">
<div class="sidebar-container"> <div class="sidebar-container">
@ -81,7 +81,7 @@
{%endif%} {%endif%}
</div> </div>
</div> </div>
</div> </aside>
{%if settings.dgShowLocalGraph === true %} {%if settings.dgShowLocalGraph === true %}
{%include "components/graphScript.njk"%} {%include "components/graphScript.njk"%}

View File

@ -20,7 +20,8 @@ permalink: "notes/{{ page.fileSlug | slugify }}/"
{%include "components/searchContainer.njk"%} {%include "components/searchContainer.njk"%}
{% endif %} {% endif %}
<div class="content cm-s-obsidian"> <main class="content cm-s-obsidian">
<header>
{% if settings.dgShowInlineTitle === true %} {% if settings.dgShowInlineTitle === true %}
<h1>{% if title %}{{ title }}{% else %}{{ page.fileSlug }}{% endif %}</h1> <h1>{% if title %}{{ title }}{% else %}{{ page.fileSlug }}{% endif %}</h1>
{% endif %} {% endif %}
@ -37,8 +38,9 @@ permalink: "notes/{{ page.fileSlug | slugify }}/"
</div> </div>
{% endif %} {% endif %}
</div> </div>
</header>
{{ content | link | taggify | highlight | safe}} {{ content | link | taggify | highlight | safe}}
</div> </main>
{% if settings.dgShowBacklinks === true or settings.dgShowLocalGraph === true or settings.dgShowToc === true%} {% if settings.dgShowBacklinks === true or settings.dgShowLocalGraph === true or settings.dgShowToc === true%}
{%include "components/sidebar.njk"%} {%include "components/sidebar.njk"%}

View File

@ -14,8 +14,8 @@
{% if settings.dgEnableSearch === true %} {% if settings.dgEnableSearch === true %}
{%include "components/searchContainer.njk"%} {%include "components/searchContainer.njk"%}
{% endif %} {% endif %}
<div class="content cm-s-obsidian"> <main class="content cm-s-obsidian">
<header>
{% if settings.dgShowInlineTitle === true %} {% if settings.dgShowInlineTitle === true %}
<h1>{{ noteTitle }}</h1> <h1>{{ noteTitle }}</h1>
{% endif %} {% endif %}
@ -33,11 +33,11 @@
</div> </div>
{% endif %} {% endif %}
</div> </div>
</header>
{%- for garden in collections.gardenEntry -%} {%- for garden in collections.gardenEntry -%}
{{garden.templateContent | link | taggify | highlight | safe }} {{garden.templateContent | link | taggify | highlight | safe }}
{%- endfor -%} {%- endfor -%}
</div> </main>
{% if settings.dgShowBacklinks === true or settings.dgShowLocalGraph === true or settings.dgShowToc === true%} {% if settings.dgShowBacklinks === true or settings.dgShowLocalGraph === true or settings.dgShowToc === true%}
{%include "components/sidebar.njk" %} {%include "components/sidebar.njk" %}