diff options
Diffstat (limited to 'templates/section.html.erb')
| -rw-r--r-- | templates/section.html.erb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/section.html.erb b/templates/section.html.erb new file mode 100644 index 0000000..1510595 --- /dev/null +++ b/templates/section.html.erb @@ -0,0 +1,19 @@ +<% _level = level %> +<% _role = role %> +<% _id = id %> +<% _title = caption ? captioned_title : title %> +<% _content = content %> +<section class="section-<%= _level %><%= _role ? " #{role}" : '' %>"> + <h<%= _level + 1 %> id="<%= _id %>" class="section-header"> + <% if _id %> + <a href="#<%= _id %>"> + <%= _title %> + </a> + <% else %> + <%= _title %> + <% end %> + </h<%= _level + 1 %>> + <div class="section-body"> + <%= _content %> + </div> +</section> |
