citra-web/site/themes/citra-bs-theme/layouts/entry/single.html
Pengfei Zhu 0cc308a307
Progress Report 2020 Q2 (#128)
* Push WIP Progress report

Also modified to add 'coauthor2'. Not exactly that clean (ideally would use an array), but works for now

* Why the heck is it not showing up

* inb4 simply need a forum here

* More contents

* Add some screenshots

* More pictures

* more screenshots

* add broken paper mario

* fix broken link

* small fixes

* added two screenshots

* Added links

* Fix core timing 2.0 regression paragraph

* Push the latest status

* address comment

* Playing with shortcodes

* Try fix embed

* Fix elsif

* Correctly set variable

* Messing with styles

* Attempt 2

* Update

* Fix link

* More fixes

* Apply suggestions from code review

Co-authored-by: MrShuzo <43962032+MrShuzo@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: MrShuzo <43962032+MrShuzo@users.noreply.github.com>

* Review comments & improvements

* Address Tobi's comments

* Another update

* Remove TODOs

* Update citra-progress-report-2020-q2.md

Co-authored-by: MrShuzo <43962032+MrShuzo@users.noreply.github.com>
2020-07-23 19:08:08 -07:00

55 lines
2.5 KiB
HTML

{{ 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 "" ) }}
{{ $coauthor2 := index .Site.Data.authors ( .Params.coauthor2 | default "" ) }}
<div class="entry-written-by">
{{ if $author }}
<a href="https://community.citra-emu.org/users/{{ $author.key }}">
<img src="{{ $author.avatar }}" class="avatar">
</a>
{{ end }}
{{ if $coauthor }}
<a href="https://community.citra-emu.org/users/{{ $coauthor.key }}">
<img src="{{ $coauthor.avatar }}" class="avatar">
</a>
{{ end }}
{{ if $coauthor2 }}
<a href="https://community.citra-emu.org/users/{{ $coauthor2.key }}">
<img src="{{ $coauthor2.avatar }}" class="avatar">
</a>
{{ end }}
{{ if and (and $author $coauthor) $coauthor2 }}
<p>Written by <a href="https://community.citra-emu.org/users/{{ $author.key }}">{{ $author.name }}</a>, <a href="https://community.citra-emu.org/users/{{ $coauthor.key }}">{{ $coauthor.name }}</a> and <a href="https://community.citra-emu.org/users/{{ $coauthor2.key }}">{{ $coauthor2.name }}</a> on {{ .Date.Format "Monday January 02, 2006" }}</p>
{{ else if and $author $coauthor }}
<p>Written by <a href="https://community.citra-emu.org/users/{{ $author.key }}">{{ $author.name }}</a> and <a href="https://community.citra-emu.org/users/{{ $coauthor.key }}">{{ $coauthor.name }}</a> on {{ .Date.Format "Monday January 02, 2006" }}</p>
{{ else if $author }}
<p>Written by <a href="https://community.citra-emu.org/users/{{ $author.key }}">{{ $author.name }}</a> on {{ .Date.Format "Monday January 02, 2006" }}</p>
{{ 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 }}