Skip to content

Commit 17ef418

Browse files
committed
Add last-modified capabilities
1 parent 8969734 commit 17ef418

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

_layouts/post.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,14 @@
1515

1616
<script>performance.mark('contentStart')</script>
1717

18-
<time class=post__date datetime={{ page.date | date: "%Y-%m-%d" }} itemprop=datePublished>{{ page.date | date: "%-d %B, %Y" }}</time>
18+
<p class=post__date>
19+
<time datetime={{ page.date | date: "%Y-%m-%d" }} itemprop=datePublished>{{ page.date | date: "%-d %B, %Y" }}</time>
20+
21+
{% if page.last_modified_at %}
22+
<ins>last updated on <time datetime={{ page.last_modified_at | date: "%Y-%m-%d" }} itemprop=dateModified>{{ page.last_modified_at | date: "%-d %B, %Y" }}</time></ins>
23+
{% endif %}
24+
25+
</p>
1926

2027
<h1 itemprop="name headline" elementtiming=page-title style="view-transition-name: x-{{ page.date | date: '%Y-%m-%d' }}">{{ page.title }}</h1>
2128

@@ -132,7 +139,9 @@ <h1 itemprop="name headline" elementtiming=page-title style="view-transition-na
132139

133140
</div><div class="layout__item one-half">
134141

135-
<p><a href=/contact/ class="btn btn--full btn--positive"><strong>Hire me</strong></a></p>
142+
<p><a href=/consultancy/ class="btn btn--full
143+
btn--positive">
144+
<strong>Hire me</strong><span class="hide"> as your site speed consultant</span></a></p>
136145

137146
</div>
138147

_posts/2023-01-10-why-not-document-write.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ meta: "We’re often told not to use document.write(), but… why?!"
88
faq:
99
- question: "Why is document.write() bad for performance?"
1010
answer: "document.write() forces scripts to block DOM construction during their download by hiding them from the Preload Scanner. This means that scripts injected with document.write() are always fully synchronous."
11+
last_modified_at: 2025-06-01
1112
---
1213

1314
<!--

0 commit comments

Comments
 (0)