finish newsletter archives
This commit is contained in:
parent
edf0ed0258
commit
2faf1cc852
|
@ -27,8 +27,9 @@ body.type-newsletter {
|
||||||
--icon-font-size: 24px;
|
--icon-font-size: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* a links in section page content and regular page post-content */
|
/* a links in section/archives page content and regular page post-content */
|
||||||
&.kind-section .main .content a,
|
&.kind-section .main .content a,
|
||||||
|
&.layout-archives .main .content a,
|
||||||
&.kind-page .post-content a {
|
&.kind-page .post-content a {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
|
@ -86,8 +87,9 @@ body.type-newsletter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body.type-newsletter.kind-section {
|
body.type-newsletter.kind-section,
|
||||||
/* section page layout */
|
body.type-newsletter.layout-archives {
|
||||||
|
/* section/archives page */
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
border: var(--main-border);
|
border: var(--main-border);
|
||||||
|
@ -129,21 +131,16 @@ body.type-newsletter.kind-section {
|
||||||
@media screen and (max-width: $small) {
|
@media screen and (max-width: $small) {
|
||||||
margin-top: calc(var(--icon-length));
|
margin-top: calc(var(--icon-length));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.entry-header {
|
h1 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: calc(var(--content-gap) * 1.5);
|
margin-top: var(--gap);
|
||||||
h1 {
|
margin-bottom: calc(var(--content-gap) * 1);
|
||||||
// back to default
|
}
|
||||||
font-size: 36px;
|
.subtitle {
|
||||||
}
|
text-align: center;
|
||||||
.subtitle {
|
color: var(--secondary);
|
||||||
color: var(--secondary);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// .entry-content {
|
|
||||||
// font-size: 16px;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
|
@ -214,7 +211,7 @@ body.type-newsletter.kind-section {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* regular page layout */
|
/* regular page */
|
||||||
body.type-newsletter.kind-page {
|
body.type-newsletter.kind-page {
|
||||||
.newsletter-brand {
|
.newsletter-brand {
|
||||||
--icon-length: 50px;
|
--icon-length: 50px;
|
||||||
|
@ -286,7 +283,6 @@ body.type-newsletter.kind-page {
|
||||||
border-bottom-color: var(--signature);
|
border-bottom-color: var(--signature);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.newsletter-sub {
|
.newsletter-sub {
|
||||||
margin-top: var(--gap);
|
margin-top: var(--gap);
|
||||||
background-color: var(--signature-bg-dim);
|
background-color: var(--signature-bg-dim);
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
{{- define "main" }}
|
||||||
|
<div class="main-icon">@</div>
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
{{- partial "newsletter_sub_form.html"}}
|
||||||
|
|
||||||
|
{{/* get pages from the current page's section */}}
|
||||||
|
{{- $sections := slice .Section }}
|
||||||
|
{{- $pages := where (where site.RegularPages "Section" "in" $sections) "Params.hidden" "!=" true }}
|
||||||
|
|
||||||
|
{{/* TODO statistics */}}
|
||||||
|
<div class="list">
|
||||||
|
{{- range $pages }}
|
||||||
|
<div class="item">
|
||||||
|
<div class="date">
|
||||||
|
{{- if not .Date.IsZero -}}
|
||||||
|
{{ .Date | time.Format (default "January 2, 2006" site.Params.DateFormat) }}
|
||||||
|
{{- end }}
|
||||||
|
</div>
|
||||||
|
<div class="title">
|
||||||
|
<a href="{{ .Permalink }}">{{- .Title }}
|
||||||
|
{{- if .Draft }}<em>[Draft]</em>{{- end }}
|
||||||
|
{{- if .Weight }}<em>[Pinned]</em>{{- end }}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="issueno">{{ with .Param "issueno" }}#{{ . }}{{ end }}</div>
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
|
@ -4,11 +4,10 @@
|
||||||
<div class="main-icon">@</div>
|
<div class="main-icon">@</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
{{ with .Param "subtitle" }}<div class="subtitle">{{ . }}</div>{{ end }}
|
||||||
|
|
||||||
<div class="first-entry">
|
<div class="first-entry">
|
||||||
<header class="entry-header">
|
|
||||||
<h1>{{ .Title }}</h1>
|
|
||||||
{{ with .Param "subtitle" }}<div class="subtitle">{{ . }}</div>{{ end }}
|
|
||||||
</header>
|
|
||||||
<section class="entry-content">{{ .Description | markdownify }}</section>
|
<section class="entry-content">{{ .Description | markdownify }}</section>
|
||||||
{{- partial "newsletter_sub_form.html"}}
|
{{- partial "newsletter_sub_form.html"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue