Skip to content

Commit 27db736

Browse files
committed
add newsletter subscription
1 parent b701be8 commit 27db736

22 files changed

Lines changed: 209 additions & 30 deletions

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Site
66
title: Loïc Lefloch
77
subtitle: ""
8-
description: ""
8+
description: "Monthly newsletter and regular blog posts, delivering the latest tech trends, insights, and curated content all in one place."
99
keywords:
1010
author: Loïc Lefloch
1111
language: en

source/_posts/make-gmail-readable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Make Gmail Readable
33
date: 2025-02-25 23:03:00
44
category: TIL
55
permalink: /make-gmail-readable/
6-
description: "TODO"
6+
description: "Make Gmail readable"
77
lang: en
88
tags:
99
---

source/_posts/the-case-of-vanishing-pages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "The Case of the Vanishing Pages: Debugging an Elusive React Bug"
33
date: 2025-02-05 20:13:00
44
permalink: /the-case-of-vanishing-pages/
55
category: Post mortem
6-
description: ""
6+
description: "A post mortem on an illusive bug when deploying an SPA app into production"
77
lang: en
88
---
99

source/subscribe.md

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

themes/cactus/_config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ direction: ltr
1515
# languages/*.yml
1616
nav:
1717
home: /
18-
# Articles: /archives/
18+
Subscribe: /subscribe
19+
# Articles: /archives/
1920
A propos: /about/
2021
# Projets: https://github.com/loiclefloch
2122
Rechercher: /search/
@@ -27,12 +28,12 @@ nav:
2728
# You can optionally add a 'label' key to set the title attribute on the link.
2829
# 'icon' value will be used as title when 'label' is missing.
2930
social_links:
30-
- icon: bluesky
31-
link: https://bsky.app/profile/loiclefloch.dev
3231
- icon: linkedin
3332
link: https://www.linkedin.com/in/loiclefloch
3433
- icon: github
3534
link: http://github.com/loiclefloch
35+
- icon: bluesky
36+
link: https://bsky.app/profile/loiclefloch.dev
3637

3738
# Customize the overview with displaying a tagcloud on the index page.
3839
# Options: https://hexo.io/docs/helpers.html#tagcloud
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<script src="https://loiclefloch.kit.com/commerce.js" async defer></script>
2+
<div style="text-align: center;">
3+
<a class="convertkit-button" href="https://loiclefloch.kit.com/products/loiclefloch" data-commerce>
4+
Buy me a coffee
5+
</a>
6+
</div>

themes/cactus/layout/_partial/scripts.ejs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
});
8181
</script>
8282
<% } %>
83-
<!-- Baidu Analytics -->
8483
<% if (theme.baidu_analytics.enabled && theme.baidu_analytics.id){ %>
84+
<!-- Baidu Analytics -->
8585
<script type="text/javascript">
8686
var _hmt = _hmt || [];
8787
(function() {
@@ -92,12 +92,12 @@
9292
})();
9393
</script>
9494
<% } %>
95-
<!-- Cloudflare Analytics -->
9695
<% if (theme.cloudflare_analytics.enabled && theme.cloudflare_analytics.id){ %>
96+
<!-- Cloudflare Analytics -->
9797
<script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "<%= theme.cloudflare_analytics.id %>"}'></script>
9898
<% } %>
99-
<!-- Disqus Comments -->
10099
<% if (page.comments && theme.disqus.enabled && theme.disqus.shortname){ %>
100+
<!-- Disqus Comments -->
101101
<script type="text/javascript">
102102
var disqus_shortname = '<%= theme.disqus.shortname %>';
103103
@@ -110,8 +110,8 @@
110110
}());
111111
</script>
112112
<% } %>
113-
<!-- utterances Comments -->
114113
<% if (page.comments && theme.utterances.enabled && theme.utterances.repo && theme.utterances.issue_term && theme.utterances.theme){ %>
114+
<!-- utterances Comments -->
115115
<script type="text/javascript">
116116
var utterances_repo = '<%= theme.utterances.repo %>';
117117
var utterances_issue_term = '<%= theme.utterances.issue_term %>';
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<section class="newsletter-signup" id="signup">
2+
<h2>Subscribe to my newsletter</h2>
3+
<p>Get monthly updates on top tech trends, must-read blogs, insightful analysis, and key news - curated for busy tech enthusiasts.</p>
4+
5+
<!-- ConvertKit Form -->
6+
<div class="convertkit-form">
7+
<div style="border-radius: 8px; text-align: center;">
8+
<script src="https://f.convertkit.com/ckjs/ck.5.js"></script>
9+
<form action="https://app.kit.com/forms/8791305/subscriptions" class="seva-form formkit-form"
10+
method="post" data-sv-form="8791305" data-uid="b27cf41443" data-format="inline" data-version="5"
11+
data-options="{&quot;settings&quot;:{&quot;after_subscribe&quot;:{&quot;action&quot;:&quot;message&quot;,&quot;success_message&quot;:&quot;Success! Now check your email to confirm your subscription.&quot;,&quot;redirect_url&quot;:&quot;&quot;},&quot;analytics&quot;:{&quot;google&quot;:null,&quot;fathom&quot;:null,&quot;facebook&quot;:null,&quot;segment&quot;:null,&quot;pinterest&quot;:null,&quot;sparkloop&quot;:null,&quot;googletagmanager&quot;:null},&quot;modal&quot;:{&quot;trigger&quot;:&quot;timer&quot;,&quot;scroll_percentage&quot;:null,&quot;timer&quot;:5,&quot;devices&quot;:&quot;all&quot;,&quot;show_once_every&quot;:15},&quot;powered_by&quot;:{&quot;show&quot;:false,&quot;url&quot;:&quot;https://kit.com/features/forms?utm_campaign=poweredby&amp;utm_content=form&amp;utm_medium=referral&amp;utm_source=dynamic&quot;},&quot;recaptcha&quot;:{&quot;enabled&quot;:false},&quot;return_visitor&quot;:{&quot;action&quot;:&quot;show&quot;,&quot;custom_content&quot;:&quot;&quot;},&quot;slide_in&quot;:{&quot;display_in&quot;:&quot;bottom_right&quot;,&quot;trigger&quot;:&quot;timer&quot;,&quot;scroll_percentage&quot;:null,&quot;timer&quot;:5,&quot;devices&quot;:&quot;all&quot;,&quot;show_once_every&quot;:15},&quot;sticky_bar&quot;:{&quot;display_in&quot;:&quot;top&quot;,&quot;trigger&quot;:&quot;timer&quot;,&quot;scroll_percentage&quot;:null,&quot;timer&quot;:5,&quot;devices&quot;:&quot;all&quot;,&quot;show_once_every&quot;:15}},&quot;version&quot;:&quot;5&quot;}"
12+
min-width="400 500 600 700 800">
13+
<div data-style="clean">
14+
<ul class="formkit-alert formkit-alert-error" data-element="errors" data-group="alert"></ul>
15+
<div data-element="fields" data-stacked="false" class="seva-fields formkit-fields">
16+
<div class="formkit-field">
17+
<input class="formkit-input" name="email_address"
18+
aria-label="Email Address" placeholder="Email Address"
19+
required="" type="email"
20+
style="color: rgb(255, 255, 255); border-color: rgb(227, 227, 227); border-radius: 4px; font-weight: 400;"
21+
/>
22+
</div>
23+
<button data-element="submit" class="formkit-submit formkit-submit"
24+
style="color: rgb(255, 255, 255); background-color: rgb(147, 190, 174); border-radius: 8px; font-weight: 700;">
25+
<div class="formkit-spinner">
26+
<div></div>
27+
<div></div>
28+
<div></div>
29+
</div>
30+
<span class="">Subscribe</span></button>
31+
</div>
32+
</div>
33+
</form>
34+
</div>
35+
<p class="unsubscribe"><em>No spam, unsubscribe anytime.</em></p>
36+
</div>
37+
</section>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<section class="newsletter-signup-small">
2+
<div style="text-align: center">
3+
You can <a href="#signup">subscribe</a> to my newsletter!
4+
</div>
5+
</section>

themes/cactus/layout/about.ejs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ Consultant Tech Lead Senior @ [Octo Technology](https://octo.com/)
1010
<li><a href="/">Articles</a></li>
1111
</ul>
1212

13+
<%- partial('_partial/buy_me_coffee') %>
1314

1415
<%- markdown(`
1516
---
1617
1718
Powered by [Hexo.io](https://hexo.io/).
1819
Theme based on Cactus by [Pieter Robberechts](https://github.com/probberechts/hexo-theme-cactus).
19-
`) %>
20+
`) %>

0 commit comments

Comments
 (0)