add newsletter sub box in single

This commit is contained in:
Reorx 2022-09-08 01:41:33 +08:00
parent 51d8dca83c
commit edf0ed0258
4 changed files with 26 additions and 2 deletions

View File

@ -592,6 +592,7 @@ h6:hover .anchor {
vertical-align: super;
}
/* footnotes */
.footnotes {
font-size: .8em;
color: var(--primary-dim);

View File

@ -285,4 +285,22 @@ body.type-newsletter.kind-page {
.post-footer {
border-bottom-color: var(--signature);
}
.newsletter-sub {
margin-top: var(--gap);
background-color: var(--signature-bg-dim);
padding: 1em;
.notice {
font-size: .8em;
color: var(--signature);
line-height: 1.6;
}
.sub-form {
margin: 1em 0;
input {
border-color: var(--signature-bg);
}
}
}
}

View File

@ -12,7 +12,7 @@
{{- end -}}
{{- if eq site.Params.defaultTheme `dark` -}}
{{- print " dark" }}
{{- end }} type-{{ .Type }} kind-{{ .Kind -}}
{{- end }} type-{{ .Type }} kind-{{ .Kind }} layout-{{ .Layout -}}
" id="top">
{{- partialCached "header.html" . .Page -}}
<main class="main {{- if (eq .Kind `page`) -}}{{- print " post" -}}{{- end -}}">

View File

@ -54,7 +54,12 @@
{{- end }}
{{- if $isNewsletter }}
<div class="newsletter-sub">
<div class="notice">
感谢你能读到这里,如果觉得有趣的话,可以在下方输入邮箱进行订阅。
</div>
{{- partial "newsletter_sub_form.html"}}
</div>
{{- end }}
</footer>