updated theme, added twitter widget. removed sidebar.

This commit is contained in:
Chris 2018-01-07 03:19:45 -05:00
parent 968b6bb346
commit 673758d483
4 changed files with 34 additions and 22 deletions

View file

@ -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">

View file

View 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 }}

View 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>