Update the grid-side theme

This commit is contained in:
2019-03-30 23:28:05 +00:00
parent 5255e9afd8
commit bc53f31743
281 changed files with 14134 additions and 54 deletions

View File

@@ -0,0 +1,43 @@
{{ partial "core/html-start.html" . }}
{{ partial "core/head.html" . }}
<body>
{{ partial "core/main-menu.html" . }}
{{ $sp := .Site.Params }}
{{ if and (isset $sp "Post") (isset $sp.Post "infinite_scroll") }}
{{ with $sp.Post.infinite_scroll }}
{{ $.Scratch.Set "infinite_scroll" (eq . true) }}
{{ end }}
{{ else }}
{{ $.Scratch.Set "infinite_scroll" false }}
{{ end }}
{{ if eq ($.Scratch.Get "infinite_scroll") false }}
{{ with $sp.infinite_scroll }}
{{ $.Scratch.Set "infinite_scroll" (eq . true) }}
{{ else }}
{{ $.Scratch.Set "infinite_scroll" false }}
{{ end }}
{{ end }}
{{ $infinite_scroll := $.Scratch.Get "infinite_scroll" }}
<section class="main-content">
<div class="masonry-flex-container {{ if $infinite_scroll }}infinite-scroll{{ end }}">
{{ if .IsNode }}
{{ range .Paginator.Pages }}
<div class="flex-item">
{{ partial "post/page-item.html" . }}
</div>
{{ end }}
{{ end }}
</div>
{{ partial "extra/pagination.html" . }}
</section>
{{ partial "core/js.html" . }}
</body>
{{ partial "core/html-end.html" . }}

View File

@@ -0,0 +1,24 @@
{{ $baseUrl := .Site.BaseURL }}
<div class="page-item-container">
{{ with .Params.image }}
<img src="{{ $baseUrl }}{{ . }}" class="page-item-image"></img>
{{ end }}
<div class="page-item-content">
<header>
{{ if not .Date.IsZero }}
<time class="page-item-date">{{ .Date.Format "Mon Jan 02, 2006" }}</time>
{{ end }}
<h2 class="page-item-title">{{ .Title }}</h2>
</header>
<p class="page-item-summary">{{ .Summary }}</p>
<a href="{{ .Permalink }}" class="page-item-btn {{ if .Params.redirect }}page-item-btn-red{{ end }}">
{{ if .Params.redirect }}Redirect{{ else }}Read More{{ end }}
</a>
<footer>
{{ partial "extra/categories.html" . }}
<span class="separator">|</span>
{{ partial "extra/tags.html" . }}
</footer>
</div>
</div>

View File

@@ -0,0 +1,48 @@
{{ partial "core/html-start.html" . }}
{{ partial "core/head.html" . }}
<body class="page-colors minimum-viewport-height">
{{ partial "core/main-menu.html" . }}
<div class="main-content">
<div class="center-space">
<div class="article-colors">
{{ with .Params.image }}
<img src="{{ . }}" class="fill-container-width"></img>
{{ end }}
<article>
<header>
<h1 class="article-title">{{ .Title }}</h1>
<time class="date-color">{{ .Date.Format "Mon Jan 02, 2006" }}</time>
<span class="separator">|</span>
{{ partial "extra/categories.html" . }}
<span class="separator">|</span>
{{ partial "extra/tags.html" . }}
</header>
<hr>
<section>
{{ with .Params.redirect }}
<p>If you are not redirected automatically, follow the <a href="{{ . }}">link</a>.</p>
{{ else }}
{{ .Content }}
{{ end }}
</section>
<footer class="right-align">
<p><small>{{ .Site.Copyright | markdownify }}</small></p>
</footer>
{{ partial "extra/disqus.html" . }}
</article>
</div>
</div>
</div>
{{ partial "core/js.html" . }}
</body>
{{ partial "core/html-end.html" . }}

View File

@@ -0,0 +1,41 @@
{{ partial "core/html-start.html" . }}
{{ partial "core/head.html" . }}
<body class="page-colors minimum-viewport-height">
{{ partial "core/main-menu.html" . }}
<div class="main-content">
<div class="center-space">
<div class="article-colors article-shadow">
<article>
<header>
<h2 class="article-title">{{ .Title }}</h2>
</header>
<hr>
<section>
<h5>
<ul class="columns columns-responsive">
{{ $baseUrl := .Site.BaseURL }}
{{ $data := .Data }}
{{ range $key, $value := .Data.Terms.Alphabetical }}
<li>
<a href="{{ $baseUrl}}{{ $data.Plural }}/{{ $value.Name | urlize }}">{{ $value.Name }}</a> {{ $value.Count }}
</li>
{{ end }}
</ul>
</h5>
</section>
</article>
</div>
</div>
</div>
{{ partial "core/js.html" . }}
</body>
{{ partial "core/html-end.html" . }}