Commit 9053c0b0 authored by Mike Jones's avatar Mike Jones

Basic styling for tags, fix pagination on author and tax taxonomies and project list

parent 9da2ced4
Pipeline #146 failed with stage
in 16 seconds
---
title: "quoteDB"
date: 2019-01-06T19:40:38Z
draft: false
description: |
quoteDB is an open-source bash.org inspired application for storing and
managing quotes from IRC channels, providing a web frontend for viewing
quotes.
os_link: https://git.netsplit.uk/mike/quoteDB
type: project
kind: project
tags: [ "irc", "golang", "docker" ]
authors: [ "Mike Jones" ]
---
Test about quoteDB.
---
title: "quoteDB"
date: 2019-01-06T19:40:38Z
draft: false
description: |
quoteDB is an open-source bash.org inspired application for storing and
managing quotes from IRC channels, providing a web frontend for viewing
quotes.
os_link: https://git.netsplit.uk/mike/quoteDB
type: project
kind: project
tags: [ "irc", "golang", "docker" ]
authors: [ "Mike Jones" ]
---
Test about quoteDB.
---
title: "quoteDB"
date: 2019-01-06T19:40:38Z
draft: false
description: |
quoteDB is an open-source bash.org inspired application for storing and
managing quotes from IRC channels, providing a web frontend for viewing
quotes.
os_link: https://git.netsplit.uk/mike/quoteDB
type: project
kind: project
tags: [ "irc", "golang", "docker" ]
authors: [ "Mike Jones" ]
---
Test about quoteDB.
---
title: "quoteDB"
date: 2019-01-06T19:40:38Z
draft: false
description: |
quoteDB is an open-source bash.org inspired application for storing and
managing quotes from IRC channels, providing a web frontend for viewing
quotes.
os_link: https://git.netsplit.uk/mike/quoteDB
type: project
kind: project
tags: [ "irc", "golang", "docker" ]
authors: [ "Mike Jones" ]
---
Test about quoteDB.
---
title: "quoteDB"
date: 2019-01-06T19:40:38Z
draft: false
description: |
quoteDB is an open-source bash.org inspired application for storing and
managing quotes from IRC channels, providing a web frontend for viewing
quotes.
os_link: https://git.netsplit.uk/mike/quoteDB
type: project
kind: project
tags: [ "irc", "golang", "docker" ]
authors: [ "Mike Jones" ]
---
Test about quoteDB.
---
title: "quoteDB"
date: 2019-01-06T19:40:38Z
draft: false
description: |
quoteDB is an open-source bash.org inspired application for storing and
managing quotes from IRC channels, providing a web frontend for viewing
quotes.
os_link: https://git.netsplit.uk/mike/quoteDB
type: project
kind: project
tags: [ "irc", "golang", "docker" ]
authors: [ "Mike Jones" ]
---
Test about quoteDB.
---
title: "quoteDB"
date: 2019-01-06T19:40:38Z
draft: false
description: |
quoteDB is an open-source bash.org inspired application for storing and
managing quotes from IRC channels, providing a web frontend for viewing
quotes.
os_link: https://git.netsplit.uk/mike/quoteDB
type: project
kind: project
tags: [ "irc", "golang", "docker" ]
authors: [ "Mike Jones" ]
---
Test about quoteDB.
---
title: "quoteDB"
date: 2019-01-06T19:40:38Z
draft: false
description: |
quoteDB is an open-source bash.org inspired application for storing and
managing quotes from IRC channels, providing a web frontend for viewing
quotes.
os_link: https://git.netsplit.uk/mike/quoteDB
type: project
kind: project
tags: [ "irc", "golang", "docker" ]
authors: [ "Mike Jones" ]
---
Test about quoteDB.
---
title: "quoteDB"
date: 2019-01-06T19:40:38Z
draft: false
description: |
quoteDB is an open-source bash.org inspired application for storing and
managing quotes from IRC channels, providing a web frontend for viewing
quotes.
os_link: https://git.netsplit.uk/mike/quoteDB
type: project
kind: project
tags: [ "irc", "golang", "docker" ]
authors: [ "Mike Jones" ]
---
Test about quoteDB.
---
title: "quoteDB"
date: 2019-01-06T19:40:38Z
draft: false
description: |
quoteDB is an open-source bash.org inspired application for storing and
managing quotes from IRC channels, providing a web frontend for viewing
quotes.
os_link: https://git.netsplit.uk/mike/quoteDB
type: project
kind: project
tags: [ "irc", "golang", "docker" ]
authors: [ "Mike Jones" ]
---
Test about quoteDB.
---
title: "quoteDB"
date: 2019-01-06T19:40:38Z
draft: false
description: |
quoteDB is an open-source bash.org inspired application for storing and
managing quotes from IRC channels, providing a web frontend for viewing
quotes.
os_link: https://git.netsplit.uk/mike/quoteDB
type: project
kind: project
tags: [ "irc", "golang", "docker" ]
authors: [ "Mike Jones" ]
---
Test about quoteDB.
......@@ -11,3 +11,4 @@
@import "segments/article-summary";
@import "segments/post-pagination";
@import "segments/page-footer";
@import "segments/tags";
......@@ -40,3 +40,14 @@
//@import "../../node_modules/bootstrap/scss/carousel";
@import "../../node_modules/bootstrap/scss/utilities";
@import "../../node_modules/bootstrap/scss/print";
// Basic overrides
.badge-secondary {
background: $light-grey;
color: $link-inactive;
}
.badge {
padding: 0.5rem;
}
nav.pagination-nav {
float: right;
margin-top: 1rem;
padding: $big-padding;
ul.pagination {
float: right;
}
a.disabled:hover {
background: none;
......
ul.tag-list {
list-style-type: none;
padding: 0;
li {
display: inline;
}
}
......@@ -5,31 +5,38 @@
{{ $next := "Next" }}
<nav aria-label="Pagination tools" class="pagination-nav">
<ul class="pagination">
<li class="page-item">
{{ if $paginator.HasPrev }}
<a class="page-link" href="{{ $paginator.Prev.URL }}">{{ $prev }}</a>
{{ else }}
<a class="page-link disabled">{{ $prev }}</a>
{{ end }}
</li>
<div class="row">
<div class="col">
<a title="RSS feed" href="/index.xml"><i class="fa fa-rss"></i></a>
</div>
<div class="col">
<ul class="pagination">
<li class="page-item">
{{ if $paginator.HasPrev }}
<a class="page-link" href="{{ $paginator.Prev.URL }}">{{ $prev }}</a>
{{ else }}
<a class="page-link disabled">{{ $prev }}</a>
{{ end }}
</li>
{{ range $paginator.Pagers }}
<li class="page-item{{ if eq . $paginator }} active{{ end }}">
<a href="{{ .URL }}" class="page-link">
{{ .PageNumber }}
</a>
</li>
{{ end }}
{{ range $paginator.Pagers }}
<li class="page-item{{ if eq . $paginator }} active{{ end }}">
<a href="{{ .URL }}" class="page-link">
{{ .PageNumber }}
</a>
</li>
{{ end }}
<li class="page-item">
{{ if $paginator.HasNext }}
<a class="page-link" href="{{ $paginator.Next.URL }}">{{ $next }}</a>
{{ else }}
<a class="page-link disabled">{{ $next }}</a>
{{ end }}
</li>
</ul>
<li class="page-item">
{{ if $paginator.HasNext }}
<a class="page-link" href="{{ $paginator.Next.URL }}">{{ $next }}</a>
{{ else }}
<a class="page-link disabled">{{ $next }}</a>
{{ end }}
</li>
</ul>
</div>
</div>
</nav>
<div class="clearfix"></div>
......
......@@ -9,26 +9,6 @@
{{ .Date.Format "02 Jan 2006, 15:04" }}
{{ end }}
</li>
{{ if isset .Params "tags" }}
<li>
Tags:
{{ $count := len .Params.tags }}
{{ if gt $count 0 }}
<ul>
{{ range $k, $v := .Params.tags }}
<li>
<a
class="badge badge-secondary"
href="{{ $baseUrl }}tags/{{ . | urlize }}"
>{{ . }}</a>
</li>
{{ end }}
</ul>
{{ end }}
</li>
{{ end }}
{{ if isset .Params "authors" }}
{{ $count := len .Params.authors }}
......
......@@ -11,6 +11,6 @@
</section>
<footer class="post-footer">
{{ partial "tags.html" . }}
</footer>
</article>
{{ if isset .Params "tags" }}
{{ $count := len .Params.tags }}
{{ if gt $count 0 }}
<ul class="tag-list">
{{ range $k, $v := .Params.tags }}
<li>
<a
class="badge badge-secondary"
href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}"
>{{ . }}</a>
</li>
{{ end }}
</ul>
{{ end }}
{{ end }}
{{ define "main" }}
{{ $paginator := .Paginate (where .Data.Pages "Type" "project") }}
{{ $paginator := .Paginate .Data.Pages }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
{{ partial "pagination.html" . }}
{{ end }}
......@@ -21,9 +21,13 @@
</header>
<section class="post-content">
{{ range .Data.Pages }}
{{ $paginator := .Paginate .Data.Pages }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
{{ partial "pagination.html" . }}
</section>
<footer class="post-footer"></footer>
......
......@@ -5,9 +5,13 @@
</header>
<section class="post-content">
{{ range .Data.Pages }}
{{ $paginator := .Paginate .Data.Pages }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
{{ partial "pagination.html" . }}
</section>
<footer class="post-footer"></footer>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment