Added table wrappers, fixed anchor headings

This commit is contained in:
Silvio Giebl
2019-05-04 23:18:56 +02:00
parent 03e2345833
commit 94f2aaf964
4 changed files with 16 additions and 12 deletions

View File

@@ -1,5 +0,0 @@
---
layout: vendor/compress
---
{% include vendor/anchor_headings.html html=content anchorBody="#" anchorClass="anchor_heading" %}

View File

@@ -1,5 +1,5 @@
---
layout: anchor_headings
layout: table_wrappers
---
<!DOCTYPE html>
@@ -57,7 +57,8 @@ layout: anchor_headings
{% endif %}
{% endunless %}
<div id="main-content" class="page-content" role="main">
{{ content }}
{% include vendor/anchor_headings.html html=content anchorBody="#" anchorClass="anchor_heading" %}
{% if page.has_children == true and page.has_toc != false %}
<hr>

View File

@@ -0,0 +1,7 @@
---
layout: vendor/compress
---
{% assign content_ = content | replace: '<table', '<div class="table-wrapper"><table' %}
{% assign content_ = content_ | replace: '</table>', '</table></div>' %}
{{ content_ }}