mirror of
https://github.com/placeholder-soft/prodigyapi.git
synced 2026-04-29 20:35:01 +08:00
Add table of contents footer links feature
Now you can add links to the bottom of your table of contents!
Documentation has also been changed to reflect this new
feature.
Please note that if you have a custom variables.scss, you'll have
to merge in this line:
$nav-footer-border-color: #666;
This commit is contained in:
@@ -62,9 +62,17 @@ under the License.
|
||||
</head>
|
||||
|
||||
<body class="<%= page_classes %>">
|
||||
<div id="toc">
|
||||
<div class="tocify-wrapper">
|
||||
<%= image_tag "logo.png" %>
|
||||
<!-- table of contents will be inserted here -->
|
||||
<div id="toc">
|
||||
</div>
|
||||
<% if current_page.data.toc_footers %>
|
||||
<ul class="toc-footer">
|
||||
<% current_page.data.toc_footers.each do |footer| %>
|
||||
<li><%= footer %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="page-wrapper">
|
||||
<div class="content">
|
||||
|
||||
Reference in New Issue
Block a user