Skip to content

Commit 48773ae

Browse files
committed
Blurb autogeneration if missing
1 parent 6a83aac commit 48773ae

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/blog/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ <h2 class="blog-title">{{ post.data.title }}</h2>
1616
{% if post.data.date %}
1717
<span class="blog-date">{{ post.data.date | formatDate }}</span>
1818
{% endif %}
19-
{% if post.data.blurb %}
19+
{% if post.data.blurb != blank and post.data.blurb != "" %}
2020
<p class="blog-blurb">{{ post.data.blurb }}</p>
21+
{% elsif post.templateContent %}
22+
<p class="blog-blurb">{{ post.templateContent | autoBlurb }}</p>
2123
{% endif %}
2224
</div>
2325
</div>

src/research/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ <h2 class="article-title">{{ post.data.title }}</h2>
1616
{% if post.data.date %}
1717
<span class="article-date">{{ post.data.date | formatDate }}</span>
1818
{% endif %}
19-
{% if post.data.blurb %}
19+
{% if post.data.blurb != blank and post.data.blurb != "" %}
2020
<p class="article-blurb">{{ post.data.blurb }}</p>
21+
{% elsif post.templateContent %}
22+
<p class="article-blurb">{{ post.templateContent | autoBlurb }}</p>
2123
{% endif %}
2224
</div>
2325
</div>

src/writings/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ <h2 class="article-title">{{ post.data.title }}</h2>
1616
{% if post.data.date %}
1717
<span class="article-date">{{ post.data.date | formatDate }}</span>
1818
{% endif %}
19-
{% if post.data.blurb %}
19+
{% if post.data.blurb != blank and post.data.blurb != "" %}
2020
<p class="article-blurb">{{ post.data.blurb }}</p>
21+
{% elsif post.templateContent %}
22+
<p class="article-blurb">{{ post.templateContent | autoBlurb }}</p>
2123
{% endif %}
2224
</div>
2325
</div>

0 commit comments

Comments
 (0)