1
0
mirror of https://git.feneas.org/feneas/fediverse.git synced 2024-12-23 15:58:51 +01:00
guida-fediverso/themes/starter/layout/mastodon.ejs

111 lines
3.4 KiB
Plaintext
Raw Normal View History

2018-03-12 20:31:14 +01:00
---
layout: layout
---
<%
const data = site.data.mastodon.data;
const tuts = [__('intro'), __('howto'), __('guide')];
2019-02-13 18:55:23 +01:00
const uxList = [__('twFriends'), __('uMatch'), __('mastoGallery'), __('trunk')];
2018-03-12 20:31:14 +01:00
const stats = [__('dashboards'), __('stats'), __('graphs')];
const tools = [__('mastoPreinstalled'), __('mastoHosting')];
2018-06-09 20:55:48 +02:00
const utils = [__('mastofeed'), __('crossposting'), __('feedPreview'), __('webmentions'), __('feed2toot')];
const forkTitles = [__('glitchSoc'), __('mastoEphemeral')];
2018-03-12 20:31:14 +01:00
%>
<%- partial('_partial/heroheader') %>
<main class="contents network">
<%- partial('_partial/header') %>
<div class="section-wrapper">
<%- partial('_partial/generalinfo') %>
<section class="column">
<div class="section u-block">
<h4><%- __('users') %></h4>
2018-06-09 20:55:48 +02:00
<ul class="section-list">
2018-08-24 00:18:07 +02:00
<% for (item in data.forUsers) { %>
<% let n = data.forUsers[item].id %>
2018-06-09 20:55:48 +02:00
<li>
2018-08-24 00:18:07 +02:00
<a href="<%= data.forUsers[item].url %>"><%= uxList[n] %></a>
2018-06-09 20:55:48 +02:00
</li>
<% } %>
</ul>
2018-03-12 20:31:14 +01:00
</div>
<div class="section u-block">
2018-08-24 00:18:07 +02:00
<h4><%- __('techies') %></h4>
<p class="u-nomargin"><a href="<%= data.awesome %>"><%- __('awesome') %></a></p>
<p class="u-nomargin"><a href="<%= data.backup %>"><%- __('backup') %></a></p>
2018-03-12 20:31:14 +01:00
<ul class="section-list">
2018-08-24 00:18:07 +02:00
<% for (item in data.services) { %>
<% let b = data.services[item].id %>
2018-03-12 20:31:14 +01:00
<li class="u-inline">
2018-08-24 00:18:07 +02:00
<a href="<%= data.services[item].url %>"><%= tools[b] %></a><span>&nbsp;/&nbsp;</span>
2018-03-12 20:31:14 +01:00
</li>
<% } %>
</ul>
</div>
2019-02-13 18:55:23 +01:00
</section>
</div>
<div class="section-wrapper">
<div class="column">
2018-03-12 20:31:14 +01:00
<div class="section u-block">
2019-02-13 18:55:23 +01:00
<h4><%- __('tuts') %></h4>
2018-03-12 20:31:14 +01:00
<ul class="section-list">
2019-02-13 18:55:23 +01:00
<% for (item in data.tutorials) { %>
<% let n = data.tutorials[item].id %>
<li class="u-inline">
<a href="<%= data.tutorials[item].url %>"><%= tuts[n] %></a><span>&nbsp;/&nbsp;</span>
2018-03-12 20:31:14 +01:00
</li>
<% } %>
</ul>
</div>
2018-06-12 14:52:48 +02:00
<div class="section u-block">
2018-03-12 20:31:14 +01:00
<h4><%- __('utilities') %></h4>
<ul class="section-list">
2018-08-24 00:18:07 +02:00
<% for (item in data.utilities) { %>
<% let u = data.utilities[item].id %>
2018-03-12 20:31:14 +01:00
<li>
2018-08-24 00:18:07 +02:00
<a href="<%= data.utilities[item].url %>"><%= utils[u] %></a>
2018-03-12 20:31:14 +01:00
</li>
<% } %>
</ul>
</div>
</div>
<div class="column">
2018-06-12 14:52:48 +02:00
<div class="section u-block">
2018-03-12 20:31:14 +01:00
<ul class="section-list">
2019-02-13 18:55:23 +01:00
<h4><%- __('forks') %></h4>
<% for (item in data.forks) { %>
<% let b = data.forks[item].id %>
<li>
<a href="<%= data.forks[item].url %>"><%= forkTitles[b] %></a>
2018-03-12 20:31:14 +01:00
</li>
<% } %>
</ul>
2018-06-09 20:55:48 +02:00
</div>
<div class="section u-block">
2018-08-24 00:18:07 +02:00
<h4><%- __('metrics') %></h4>
2018-05-05 23:43:55 +02:00
<ul class="section-list">
2018-08-24 00:18:07 +02:00
<% for (item in data.metrics) { %>
<% let s = data.metrics[item].id %>
<li class="u-inline">
<a href="<%= data.metrics[item].url %>"><%= stats[s] %></a><span>&nbsp;/&nbsp;</span>
2018-05-05 23:43:55 +02:00
</li>
<% } %>
</ul>
2018-03-12 20:31:14 +01:00
</div>
</div>
</div>
<%- partial('_partial/world') %>
<br>
<%- partial('_partial/contributing') %>
<%- partial('_partial/buttons') %>
</main>