Commit dd113c6b authored by zauberstuhl's avatar zauberstuhl
Browse files

Merge branch 'add_post-full-image' into 'master'

Add post-full-image to header template

See merge request feneas/association!23
parents 816ec663 6e99a083
{{- define "footer"}}
</article>
</div>
</main>
<footer class="site-footer outer">
<div class="site-footer-content inner">
......
......@@ -36,4 +36,10 @@
</div>
</header>
<main id="site-main" class="site-main outer">
<div class="inner">
<article class="post-full post tag-feneas tag-meetings">
<header class="post-full-header">
<h1 class="post-full-title">{{.title}}</h1>
</header>
<figure class="post-full-image" style="background-image: url(https://feneas.org/content/images/2018/07/clint-adair-68588-unsplash-2-1.jpg)"></figure>
{{- end}}
{{set . "title" "Documents"}}
{{template "header" .}}
<div class="inner">
<article class="post-full post tag-feneas tag-meetings">
<header class="post-full-header">
<h1 class="post-full-title">{{.title}}</h1>
</header>
<section class="post-full-content">
{{range .JSON}}
{{$root := .}}
{{range .files}}
<p>
<a href="https://feneas.git.feneas.org/association/{{.}}">
{{$root.name}}
</a> - <small>{{.}}</small> - <small>{{date}}</small>
</p>
{{end}}
{{end}}
</section>
</article>
</div>
<section class="post-full-content">
{{range .JSON}}
{{$root := .}}
{{range .files}}
<p>
<a href="https://feneas.git.feneas.org/association/{{.}}">
{{$root.name}}
</a> - <small>{{.}}</small> - <small>{{date}}</small>
</p>
{{end}}
{{end}}
</section>
{{template "footer" .}}
{{set . "title" "Service Comparison"}}
{{template "header" .}}
<div class="inner">
<article class="post-full post tag-feneas tag-meetings">
<header class="post-full-header">
<h1 class="post-full-title">{{.title}}</h1>
</header>
<section class="post-full-content">
<table>
<thead>
<tr>
<th>Service</td>
<th>Non-Member</td>
<th>Member</td>
<th>Description</td>
</tr>
</thead>
<tbody>
{{range .JSON}}
<tr>
<th style="white-space:nowrap;">
{{- if .url_icon}}
<img style="max-width:100%;" src="{{.url_icon}}" alt="{{.url_icon}}" />
{{- else}}
{{- if .fa_icon}}
<i class="{{.fa_icon}}"></i>
{{- end}}
{{- end}} <b>{{.name}}</b>
</th>
<td style="text-align:center;">
{{- $level := toint .access}}
{{- if eq $level 0}}
<i class="fas fa-check-circle" style="color:#28a745;"></i>
{{- end}}
{{- if eq $level 1}}
<i class="fas fa-minus-circle"></i>
{{- end}}
{{- if eq $level 2}}
<i class="fas fa-times-circle" style="color:#dc3545;"></i>
{{- end}}
</td>
<td style="text-align:center;">
<i class="fas fa-check-circle text-success" style="color:#28a745;"></i>
</td>
<td style="white-space:normal;">{{raw .description}}</td>
</tr>
{{end}}
</tbody>
</table>
<p>We will extend this list in future! We want to provide many services but we need your help.</p>
<p>
Become a <a href="https://feneas.org/membership">member</a>
or buy some cool swag from our <a href="https://holvi.com/shop/feneas/">shop</a>
so that we can bring more federated and decentralized instances up.
</p>
</section>
</article>
</div>
<section class="post-full-content">
<table>
<thead>
<tr>
<th>Service</th>
<th>Non-Member</th>
<th>Member</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{{range .JSON}}
<tr>
<th style="white-space:nowrap;">
{{- if .url_icon}}
<img style="max-width:100%;" src="{{.url_icon}}" alt="{{.url_icon}}" />
{{- else}}
{{- if .fa_icon}}
<i class="{{.fa_icon}}"></i>
{{- end}}
{{- end}} <b>{{.name}}</b>
</th>
<td style="text-align:center;">
{{- $level := toint .access}}
{{- if eq $level 0}}
<i class="fas fa-check-circle" style="color:#28a745;"></i>
{{- end}}
{{- if eq $level 1}}
<i class="fas fa-minus-circle"></i>
{{- end}}
{{- if eq $level 2}}
<i class="fas fa-times-circle" style="color:#dc3545;"></i>
{{- end}}
</td>
<td style="text-align:center;">
<i class="fas fa-check-circle text-success" style="color:#28a745;"></i>
</td>
<td style="white-space:normal;">{{raw .description}}</td>
</tr>
{{end}}
</tbody>
</table>
<p>We will extend this list in future! We want to provide many services but we need your help.</p>
<p>
Become a <a href="https://feneas.org/membership">member</a>
or buy some cool swag from our <a href="https://holvi.com/shop/feneas/">shop</a>
so that we can bring more federated and decentralized instances up.
</p>
</section>
{{template "footer" .}}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment