Add Pleroma tutorials

This commit is contained in:
lostinlight 2018-03-25 00:59:14 +03:00
parent 2c2f283d42
commit 93e2db93a1
3 changed files with 19 additions and 1 deletions

View File

@ -19,7 +19,8 @@
"mobile": "",
"tutorials":
[
{"id": "0", "url": "https://git.pleroma.social/pleroma/pleroma-fe/wikis/dual-boot-with-qvitter"}
{"id": "0", "url": "https://i2p.rocks/blog/the-magical-world-of-pleroma-setting-up-your-instance.html"},
{"id": "1", "url": "https://git.pleroma.social/pleroma/pleroma-fe/wikis/dual-boot-with-qvitter"}
],
"devTutorials": "https://git.pleroma.social/pleroma/pleroma/wikis/home",
"notable": "",

View File

@ -117,6 +117,10 @@ memberGuide: Member guide
adminGuide: Administrator guide
channel: Personal channels
#Pleroma page
ownInstance: Setting up your instance
dualQuitter: Dual boot with qvitter
# Contributing partial
foreword: Please, keep in mind that you are a participant, not a customer.
promptStart: If you'd like to help the

View File

@ -5,6 +5,8 @@ layout: layout
<%
const data = site.data.pleroma.data;
const tutorials = data.tutorials;
const tuts = [__('ownInstance'), __('dualQuitter')];
%>
<%- partial('_partial/heroheader') %>
@ -20,6 +22,17 @@ layout: layout
<h4><%- __('join') %></h4>
<span class="u-block"><a href="<%= data.servers %>"><%- __('nodeList') %></a></span>
</div>
<div class="section u-block">
<h4><%- __('tuts') %></h4>
<ul class="section-list">
<% for (item in tutorials) { %>
<% let n = tutorials[item].id %>
<li class="u-inline">
<a href="<%= tutorials[item].url %>"><%= tuts[n] %></a><span>&nbsp/&nbsp;</span>
</li>
<% } %>
</ul>
</div>
</section>
</div>