Test hugo
This commit is contained in:
@ -1,10 +1,13 @@
|
||||
{{ define "main" }}
|
||||
<main id="main">
|
||||
{{ .Content }}
|
||||
{{ $paginator := .Paginate (where .Pages.ByPublishDate.Reverse ".Params.date" "!=" nil) 1 }}
|
||||
{{ range $paginator.Pages.ByWeight }}
|
||||
<p class="date">{{ .Date.Format "January 2, 2006" }}</p>
|
||||
{{ .Content }}
|
||||
{{ $paginator := .Paginate (where .Pages.ByPublishDate.Reverse ".Params.date" "!=" nil) 1 }}
|
||||
{{ $content := .Content }}
|
||||
{{ range $paginator.Pages.ByWeight }}
|
||||
<main id="main"{{ if (isset .Params "fit" )}} class="fit"{{ end }}>
|
||||
{{ $content }}
|
||||
<div class="page">
|
||||
<p class="date">{{ .Date.Format "January 2, 2006" }}</p>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ partial "pagination.html" . }}
|
||||
</main>
|
||||
|
||||
@ -1,10 +1,13 @@
|
||||
{{ define "main" }}
|
||||
<main id="main">
|
||||
{{ .Content }}
|
||||
{{ $paginator := .Paginate (where .Pages ".Params.date" "!=" nil) 1 }}
|
||||
{{ range $paginator.Pages.ByWeight }}
|
||||
<p class="date">{{ .Date.Format "January 2, 2006" }}</p>
|
||||
{{ .Content }}
|
||||
{{ $paginator := .Paginate (where .Pages.ByPublishDate.Reverse ".Params.date" "!=" nil) 1 }}
|
||||
{{ $content := .Content }}
|
||||
{{ range $paginator.Pages.ByWeight }}
|
||||
<main id="main"{{ if (isset .Params "fit" )}} class="fit"{{ end }}>
|
||||
{{ $content }}
|
||||
<div class="page">
|
||||
<p class="date">{{ .Date.Format "January 2, 2006" }}</p>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ if (isset .Params "back") }}
|
||||
|
||||
@ -29,6 +29,7 @@ a {
|
||||
.zoom a {
|
||||
border: none;
|
||||
font-size: 2em;
|
||||
outline: none !important;
|
||||
}
|
||||
abbr {
|
||||
text-decoration: none;
|
||||
@ -86,7 +87,13 @@ main {
|
||||
}
|
||||
main.full {
|
||||
max-width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
main.full svg {
|
||||
margin: auto;
|
||||
}
|
||||
main.fit .page .verse {
|
||||
white-space: pre;
|
||||
overflow-x: scroll;
|
||||
}
|
||||
main.fit svg {
|
||||
max-width: 100%;
|
||||
@ -122,6 +129,9 @@ blockquote em {
|
||||
white-space: pre-wrap;
|
||||
margin-top: 0;
|
||||
}
|
||||
.verse blockquote {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.cw {
|
||||
color: #800;
|
||||
text-align: right;
|
||||
@ -238,3 +248,12 @@ ul.pagination .page-item.active a {
|
||||
border: none;
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 500px) {
|
||||
main.fit .page .verse {
|
||||
font-size: 10pt;
|
||||
}
|
||||
main.fit .page .verse blockquote {
|
||||
font-size: 8pt;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user