iamdoubz-update-from-src-patch/source/guide/index.html.erb
KitaitiMakoto 9460231982 Fix #77 Add language switcher (again) (#113)
Update README

Fix a typo

Prepend bundle exec to middleman command

Use link_to_lang helper

Use relative path for links

Append solidus to links to directory index

Update Bundler

Install Webrick

Add Webrick to dependencies

Remove Crowdin related code from template

Co-authored-by: Kitaiti Makoto <KitaitiMakoto@gmail.com>
Reviewed-on: plume/documentation#113
2020-12-27 15:51:03 +00:00

23 lines
No EOL
616 B
Text

---
title: The Guide
icon: book
summary: 'A guide helping you to use Plume'
priority: 4
---
<div class="cards">
<% sitemap.resources
.select{ |p| p.path =~ /\.html/ && p.path != "index.html" && p.url.chomp('/').split('/').size == 3 && p.path =~ /guide\// }
.sort{ |a, b| a.data.title <=> b.data.title }
.sort{ |a, b| -(a.data.priority || 0) <=> -(b.data.priority || 0) }
.each do |res|
%>
<article>
<i data-feather="<%= res.data.icon %>"></i>
<h2>
<%= link_to res.data.title, res %>
</h2>
<p><%= res.data.summary %></p>
</article>
<% end %>
</div>