2017-02-26 21:24:53 +00:00
|
|
|
{{ define "main" }}
|
|
|
|
{{ .Render "header" }}
|
|
|
|
|
|
|
|
<div class="entry-content">
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ $author := index .Site.Data.authors ( .Params.author | default "" ) }}
|
|
|
|
{{ $coauthor := index .Site.Data.authors ( .Params.coauthor | default "" ) }}
|
2020-07-24 02:08:08 +00:00
|
|
|
{{ $coauthor2 := index .Site.Data.authors ( .Params.coauthor2 | default "" ) }}
|
2017-02-26 21:24:53 +00:00
|
|
|
|
|
|
|
<div class="entry-written-by">
|
|
|
|
{{ if $author }}
|
2023-03-08 02:59:45 +00:00
|
|
|
<a href="https://community.citra-emu.org/u/{{ $author.key }}">
|
2017-02-26 21:24:53 +00:00
|
|
|
<img src="{{ $author.avatar }}" class="avatar">
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
{{ if $coauthor }}
|
2023-03-08 02:59:45 +00:00
|
|
|
<a href="https://community.citra-emu.org/u/{{ $coauthor.key }}">
|
2017-02-26 21:24:53 +00:00
|
|
|
<img src="{{ $coauthor.avatar }}" class="avatar">
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
2020-07-24 02:08:08 +00:00
|
|
|
{{ if $coauthor2 }}
|
2023-03-08 02:59:45 +00:00
|
|
|
<a href="https://community.citra-emu.org/u/{{ $coauthor2.key }}">
|
2020-07-24 02:08:08 +00:00
|
|
|
<img src="{{ $coauthor2.avatar }}" class="avatar">
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
2017-02-26 21:24:53 +00:00
|
|
|
|
2020-07-24 02:08:08 +00:00
|
|
|
{{ if and (and $author $coauthor) $coauthor2 }}
|
2023-03-08 02:59:45 +00:00
|
|
|
<p>Written by <a href="https://community.citra-emu.org/u/{{ $author.key }}">{{ $author.name }}</a>, <a href="https://community.citra-emu.org/u/{{ $coauthor.key }}">{{ $coauthor.name }}</a> and <a href="https://community.citra-emu.org/u/{{ $coauthor2.key }}">{{ $coauthor2.name }}</a> on {{ .Date.Format "Monday January 02, 2006" }}</p>
|
2020-07-24 02:08:08 +00:00
|
|
|
{{ else if and $author $coauthor }}
|
2023-03-08 02:59:45 +00:00
|
|
|
<p>Written by <a href="https://community.citra-emu.org/u/{{ $author.key }}">{{ $author.name }}</a> and <a href="https://community.citra-emu.org/u/{{ $coauthor.key }}">{{ $coauthor.name }}</a> on {{ .Date.Format "Monday January 02, 2006" }}</p>
|
2017-02-26 21:24:53 +00:00
|
|
|
{{ else if $author }}
|
2023-03-08 02:59:45 +00:00
|
|
|
<p>Written by <a href="https://community.citra-emu.org/u/{{ $author.key }}">{{ $author.name }}</a> on {{ .Date.Format "Monday January 02, 2006" }}</p>
|
2017-02-26 21:24:53 +00:00
|
|
|
{{ else }}
|
|
|
|
<p>No author was provided. Written on {{ .Date.Format "Monday January 02, 2006" }}</p>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ if .Params.forum }}
|
|
|
|
<div class="entry-comments">
|
|
|
|
<div id="discourse-comments"></div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
DiscourseEmbed = { discourseUrl: 'https://community.citra-emu.org/', topicId: "{{ .Params.forum }}" };
|
|
|
|
(function() {
|
|
|
|
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
|
|
|
|
d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
|
|
|
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ end }}
|