Skip to content

Commit

Permalink
Fix missing improve-this-page links
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed Jan 26, 2023
1 parent 02cb5f1 commit eafe696
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
9 changes: 0 additions & 9 deletions _includes/anchor_headings.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,6 @@
{{ include.bodySuffix }}
{% if page.showPageTOC and headerLevel == 1 %}
</h1>
<div class="book__improve">
<a href="{{ site.data.site.improveLinkBaseUrl }}{{ page.path }}">
{{ site.data.site.improveLink }}
</a>
{{ site.data.site.orText }}
<a href="{{ site.data.site.contactBaseUrl }}">
{{ site.data.site.contactLink }}
</a>
</div>
{% include book/toc.html html=content h_min=2 h_max=3 %}
{% assign _restOfNode = node | split: '</h1>' | last %}
{{ _restOfNode }}
Expand Down
9 changes: 9 additions & 0 deletions _layouts/book.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
{% endif %}
<div class="book__page">
<div class="book__content">
<div class="book__improve">
<a href="{{ site.data.site.improveLinkBaseUrl }}{{ page.path }}">
{{ site.data.site.improveLink }}
</a>
{{ site.data.site.orText }}
<a href="{{ site.data.site.contactBaseUrl }}">
{{ site.data.site.contactLink }}
</a>
</div>
{% include anchor_headings.html html=content anchorBody='#' anchorTitle='Link to %heading% section' anchorClass="book_heading_anchor" h_min=2 %}
{% unless page.isBookIndex %}
{% if page.name == "index.md" or page.name == "README.md" %}
Expand Down
4 changes: 4 additions & 0 deletions _sass/components/book.scss
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@
}
}

.book__improve {
margin-bottom: 2rem;
}

.book_page_toc {

h2 {
Expand Down

0 comments on commit eafe696

Please sign in to comment.