summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-09-07 16:49:18 +0800
committerReorx <novoreorx@gmail.com>2022-09-07 16:49:18 +0800
commitc33e025fe22502466c4f53afe398e7ca77a00e4f (patch)
treedd57f589a3b1b6194d14c218eba8e11446e0488d /layouts
parentceede2988aa86ad19a2ff84bb3eb76b91b8dd4da (diff)
styling newsletter sub form
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/newsletter/section.html1
-rw-r--r--layouts/partials/newsletter_sub_form.html8
3 files changed, 10 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 9c68c5a..6fff034 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -54,7 +54,7 @@
{{- end }}
{{- if $isNewsletter }}
- {{- partial "newsletter_sub_form.html"}}
+ {{- partial "newsletter_sub_form.html"}}
{{- end }}
</footer>
diff --git a/layouts/newsletter/section.html b/layouts/newsletter/section.html
index 47901f3..2863335 100644
--- a/layouts/newsletter/section.html
+++ b/layouts/newsletter/section.html
@@ -9,6 +9,7 @@
<h1>{{ .Title }}</h1>
</header>
<section class="entry-content">{{ .Description | markdownify }}</section>
+ {{- partial "newsletter_sub_form.html"}}
</div>
{{- $pages := where .Pages "Params.hidden" "!=" true }}
diff --git a/layouts/partials/newsletter_sub_form.html b/layouts/partials/newsletter_sub_form.html
new file mode 100644
index 0000000..3cee447
--- /dev/null
+++ b/layouts/partials/newsletter_sub_form.html
@@ -0,0 +1,8 @@
+{{/* Add `layouts/partials/newsletter_sub_form.html` in your own code to customize the form */}}
+
+<div class="sub-form">
+ <form action="">
+ <input type="text" name="email" placeholder="Your email address">
+ <button>订阅 | Subscribe</button>
+ </form>
+</div>