Skip to content

Commit f66a68b

Browse files
fix: update author breadcrumb rendering, increment version to 2.0.3 and fix the scripts in gscan@5.2.5
1 parent 4dc57de commit f66a68b

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

author.hbs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
{{!< default}}
22

33

4-
{{#author}}
4+
{{#author}}
5+
6+
{{#contentFor "breadcrumb-author"}}
7+
<li class="flex items-center gap-1 font-bold text-on-surface-strong dark:text-on-surface-dark-strong" aria-current="{{name}}">{{name}}</li>
8+
{{/contentFor}}
9+
510
<header class="mx-auto max-w-6xl px-6 pt-16 pb-12">
611
<div class="flex flex-col items-center gap-8 md:flex-row md:items-start">
712
{{#if profile_image}}
@@ -100,7 +105,8 @@
100105
</div>
101106
</div>
102107
</header>
103-
{{/author}}
108+
109+
{{/author}}
104110

105111
<section class="container mx-auto my-20 px-6">
106112
{{#author}}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "logly",
33
"description": "Logly is a minimalistic open-source theme designed for Ghost blogs.",
44
"demo": "https://github.com/frontendweb3/logly",
5-
"version": "2.0.2",
5+
"version": "2.0.3",
66
"engines": {
77
"ghost": ">=6.0.0"
88
},
@@ -18,8 +18,8 @@
1818
"format-fix": "prettier --write .",
1919
"preview": "node esbuild.config.js --preview",
2020
"zip": "npm run build && bestzip $npm_package_name.zip assets/dist/* assets/images/* partials/* members/* *.hbs package.json",
21-
"test-v5": "pnpm dlx gscan@latest . --v5",
22-
"test-v6": "pnpm dlx gscan@latest . --v6",
21+
"test-v5": "pnpm dlx gscan@5.2.5 . --v5",
22+
"test-v6": "pnpm dlx gscan@5.2.5 . --v6",
2323
"pretest": "npm run build"
2424
},
2525
"author": {

partials/header.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<li class="flex items-center gap-1 font-bold text-on-surface-strong dark:text-on-surface-dark-strong" aria-current="{{tag.name}}">{{tag.name}}</li>
4545
{{/is}}
4646
{{#is "author"}}
47-
<li class="flex items-center gap-1 font-bold text-on-surface-strong dark:text-on-surface-dark-strong" aria-current="{{author.name}}">{{author.name}}</li>
47+
{{{block "breadcrumb-author"}}}
4848
{{/is}}
4949
{{#is "page"}}
5050
<li class="flex items-center gap-1 font-bold text-on-surface-strong dark:text-on-surface-dark-strong" aria-current="{{page.title}}">{{page.title}}</li>

0 commit comments

Comments
 (0)