Skip to content

Commit a0b152a

Browse files
committed
Reduce scope of scope, ironcially
1 parent 18e5669 commit a0b152a

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

_includes/mini-profile.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,20 @@
1313
border-radius: 100%;
1414
}
1515

16-
.c-mini-profile__content {
16+
.c-mini-profile a {
17+
color: inherit;
18+
font: inherit;
1719
}
1820

1921
</style>
2022

2123
<article class=c-mini-profile>
2224
<img src=/img/content/avatar.jpg alt width=72 height=72 loading=lazy class=c-mini-profile__avatar>
2325
<div class=c-mini-profile__content>
24-
<h5 class=mb0 style="font-weight: bold;">By Harry Roberts</h5>
25-
<p class=mb0>Harry Roberts is an independent consultant web performance engineer. He helps companies of all shapes and sizes find and fix site speed issues.</p>
26+
<h5 class=mb0 style="font-weight: bold;">By <a href="/about/">Harry Roberts</a></h5>
27+
<p class=mb0>Harry Roberts is an <a href="/consultancy/">independent
28+
consultant</a> web performance engineer. He <a href="/services/">helps
29+
companies</a> of all shapes and sizes find and fix site speed issues.</p>
2630
</div>
2731
</article>
2832

_layouts/post.html

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,31 @@
1010

1111
<div class=layout>
1212

13-
<section class="layout__item desk-three-fifths s-post" data-ui-component="Main content" itemscope itemtype=http://schema.org/BlogPosting id=section:main>
14-
<script>performance.mark('contentStart')</script>
13+
<section class="layout__item desk-three-fifths" data-ui-component="Main content" itemscope itemtype=http://schema.org/BlogPosting id=section:main>
14+
<div class="s-post">
1515

16-
<time class=post__date datetime={{ page.date | date: "%Y-%m-%d" }} itemprop=datePublished>{{ page.date | date: "%-d %B, %Y" }}</time>
16+
<script>performance.mark('contentStart')</script>
1717

18-
<h1 itemprop="name headline" elementtiming=page-title style="view-transition-name: x-{{ page.date | date: '%Y-%m-%d' }}">{{ page.title }}</h1>
18+
<time class=post__date datetime={{ page.date | date: "%Y-%m-%d" }} itemprop=datePublished>{{ page.date | date: "%-d %B, %Y" }}</time>
1919

20-
<p class=hide>Written by <b itemprop=author>Harry Roberts</b> on <b itemprop=publisher>CSS Wizardry</b>.</p>
20+
<h1 itemprop="name headline" elementtiming=page-title style="view-transition-name: x-{{ page.date | date: '%Y-%m-%d' }}">{{ page.title }}</h1>
2121

22-
{% if page.case-study != true %}
22+
<p class=hide>Written by <b itemprop=author>Harry Roberts</b> on <b itemprop=publisher>CSS Wizardry</b>.</p>
2323

24-
{% endif %}
24+
{% if page.case-study != true %}
2525

26-
{% if page.toc != false %}
27-
<details class=c-toc>
28-
<summary>Table of Contents</summary>
29-
{% include toc.html html=content ordered=true h_max=3 %}
30-
</details>
31-
{% endif %}
26+
{% endif %}
27+
28+
{% if page.toc != false %}
29+
<details class=c-toc>
30+
<summary>Table of Contents</summary>
31+
{% include toc.html html=content ordered=true h_max=3 %}
32+
</details>
33+
{% endif %}
34+
35+
{{ content }}
3236

33-
{{ content }}
37+
</div><!-- /.s-post -->
3438

3539
{% if page.faq %}
3640
<script type="application/ld+json">

0 commit comments

Comments
 (0)