diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-01-10 01:50:37 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-01-10 01:50:37 +0900 |
| commit | dae1b45d1f3bc805161606ca5815dac210358db7 (patch) | |
| tree | d7e1bbdb5e6bdc7d94a4b05393479d2b216249b5 /templates | |
| parent | 302cb5323cb28a04a005be2d382b6349c6fde302 (diff) | |
| download | blog.nsfisis.dev-dae1b45d1f3bc805161606ca5815dac210358db7.tar.gz blog.nsfisis.dev-dae1b45d1f3bc805161606ca5815dac210358db7.tar.zst blog.nsfisis.dev-dae1b45d1f3bc805161606ca5815dac210358db7.zip | |
new post: phperkaigi-2023-unused-token-quiz-3
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/document__post.html.erb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/document__post.html.erb b/templates/document__post.html.erb index a52ac9a..a48a5f4 100644 --- a/templates/document__post.html.erb +++ b/templates/document__post.html.erb @@ -59,6 +59,15 @@ </section> <%= _content %> </div> + <% if footnotes? %> + <div id="footnotes"> + <% for footnote in footnotes %> + <div class="footnote" id="_footnotedef_<%= footnote.index %>"> + <a href="#_footnoteref_<%= footnote.index %>"><%= footnote.index %></a>. <%= footnote.text %> + </div> + <% end %> + </div> + <% end %> </article> </main> <footer class="footer"> |
