Skip to content

Commit 4feaeea

Browse files
committed
always show heading permalinks on mobile. fix escaped html in post body
1 parent ce8fbba commit 4feaeea

File tree

8 files changed

+26
-21
lines changed

8 files changed

+26
-21
lines changed

config.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
'sort' => '-date',
2323
'path' => 'posts/{-title}',
2424
'filter' => function ($item) {
25-
return $item->getRelativePath() !== 'jigsaw';
26-
// return $item;
25+
// return $item->getRelativePath() !== 'jigsaw';
26+
return $item;
2727
},
2828
],
2929
'categories' => [
@@ -91,7 +91,7 @@
9191
'use_underscore' => true,
9292
'unordered_list_markers' => ['-', '*', '+'],
9393
],
94-
'html_input' => 'escape',
94+
'html_input' => 'allow',
9595
'allow_unsafe_links' => false,
9696
'max_nesting_level' => PHP_INT_MAX,
9797
'slug_normalizer' => [

source/_assets/css/base.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,33 +100,33 @@ h6 {
100100
}
101101

102102
h1 {
103-
@apply text-5xl;
103+
@apply text-4xl;
104104
@apply font-semibold;
105105
}
106106

107107
h2 {
108-
@apply text-4xl;
108+
@apply text-3xl;
109109
@apply font-semibold;
110110
}
111111

112112
h3 {
113-
@apply text-3xl;
113+
@apply text-2xl;
114114
@apply font-semibold;
115115
}
116116

117117
h4 {
118-
@apply text-2xl;
119-
@apply font-normal;
118+
@apply text-xl;
119+
@apply font-semibold;
120120
}
121121

122122
h5 {
123-
@apply text-xl;
124-
@apply font-normal;
123+
@apply text-lg;
124+
@apply font-semibold;
125125
}
126126

127127
h6 {
128-
@apply text-lg;
129-
@apply font-light;
128+
@apply text-base;
129+
@apply font-semibold;
130130
}
131131

132132
hr {

source/_assets/css/blog.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
}
1313

1414
.heading-permalink {
15-
@apply invisible;
1615
@apply font-sans;
17-
@apply font-semibold;
16+
@apply font-normal;
1817
@apply ml-2;
19-
@apply hover:text-primary-500;
20-
@apply text-primary-500/60;
18+
@apply lg:invisible;
19+
@apply lg:hover:text-primary-500;
20+
@apply lg:text-primary-500/60;
2121
}
2222

2323
h1:hover .heading-permalink,

source/_components/post-preview-inline.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class="font-semibold font-sans"
77
>{{ $post->title }}</a>
88
</h2>
99

10-
<h5 class="post-meta text-sm mt-0">
10+
<h5 class="post-meta text-sm font-light mt-0">
1111
{{ $post->getDate()->format('jS F, Y') }}{{ $post->getReadTime() }}
1212
</h5>
1313

source/_components/uses-section.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<dl class="-my-3 text-sm">
22
<div class="grid grid-cols-1 sm:grid-cols-4 mb-4">
3-
<dt class="text-2xl leading-tight mb-4">{{ $heading }}</dt>
3+
<dt class="leading-tight mb-4 pr-4">
4+
<h3>{{ $heading }}</h3>
5+
</dt>
46
<dd class="sm:col-span-3 mb-6 pl-6 border-l border-gray-300 dark:border-neutral-700 uses-border">
57
{{ $slot }}
68
</dd>

source/_layouts/post.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<h1 class="mb-2">{{ $page->title }}</h1>
1212

13-
<h5 class="post-meta text-sm mt-6 mb-4">
13+
<h5 class="post-meta text-sm font-light mt-6 mb-4">
1414
{{ $page->author }}{{ date('jS F, Y', $page->date) }}{{ $page->getReadTime() }}
1515
</h5>
1616

source/_posts/jigsaw/customizing-your-site.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This starter template comes pre-loaded with [Tailwind CSS](https://tailwindcss.c
3434
---
3535

3636
![](/assets/img/coding.jpg)
37-
*Source <a href="https://unsplash.com/@cdr6934?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Chris Ried</a>*
37+
*Source [Chris Ried](https://unsplash.com/@cdr6934?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash)*
3838

3939
---
4040

source/index.blade.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ class="bg-gradient-to-br from-primary-300 to-primary-700 rounded-full h-32 w-32
4040

4141
{{-- @include('_components.newsletter-signup')--}}
4242

43-
@foreach ($posts->where('featured', false)->take(6)->chunk(2) as $row)
43+
@if ($posts->where('featured', false)->count() > 0)
4444
<h2 class="mt-20 mb-12">Recent</h2>
45+
@endif
46+
47+
@foreach ($posts->where('featured', false)->take(6)->chunk(2) as $row)
4548
<div class="flex flex-col md:flex-row md:-mx-6">
4649
@foreach ($row as $post)
4750
<div class="w-full md:w-1/2 md:mx-6">

0 commit comments

Comments
 (0)