Skip to content

Commit

Permalink
Merge pull request #283 from Qumulo/mkhmelnitsky-remove-unnecessary-tags
Browse files Browse the repository at this point in the history
Removing unnecessary tags
  • Loading branch information
andrewabrahamowicz authored Nov 2, 2023
2 parents ce3fc75 + f609f89 commit 3600863
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
---
{% assign processed_content = content | replace: '<p><a id="', '<a id="' | replace: '"></a></p>', '"></a>' %}

<div class="post-header">
<h1 class="post-title-main">{{ page.title }}</h1>
Expand Down Expand Up @@ -35,10 +36,11 @@ <h1 class="post-title-main">{{ page.title }}</h1>
{% endunless %}

<p>{{page.summary}}</p>
{{content}}
{{ processed_content }}

{% include commento.html %}

{% include in_page_toc.html %}

</div>

7 changes: 5 additions & 2 deletions _layouts/page_print.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
layout: default_print
comments: true
---
{% assign processed_content = content | replace: '<p><a id="', '<a id="' | replace: '"></a></p>', '"></a>' %}

<div class="post-header">
{% assign sidebar = site.data.sidebars[page.sidebar].entries %}

{% for entry in sidebar %}
{% for folder in entry.folders %}
{% if folder.title and folder.type != "navi" and folder.type != "frontmatter" %}
Expand All @@ -22,5 +24,6 @@ <h1 class="post-title-main" id="{{page.permalink | replace: '/', '' }}">{{ folde
</div>

<div class="post-content">
{{ content }}
{{ processed_content }}
</div>

0 comments on commit 3600863

Please sign in to comment.