zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

extra_template.eex (1448B)


      1 <%= head_template(config, %{title: node.title, type: type}) %>
      2 <%= sidebar_template(config, nodes_map) %>
      3 
      4 <h1>
      5   <%= settings_button_template() %>
      6   <%= if node.source_url do %>
      7     <a href="<%= node.source_url %>" title="View Source" class="view-source" rel="help">
      8       <i class="ri-code-s-slash-line" aria-hidden="true"></i>
      9       <span class="sr-only">View Source</span>
     10     </a>
     11   <% end %>
     12   <span><%= node.title_content %></span>
     13 </h1>
     14 
     15 <%= if type == :livemd do %>
     16   <div class="livebook-badge-container">
     17     <a href="#" class="livebook-badge">
     18       <img src="https://livebook.dev/badge/v1/blue.svg" alt="Run in Livebook" width="150" />
     19     </a>
     20   </div>
     21 <% end %>
     22 
     23 <%= link_headings(node.content) %>
     24 
     25 <div class="bottom-actions">
     26   <div class="bottom-actions-item">
     27     <%= if refs.prev do %>
     28       <a href="<%= refs.prev.path %>" class="bottom-actions-button" rel="prev">
     29         <span class="subheader">
     30           ← Previous Page
     31         </span>
     32         <span class="title">
     33           <%= refs.prev.title %>
     34         </span>
     35       </a>
     36     <% end %>
     37   </div>
     38   <div class="bottom-actions-item">
     39     <%= if refs.next do %>
     40       <a href="<%= refs.next.path %>" class="bottom-actions-button" rel="next">
     41         <span class="subheader">
     42           Next Page →
     43         </span>
     44         <span class="title">
     45           <%= refs.next.title %>
     46         </span>
     47       </a>
     48     <% end %>
     49   </div>
     50 </div>
     51 
     52 <%= footer_template(config, node) %>