Skip to content

Commit 21e2a35

Browse files
committed
Promote my new monthly newsletter in sidebar
Design help from o3 https://chatgpt.com/share/6836521b-dd30-8006-b7a9-cb92a9416ca0 I uploaded it this image: https://static.simonwillison.net/static/2025/promo-goes-here.png
1 parent 841559a commit 21e2a35

File tree

4 files changed

+54
-1
lines changed

4 files changed

+54
-1
lines changed

templates/_sponsor_promo.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<section style="
2+
/* .promo */
3+
border-radius: 8px;
4+
margin: 1.5rem 0;
5+
padding: 1rem 1.25rem;
6+
/* .variant-a */
7+
border: 2px solid #6c3eb9;
8+
">
9+
<h3 style="
10+
/* h3 */
11+
margin: 0 0 0.5rem;
12+
font-size: 1.25rem;
13+
">
14+
Monthly briefing
15+
</h3>
16+
<p style="
17+
/* p */
18+
margin: 0 0 1rem;
19+
line-height: 1.4;
20+
">
21+
Sponsor me for <strong>$10/month</strong> and get a curated email digest of the month's most important LLM developments.
22+
</p>
23+
<p style="
24+
/* p */
25+
margin: 0 0 1rem;
26+
line-height: 1.4;
27+
">
28+
Pay me to send you less!
29+
</p>
30+
<a href="https://github.com/sponsors/simonw/" style="
31+
/* a.button */
32+
display: inline-block;
33+
padding: 0.5rem 1rem;
34+
background: #6c3eb9;
35+
color: #fff;
36+
text-decoration: none;
37+
border-radius: 4px;
38+
font-weight: 600;
39+
">
40+
Sponsor &amp; subscribe
41+
</a>
42+
</section>

templates/blogmark.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
{% include "_tags.html" with obj=blogmark %}
2525

2626
<div data-ea-publisher="simonwillisonnet" data-ea-type="text"></div>
27+
{% include "_sponsor_promo.html" %}
2728

2829
</div> <!-- .metabox -->
2930
{% endblock %}

templates/entry.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ <h2>{{ entry.title|typography }}</h2>
5757
<p><strong>Previous:</strong> <a href="{{ previous_entry.get_absolute_url }}">{{ previous_entry.title }}</a></p>
5858
{% endif %}{% endwith %}
5959
<div data-ea-publisher="simonwillisonnet" data-ea-type="image"></div>
60+
{% include "_sponsor_promo.html" %}
6061
</div>
6162

6263
{% if entry.tweet_html %}{{ entry.tweet_html|safe }}{% endif %}

templates/note.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{% extends "item_base.html" %}
22

3-
{% block title %}{% if note.title %}{{ note.title }}{% else %}Note on {{ note.created|date:"jS F Y" }}{% endif %}{% endblock %}
3+
{% block title %}padding-top{% endblock %}
4+
5+
{% block extrahead %}
6+
{{ block.super }}
7+
<script async src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script>
8+
{% endblock %}
49

510
{% block card_title %}{% if note.title %}{{ note.title }}{% else %}Note on {{ note.created|date:"jS F Y" }}{% endif %}{% endblock %}
611
{% block card_description %}{{ note.body|truncatewords:30 }}{% endblock %}
@@ -18,5 +23,9 @@
1823
{% block secondary %}
1924
<div class="metabox">
2025
{% include "_tags.html" with obj=note %}
26+
27+
<div data-ea-publisher="simonwillisonnet" data-ea-type="text"></div>
28+
{% include "_sponsor_promo.html" %}
29+
2130
</div> <!-- .metabox -->
2231
{% endblock %}

0 commit comments

Comments
 (0)