25 lines
628 B
Text
25 lines
628 B
Text
|
<% if notes.any? { |note| note['kind'] == 'self' } -%>
|
||
|
|
||
|
<h2>Self references</h2>
|
||
|
|
||
|
<ol>
|
||
|
<% notes.select { |note| note['kind'] == 'self' }.each do |note| -%>
|
||
|
<li id="<%= note['anchor'] %>" value="<%= note['index'] %>">
|
||
|
<a href="<%= note['id'] %>.html"><%= note['text'] %></a>
|
||
|
</li>
|
||
|
<% end -%>
|
||
|
</ol>
|
||
|
<% end -%>
|
||
|
<% if notes.any? { |note| note['kind'] == 'link' } -%>
|
||
|
|
||
|
<h2>Link references</h2>
|
||
|
|
||
|
<ol>
|
||
|
<% notes.select { |note| note['kind'] == 'link' }.each do |note| -%>
|
||
|
<li id="<%= note['anchor'] %>" value="<%= note['index'] %>">
|
||
|
<a href="<%= note['url'] %>"><%= note['text'] %></a>
|
||
|
</li>
|
||
|
<% end -%>
|
||
|
</ol>
|
||
|
<% end -%>
|