mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-22 13:05:38 +01:00
updated theme, added twitter widget. removed sidebar.
This commit is contained in:
parent
968b6bb346
commit
673758d483
@ -32,18 +32,7 @@
|
|||||||
{{ partial "navbar" . }}
|
{{ partial "navbar" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
<div class="container">
|
{{ block "main" . }}{{ end }}
|
||||||
<section class="section">
|
|
||||||
<div class="columns">
|
|
||||||
<div class="column is-8">
|
|
||||||
{{ block "main" . }}{{ end }}
|
|
||||||
</div>
|
|
||||||
<div class="column is-4">
|
|
||||||
{{ partial "sidebar" . }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
0
layouts/_default/terms.html
Normal file
0
layouts/_default/terms.html
Normal file
@ -1,11 +1,13 @@
|
|||||||
{{ define "main" }} {{ $paginator := .Paginate (where .Data.Pages "Section" "entry") 3 }}
|
{{ define "main" }}
|
||||||
|
<div class="container">
|
||||||
<div class="columns">
|
<section class="section">
|
||||||
{{ range $paginator.Pages }}
|
<div class="columns is-multiline">
|
||||||
<div class="column">
|
{{ range sort .Site.Data.twitter "order" }}
|
||||||
{{ .Render "summary" }}
|
<div class="column is-one-third">
|
||||||
</div>
|
{{ partial "widget/tweet.html" . }}
|
||||||
{{ end }}
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
{{ partial "pagination" . }} {{ end }}
|
|
21
layouts/partials/widget/tweet.html
Normal file
21
layouts/partials/widget/tweet.html
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<a href="https://twitter.com/citraemu/status/{{ .id }}">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-content">
|
||||||
|
<div class="columns">
|
||||||
|
<div class="column is-2">
|
||||||
|
<figure class="image is-square">
|
||||||
|
<img src="{{ .Site.BaseURL}}/images/twitterAvatar.png" />
|
||||||
|
</figure>
|
||||||
|
</div>
|
||||||
|
<div class="column">
|
||||||
|
<p class="title is-4">{{ .author }}</p>
|
||||||
|
<p class="subtitle is-6">
|
||||||
|
<time datetime="2016-1-1">{{ .date }}</time> by @{{ .author }}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="content">
|
||||||
|
{{ .message }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
Loading…
Reference in New Issue
Block a user