Updated shared-bulma-theme.

This commit is contained in:
Chris 2018-04-14 19:34:02 -04:00
parent c7760b9895
commit fd06101484
4 changed files with 12 additions and 104 deletions

View file

@ -58,7 +58,7 @@
{{ block "header" . }}{{ end }} {{ block "header" . }}{{ end }}
{{ $full_width := .Params.FullWidth | default false }} {{ $full_width := .Params.FullWidth | default false }}
{{- if .IsHome }} {{- if eq .IsPage false }}
<div class="container"> <div class="container">
{{ block "main" . }}{{ end }} {{ block "main" . }}{{ end }}
</div> </div>

View file

@ -9,13 +9,13 @@
<div class="mt-lg"> <div class="mt-lg">
<span class="h3 px-md py-sm has-background-dark"> <span class="h3 px-md py-sm has-background-dark">
Written by <a href="https://community.citra-emu.org/users/{{ $author.key }}">{{ $author.name }}</a> Written by <a href="https://community.citra-emu.org/users/{{ $author.key }}">{{ $author.name }}</a>
on {{ .Date.Format "January 02 2006" }} on {{ .Date.Format $.Site.Params.fmt.Date }}
</span> </span>
</div> </div>
{{ else }} {{ else }}
<div> <div>
<span class="h3 px-md py-sm has-background-dark"> <span class="h3 px-md py-sm has-background-dark">
Written on {{ .Date.Format "January 02 2006" }} Written on {{ .Date.Format $.Site.Params.fmt.Date }}
</span> </span>
</div> </div>
{{ end }} {{ end }}
@ -28,19 +28,10 @@
{{ .Content }} {{ .Content }}
</div> </div>
<!--
{{ if .Params.forum }} {{ if .Params.forum }}
<div class="entry-comments"> <div class="has-text-centered">
<div id="discourse-comments"></div> <a class="pagination-next" href="https://community.citra-emu.org/t/{{ .Params.forum }}">Continue the discussion on our forums.</a>
<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> </div>
{{ end }} {{ end }}
-->
{{ end }} {{ end }}

View file

@ -1,85 +0,0 @@
{{ define "main" }}
<section class="section">
<div class="container">
<h1 class="title">{{ .Title }}</h1>
<article class="message has-text-weight-semibold">
<div class="message-body">
<p>At this time, yuzu does not run any commercial Switch games. yuzu can boot some games, to varying degrees
of success, but does not implement any of the necessary GPU features to render 3D graphics. </p>
<p>
<a href="https://yuzu-emu.org/wiki/switch-homebrew/">Click here</a> for homebrew games you can download and test.</p>
</div>
</article>
<div class="content">
{{ .Content }}
</div>
</div>
</section>
<!-- Advertisement -->
<section class="hero is-info">
<div class="hero-body">
<div class="has-text-centered">
<ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="{{ .Site.Params.GoogleAdsenseClient }}"
data-ad-slot="1038554045"></ins>
</div>
</div>
</section>
<div class="section">
<div class="container">
<div class="columns">
<!-- Nightly -->
<div class="column">
<h3>Nightly Build
<span style='font-size: smaller; margin-left: 6px;'>
Last release was
<span id='last-updated-nightly'></span>
</span>
</h3>
<div id="downloads-nightly">
</div>
<div id="unavailable-nightly" class="is-hidden">There was a problem checking GitHub. Click the link below to view them directly.</div>
<br />
<div class="has-text-centered">
<a href="https://github.com/yuzu-emu/yuzu-nightly/releases">Click here to view previous versions...</a>
</div>
</div>
<div class="column">
<h3>Canary Build
<span style='font-size: smaller; margin-left: 6px;'>
Last release was
<span id='last-updated-canary'></span>
</span>
</h3>
<div id="downloads-canary">
</div>
<div id="unavailable-canary" class="is-hidden">There was a problem checking GitHub. Click the link below to view them directly.</div>
<br />
<div class="has-text-centered">
<a href="https://github.com/yuzu-emu/yuzu-canary/releases">Click here to view previous versions...</a>
</div>
</div>
</div>
</div>
</div>
{{ end }}
{{ define "scripts" }}
<script type="text/javascript">
function fetchReleases() {
getRelease('nightly');
getRelease('canary');
}
fetchReleases();
</script>
{{ end }}

View file

@ -1,13 +1,14 @@
{{ if .Params.twitter }} {{ if .Params.twitter }}
<div class="mb-md blog-entry-header summary twitter" data-href="{{ .Params.twitterUrl }}"> <div class="mb-md blog-entry-header summary twitter" style="background-image: none;" data-href="{{ .Params.twitterUrl }}">
<div class="px-md"> <div class="px-md has-text-weight-semibold">
<span class="h3">{{ .Date.Format $.Site.Params.fmt.Date }}</span> -
<span class="h3 moment-timeago">{{ .Date.Format $.Site.Params.fmt.ISO8601 }}</span> <span class="h3 moment-timeago">{{ .Date.Format $.Site.Params.fmt.ISO8601 }}</span>
</div> </div>
<div class="mt-md px-md"> <div class="mt-md px-md">
<span class="h3">{{ .Content }}</span> <span class="h3">{{ .Content }}</span>
</div> </div>
<div style="position: absolute; bottom: 0; right: 0;"> <div class="px-md py-sm" style="position: absolute; bottom: 0; right: 0;">
<span class="h3 px-md py-sm has-background-dark"> <span class="h3">
<a href="{{ .Params.twitterUrl }}">View Tweet</a> <a href="{{ .Params.twitterUrl }}">View Tweet</a>
</span> </span>
</div> </div>
@ -19,6 +20,7 @@
<span class="title">{{ .Title }}</span> <span class="title">{{ .Title }}</span>
</div> </div>
<div class="px-md"> <div class="px-md">
<span class="h3">{{ .Date.Format $.Site.Params.fmt.Date }}</span> -
<span class="h3 moment-timeago">{{ .Date.Format $.Site.Params.fmt.ISO8601 }}</span> <span class="h3 moment-timeago">{{ .Date.Format $.Site.Params.fmt.ISO8601 }}</span>
</div> </div>
<div class="mt-md px-md"> <div class="mt-md px-md">