on master help sign in
site: extract email subscribe form to partial (#601)

Co-authored-by: tomholford <tomholford@users.noreply.github.com>

commit4390f90f996ce7b821f25056f9323d82edd08048 authortomholford <16504501+tomholford@users.noreply.github.com> dateFri 30 Apr 2021, 14:48 (5 years ago) parentea153dc
4 files changed+42−102
templates/essays/post.html+3−34 templates/partials/subscribe-form.html+34 templates/understanding-urbit/list.html+2−34 templates/understanding-urbit/post.html+3−34
templates/essays/post.html+3−34
@@ -65,38 +65,7 @@
6565
6666 {{ pagination::pagination(page=page) }}
6767</article>
68−<section class="full c4-12-lg lh-copy mt6 mb4 measure-wide">
69− <iframe name="nothing" style="display:none;"></iframe>
70− <p class="mt5">If you’d like to follow our progress, we send monthly updates via email:</p>
71− <form
72− action="https://urbit.us11.list-manage.com/subscribe/post?u=972a03db9e0c6c25bb58de8c8&amp;amp;id=be143888d2"
73− method="post"
74− id="mc-embedded-subscribe-form"
75− name="mc-embedded-subscribe-form"
76− class="validate form"
77− target="_blank"
78− novalidate>
79− <div class="input-group" id="mc_embed_signup_scroll">
80− <div class="mc-field-group w-100 relative">
81− <input
82− class="bg-white black b--black ba pa3 w-100 mb2 br0 wk-appearance-none"
83− type="email"
84− name="EMAIL"
85− id="mce-EMAIL"
86− placeholder="your@email.com"/>
87− <button
88− id="mc-embedded-subscribe"
89− class="dib bn absolute bg-transparent"
90− style="font-family: 'Inter UI', san-serif; right: 3px; top: 15px; -webkit-appearance: none;"
91− type="submit"
92− name="subscribe"
93− onclick="_paq.push(['trackEvent', 'Mailing List', 'Subscribe'])">
94− <span class="fr pr1">-></span>
95− </button>
96− </div>
97− </div>
98− </form>
99− <p class="mt3 mb3 mb3-xl lh-copy">You can also follow us on <a class="bb" href="https://twitter.com/urbit">Twitter</a> or <a class="bb" href="https://github.com/urbit">GitHub</a>.</p>
100− <p class="mt0 mb3 mb4-xl lh-copy">Or talk to us on Urbit: <code>~bitbet-bolbel/urbit-community</code></p>
101−</section>
68+
69+{% include "partials/subscribe-form.html" %}
70+
10271{% endblock content %}
templates/partials/subscribe-form.htmlnew file+34
@@ -0,0 +1,34 @@
1+<section class="full c4-12-lg lh-copy mt6 mb4 measure-wide">
2+ <iframe name="nothing" style="display:none;"></iframe>
3+ <p class="mt5">If you’d like to follow our progress, we send monthly updates via email:</p>
4+ <form
5+ action="https://urbit.us11.list-manage.com/subscribe/post?u=972a03db9e0c6c25bb58de8c8&amp;amp;id=be143888d2"
6+ method="post"
7+ id="mc-embedded-subscribe-form"
8+ name="mc-embedded-subscribe-form"
9+ class="validate form"
10+ target="_blank"
11+ novalidate>
12+ <div class="input-group" id="mc_embed_signup_scroll">
13+ <div class="mc-field-group w-100 relative">
14+ <input
15+ class="bg-white black b--black ba pa3 w-100 mb2 br0 wk-appearance-none"
16+ type="email"
17+ name="EMAIL"
18+ id="mce-EMAIL"
19+ placeholder="your@email.com"/>
20+ <button
21+ id="mc-embedded-subscribe"
22+ class="dib bn absolute bg-transparent"
23+ style="font-family: 'Inter UI', san-serif; right: 3px; top: 15px; -webkit-appearance: none;"
24+ type="submit"
25+ name="subscribe"
26+ onclick="_paq.push(['trackEvent', 'Mailing List', 'Subscribe'])">
27+ <span class="fr pr1">-></span>
28+ </button>
29+ </div>
30+ </div>
31+ </form>
32+ <p class="mt3 mb3 mb3-xl lh-copy">You can also follow us on <a class="bb" href="https://twitter.com/urbit">Twitter</a> or <a class="bb" href="https://github.com/urbit">GitHub</a>.</p>
33+ <p class="mt0 mb3 mb4-xl lh-copy">Or talk to us on Urbit: <code>~bitbet-bolbel/urbit-community</code></p>
34+</section>
templates/understanding-urbit/list.html+2−34
@@ -79,38 +79,6 @@
7979 {% endfor %}
8080</footer>
8181
82−<section class="full c4-12-lg lh-copy mt6 mb4 measure-wide">
83− <iframe name="nothing" style="display:none;"></iframe>
84− <p class="mt5">If you’d like to follow our progress, we send monthly updates via email:</p>
85− <form
86− action="https://urbit.us11.list-manage.com/subscribe/post?u=972a03db9e0c6c25bb58de8c8&amp;amp;id=be143888d2"
87− method="post"
88− id="mc-embedded-subscribe-form"
89− name="mc-embedded-subscribe-form"
90− class="validate form"
91− target="_blank"
92− novalidate>
93− <div class="input-group" id="mc_embed_signup_scroll">
94− <div class="mc-field-group w-100 relative">
95− <input
96− class="bg-white black b--black ba pa3 w-100 mb2 br0 wk-appearance-none"
97− type="email"
98− name="EMAIL"
99− id="mce-EMAIL"
100− placeholder="your@email.com"/>
101− <button
102− id="mc-embedded-subscribe"
103− class="dib bn absolute bg-transparent"
104− style="font-family: 'Inter UI', san-serif; right: 3px; top: 15px; -webkit-appearance: none;"
105− type="submit"
106− name="subscribe"
107− onclick="_paq.push(['trackEvent', 'Mailing List', 'Subscribe'])">
108− <span class="fr pr1">-></span>
109− </button>
110− </div>
111− </div>
112− </form>
113− <p class="mt3 mb3 mb3-xl lh-copy">You can also follow us on <a class="bb" href="https://twitter.com/urbit">Twitter</a> or <a class="bb" href="https://github.com/urbit">GitHub</a>.</p>
114− <p class="mt0 mb3 mb4-xl lh-copy">Or, preferably, on Urbit itself in the <code>~bitbet-bolbel/urbit-community</code></p>
115−</section>
82+{% include "partials/subscribe-form.html" %}
83+
11684{% endblock content %}
templates/understanding-urbit/post.html+3−34
@@ -74,38 +74,7 @@
7474
7575 {{ pagination::pagination(page=page) }}
7676 </article>
77− <section class="full c4-12-lg lh-copy mt6 mb4 measure-wide">
78− <iframe name="nothing" style="display:none;"></iframe>
79− <p class="mt5">If you’d like to follow our progress, we send monthly updates via email:</p>
80− <form
81− action="https://urbit.us11.list-manage.com/subscribe/post?u=972a03db9e0c6c25bb58de8c8&amp;amp;id=be143888d2"
82− method="post"
83− id="mc-embedded-subscribe-form"
84− name="mc-embedded-subscribe-form"
85− class="validate form"
86− target="_blank"
87− novalidate>
88− <div class="input-group" id="mc_embed_signup_scroll">
89− <div class="mc-field-group w-100 relative">
90− <input
91− class="bg-white black b--black ba pa3 w-100 mb2 br0 wk-appearance-none"
92− type="email"
93− name="EMAIL"
94− id="mce-EMAIL"
95− placeholder="your@email.com"/>
96− <button
97− id="mc-embedded-subscribe"
98− class="dib bn absolute bg-transparent"
99− style="font-family: 'Inter UI', san-serif; right: 3px; top: 15px; -webkit-appearance: none;"
100− type="submit"
101− name="subscribe"
102− onclick="_paq.push(['trackEvent', 'Mailing List', 'Subscribe'])">
103− <span class="fr pr1">-></span>
104− </button>
105− </div>
106− </div>
107− </form>
108− <p class="mt3 mb3 mb3-xl lh-copy">You can also follow us on <a class="bb" href="https://twitter.com/urbit">Twitter</a> or <a class="bb" href="https://github.com/urbit">GitHub</a>.</p>
109− <p class="mt0 mb3 mb4-xl lh-copy">Or talk to us on Urbit: <code>~bitbet-bolbel/urbit-community</code></p>
110− </section>
77+
78+ {% include "partials/subscribe-form.html" %}
79+
11180{% endblock content %}