fediparty/themes/starter/layout/mastodon.ejs

103 lines
2.9 KiB
Plaintext
Raw Normal View History

2018-03-12 19:31:14 +00:00
---
layout: layout
network: true
2018-03-12 19:31:14 +00:00
---
<%
const data = site.data.mastodon.data;
2019-07-11 20:55:16 +00:00
const tuts = [__('howto'), __('guide')];
2023-10-23 18:04:55 +00:00
const uxList = [__('pinafore'), __('halcyon'), __('trunk'), __('fediDir')];
const tech = [__('awesome'), __('backup')];
const tools = [__('preinstalled'), __('mediaHosting')];
2023-08-01 20:29:27 +00:00
const utils = [__('mastofeed'), __('feed2toot'), __('pleromaBot')];
2018-03-12 19:31:14 +00:00
%>
<%- partial('_partial/heroheader') %>
<main class="contents">
2018-03-12 19:31:14 +00:00
<%- partial('_partial/header') %>
<div class="section-wrapper">
<%- partial('_partial/generalinfo') %>
<section class="column">
<div class="section u-block inline-items">
2018-03-12 19:31:14 +00:00
<h4><%- __('users') %></h4>
2018-06-09 18:55:48 +00:00
<ul class="section-list">
2018-08-23 22:18:07 +00:00
<% for (item in data.forUsers) { %>
<% let n = data.forUsers[item].id %>
2018-06-09 18:55:48 +00:00
<li>
2018-08-23 22:18:07 +00:00
<a href="<%= data.forUsers[item].url %>"><%= uxList[n] %></a>
2018-06-09 18:55:48 +00:00
</li>
<% } %>
</ul>
2018-03-12 19:31:14 +00:00
</div>
<div class="section u-block inline-items">
2018-08-23 22:18:07 +00:00
<h4><%- __('techies') %></h4>
2018-03-12 19:31:14 +00:00
<ul class="section-list">
<% for (item in data.forTechies) { %>
<% let c = data.forTechies[item].id %>
<li>
<a href="<%= data.forTechies[item].url %>"><%= tech[c] %></a>
</li>
<% } %>
2018-08-23 22:18:07 +00:00
<% for (item in data.services) { %>
<% let b = data.services[item].id %>
2018-03-12 19:31:14 +00:00
<li class="u-inline">
2018-08-23 22:18:07 +00:00
<a href="<%= data.services[item].url %>"><%= tools[b] %></a><span>&nbsp;/&nbsp;</span>
2018-03-12 19:31:14 +00:00
</li>
<% } %>
</ul>
</div>
2019-02-13 17:55:23 +00:00
</section>
</div>
<div class="section-wrapper">
<div class="column">
<div class="section u-block inline-items">
2019-02-13 17:55:23 +00:00
<h4><%- __('tuts') %></h4>
2018-03-12 19:31:14 +00:00
<ul class="section-list">
2019-02-13 17:55:23 +00: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 19:31:14 +00:00
</li>
<% } %>
</ul>
</div>
<div class="section u-block inline-items">
2018-03-12 19:31:14 +00:00
<h4><%- __('utilities') %></h4>
<ul class="section-list">
2018-08-23 22:18:07 +00:00
<% for (item in data.utilities) { %>
<% let u = data.utilities[item].id %>
2018-03-12 19:31:14 +00:00
<li>
2018-08-23 22:18:07 +00:00
<a href="<%= data.utilities[item].url %>"><%= utils[u] %></a>
2018-03-12 19:31:14 +00:00
</li>
<% } %>
</ul>
</div>
</div>
<div class="column">
<div class="section u-block inline-items">
<h4><%- __('forks') %></h4>
2018-03-12 19:31:14 +00:00
<ul class="section-list">
2019-02-13 17:55:23 +00:00
<% for (item in data.forks) { %>
<li>
<a href="<%= data.forks[item].url %>"><%= data.forks[item].descr %></a>
2018-03-12 19:31:14 +00:00
</li>
<% } %>
</ul>
2018-06-09 18:55:48 +00:00
</div>
2018-03-12 19:31:14 +00:00
</div>
</div>
<%- partial('_partial/world') %>
<br>
<%- partial('_partial/contributing') %>
<%- partial('_partial/buttons') %>
</main>