Compare commits

..

No commits in common. "d6e950e4463fa7d5c86d6b2d0d291bf351471643" and "5c6b081ba2eeeb861190219c3f40112ee39c60eb" have entirely different histories.

5 changed files with 31 additions and 43 deletions

View File

@ -6,4 +6,4 @@ draft: false
this is a blog for this is a blog for
[friends of mineral town](https://friends.of.mineral.town), [friends of mineral town](https://friends.of.mineral.town),
a record of various objects and projects. any questions and concerns can be a record of various objects and projects. any questions and concerns can be
directed to [steven [at] mineral [dot] town](mailto:steven@mineral.town). directed to steven@mineral.town.

View File

@ -1,12 +1,14 @@
<hr/> <hr/>
<div class="row"> <div class="row">
<ul class="nav one-half column"> <ul class="nav">
<li class="mb-1"><a href="/" class="text-secondary">home</a></li> <li class="mb-1"><a href="/" class="text-secondary">home</a></li>
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
<li class="mb-1"><a href="{{ .URL }}" class="text-secondary">{{ .Name }}</a></li> <li class="mb-1"><a href="{{ .URL }}" class="text-secondary">{{ .Name }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
<div class="one-half column"> </div>
<div class="row">
<div class="one-half column" style="margin-top: 2em">
<p>{{ .Site.Title }} copyright 2021 {{ .Site.Copyright }}</p> <p>{{ .Site.Title }} copyright 2021 {{ .Site.Copyright }}</p>
</div> </div>
</div> </div>

View File

@ -3,30 +3,35 @@
{{ $paginator = .Data }} {{ $paginator = .Data }}
{{ end }} {{ end }}
{{ if gt $paginator.TotalPages 1 }} {{ if gt $paginator.TotalPages 1 }}
{{ $.Scratch.Set "dot_rendered" false }}
<nav aria-label="page navigation"> <nav aria-label="page navigation">
<ul class="pagination"> <ul class="pagination">
{{ if and (ne $paginator.PageNumber 1) (ne $paginator.PageNumber 2) }} {{ if and (ne $paginator.PageNumber 1) (ne $paginator.PageNumber 2) }}
<a href="{{ $paginator.First.URL }}" rel="first" class="page-link"><li class="page-item">«<span class="tablet-hidden"> First</span></li></a> <li class="page-item"><a href="{{ $paginator.First.URL }}" rel="first" class="page-link">« First</a></li>
{{ end }} {{ end }}
{{ if $paginator.HasPrev }} {{ if $paginator.HasPrev }}
<a href="{{ $paginator.Prev.URL }}" rel="prev" class="page-link"><li class="page-item"><span class="tablet-hidden"> Prev</span></li></a> <li class="page-item"><a href="{{ $paginator.Prev.URL }}" rel="prev" class="page-link"> Prev</a></li>
{{ end }} {{ end }}
{{ range $paginator.Pagers }} {{ range $paginator.Pagers }}
{{ if eq . $paginator }} {{ if eq . $paginator }}
<a href="{{ .URL }}" class="page-link"><li class="page-item active">{{ .PageNumber }}</li></a> <li class="page-item active"><a href="{{ .URL }}" class="page-link">{{ .PageNumber }}</a></li>
{{ else if and (ge .PageNumber (sub $paginator.PageNumber 2)) (le .PageNumber (add $paginator.PageNumber 2)) }} {{ else if and (ge .PageNumber (sub $paginator.PageNumber 2)) (le .PageNumber (add $paginator.PageNumber 2)) }}
<a href="{{ .URL }}" class="page-link mobile-hidden"><li class="page-item">{{ .PageNumber }}</li></a> {{ $.Scratch.Set "dot_rendered" false }}
<li class="page-item"><a href="{{ .URL }}" class="page-link">{{ .PageNumber }}</a></li>
{{ else if eq ($.Scratch.Get "dot_rendered") false }}
{{ $.Scratch.Set "dot_rendered" true }}
<li class="page-item disabled"><a class="page-link">...</a></li>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ if $paginator.HasNext }} {{ if $paginator.HasNext }}
<a href="{{ $paginator.Next.URL }}" rel="next" class="page-link"><li class="page-item"><span class="tablet-hidden">Next </span></li></a> <li class="page-item"><a href="{{ $paginator.Next.URL }}" rel="next" class="page-link">Next </a></li>
{{ end }} {{ end }}
{{ if and (ne $paginator.PageNumber $paginator.TotalPages) ((ne $paginator.PageNumber (sub $paginator.TotalPages 1))) }} {{ if and (ne $paginator.PageNumber $paginator.TotalPages) ((ne $paginator.PageNumber (sub $paginator.TotalPages 1))) }}
<a href="{{ $paginator.Last.URL }}" rel="last" class="page-link"><li class="page-item"><span class="tablet-hidden">Last </span>»</li></a> <li class="page-item"><a href="{{ $paginator.Last.URL }}" rel="last" class="page-link">Last »</a></li>
{{ end }} {{ end }}
</ul> </ul>
</nav> </nav>

View File

@ -7,7 +7,8 @@ article p img {
.pagination { .pagination {
display: flex; display: flex;
list-style: none; list-style: none;
margin: 20px -1px; border-radius: .25rem;
margin: 20px 0;
padding: 0; padding: 0;
justify-content: center; justify-content: center;
} }
@ -16,42 +17,22 @@ article p img {
position: relative; position: relative;
display: block; display: block;
padding: 0.5em; padding: 0.5em;
margin: 0.15em; margin: 0.25em;
line-height: 1.25; line-height: 1.25;
border: 1px dashed #6c757d; border: 1px dashed;
background: #fff; background: #fff;
} }
.page-item.active { .page-item.active {
background: #1EAEDB; background: #1EAEDB;
} }
.page-item.active {
.page-item.active .page-link {
color: #fff; color: #fff;
} }
.page-item.disabled {
.page-item.disabled .page-link {
color: #6c757d; color: #6c757d;
pointer-events: none; pointer-events: none;
cursor: auto; cursor: auto;
} }
/* hide some pagination links on tablet/mobile-width views */
@media (max-width: 420px) {
.mobile-hidden {
display: none;
}
.page-item {
margin: 0.08em;
}
}
@media (max-width: 550px) {
.tablet-hidden {
display: none;
}
}
/* automatically hyphenate long words in summaries on list pages */
.summary {
-webkit-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
}

View File

@ -134,12 +134,12 @@ h1, h2, h3, h4, h5, h6 {
margin-top: 0; margin-top: 0;
margin-bottom: 2rem; margin-bottom: 2rem;
font-weight: 300; } font-weight: 300; }
h1 { font-size: 2.6rem; line-height: 1.2; letter-spacing: -.1rem;} h1 { font-size: 4.0rem; line-height: 1.2; letter-spacing: -.1rem;}
h2 { font-size: 2.0rem; line-height: 1.25; letter-spacing: -.1rem; } h2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; }
h3 { font-size: 1.8rem; line-height: 1.3; letter-spacing: -.1rem; } h3 { font-size: 3.0rem; line-height: 1.3; letter-spacing: -.1rem; }
h4 { font-size: 1.6rem; line-height: 1.35; letter-spacing: -.08rem; } h4 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; }
h5 { font-size: 1.5rem; line-height: 1.5; letter-spacing: -.05rem; } h5 { font-size: 1.8rem; line-height: 1.5; letter-spacing: -.05rem; }
h6 { font-size: 1.4rem; line-height: 1.6; letter-spacing: 0; } h6 { font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; }
/* Larger than phablet */ /* Larger than phablet */
@media (min-width: 550px) { @media (min-width: 550px) {