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" . }} {{ 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">

View File

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

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>