Skip to content

Commit 2af6faa

Browse files
committed
Affording your AI chatbot friends talk
Signed-off-by: Xe Iaso <[email protected]>
1 parent 4e8bec8 commit 2af6faa

File tree

2 files changed

+369
-2
lines changed

2 files changed

+369
-2
lines changed

lume/src/_includes/talk.njk

+11-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@ layout: base.njk
66
{{ comp.ads() | safe }}
77
{% endif %}
88

9-
<article class="prose dark:prose-invert max-w-none lg:prose-p:max-w-[80ch] lg:prose-p:mx-auto">
9+
<article class="prose dark:prose-invert max-w-none lg:prose-p:max-w-[80ch] lg:prose-p:mx-auto lg:prose-headings:mx-20 lg:prose-blockquote:max-w-[70ch] lg:prose-blockquote:mx-auto lg:prose-li:max-w-[78ch] lg:prose-li:mx-auto lg:prose-pre:max-w-[85ch] lg:prose-pre:mx-auto lg:prose-table:max-w-[100ch] lg:prose-table:mx-auto">
10+
<style>
11+
.prose :where(li):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
12+
margin-left: auto;
13+
margin-right: auto;
14+
max-width: 78ch;
15+
}
16+
</style>
1017
<h1>{{title}}</h1>
1118
<p class="text-sm text-fg-3 dark:text-fgDark-3">
1219
Published on <time datetime={{date | date("DATE")}}>{{date | date("DATE_US")}}</time>, {{ readingInfo.words }} words, {{ readingInfo.minutes }} minutes to read
@@ -66,5 +73,7 @@ layout: base.njk
6673

6774
<p class="mb-4">Tags: {{tags.join(", ")}}</p>
6875

69-
<a href="{{slides_link}}">View slides</a>
76+
{% if slides_link %}
77+
<a href="{{slides_link}}">View slides</a>
78+
{% endif %}
7079
</article>

0 commit comments

Comments
 (0)