Skip to content

Commit ceac64d

Browse files
committed
add subscribed page
1 parent 5d28dbc commit ceac64d

4 files changed

Lines changed: 31 additions & 1 deletion

File tree

source/subscribed.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: Subscription succeeded
3+
layout: subscribed
4+
---

themes/cactus/layout/subscribe.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<main class="newsletter-list-page">
1+
<main class="">
22
<%- partial('_partial/signup') %>
33

44
<section class="post-list">
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<section class="newsletter-signup" style="text-align: center;">
2+
<h2>Check your inbox</h2>
3+
<p>Thank you for subscribing!<br />A confirmation email has been sent to your <b>inbox</b>.</p>
4+
<p>If you don’t see it soon, please check your <b>spam</b> folder.</p>
5+
</section>
6+
7+
<section class="newsletter-list">
8+
<section class="post-list">
9+
<h2>Past Issues</h2>
10+
<ul class="post-list">
11+
<% site.categories.findOne({name: "newsletter"}).posts.sort('date', -1).each(function(post) { %>
12+
<li class="post-item">
13+
<%- partial('_partial/post/date', {post: post, class_name: 'meta'}) %>
14+
<a href="<%- url_for(post.path) %>" target="_blank" itemprop="url">
15+
<%= post.title.replace(/^Newsletter( •)?\s+/i, '') %>
16+
</a>
17+
</li>
18+
<% }); %>
19+
</ul>
20+
</section>
21+
</section>

themes/cactus/source/css/style.styl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,3 +604,8 @@ code
604604
width: 100%;
605605
}
606606
}
607+
608+
609+
b {
610+
font-weight: 600;
611+
}

0 commit comments

Comments
 (0)