mirror of
https://github.com/yuzu-emu/shared-bulma-theme
synced 2024-11-26 09:18:10 +00:00
updated theme, added twitter widget. removed sidebar.
This commit is contained in:
parent
968b6bb346
commit
673758d483
4 changed files with 34 additions and 22 deletions
|
@ -32,18 +32,7 @@
|
|||
{{ partial "navbar" . }}
|
||||
{{- end }}
|
||||
|
||||
<div class="container">
|
||||
<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>
|
||||
{{ block "main" . }}{{ end }}
|
||||
|
||||
<footer class="footer">
|
||||
<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 }}
|
||||
|
||||
<div class="columns">
|
||||
{{ range $paginator.Pages }}
|
||||
<div class="column">
|
||||
{{ .Render "summary" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ define "main" }}
|
||||
<div class="container">
|
||||
<section class="section">
|
||||
<div class="columns is-multiline">
|
||||
{{ range sort .Site.Data.twitter "order" }}
|
||||
<div class="column is-one-third">
|
||||
{{ partial "widget/tweet.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
{{ partial "pagination" . }} {{ end }}
|
||||
{{ 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 a new issue