Skip to content

Commit 4595ab4

Browse files
committed
fix: theme upgrade
1 parent 37eae92 commit 4595ab4

File tree

20 files changed

+126
-64
lines changed

20 files changed

+126
-64
lines changed

claude/content/reflections/_content.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
{{ $cleanContent = replaceRE `- [*][*]Profile:[*][*][^\n]+\n` "" $cleanContent }}
136136
{{ $cleanContent = replaceRE `- [*][*]Tags:[*][*][^\n]+\n` "" $cleanContent }}
137137
{{ $cleanContent = replaceRE `- [*][*]UUID:[*][*][^\n]+\n` "" $cleanContent }}
138-
{{ $cleanContent = replaceRE `^\n+` "" $cleanContent }}
138+
{{ $cleanContent = replaceRE `^\n+` "\n" $cleanContent }}
139139

140140
{{/* Rewrite relative image paths to absolute */}}
141141
{{ $imageBasePath := printf "/reflections/diary/%s/%s/images/" $year $month }}

claude/content/wiki/getting-started.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ The collaboration platform operates in two distinct environments:
2323
Before using the platform, set up the local environment with the required dependencies.
2424

2525
<!-- prettier-ignore-start -->
26-
{{< tabs items="Mac,Linux,Windows" >}}
27-
{{< tab >}}
26+
{{< tabs >}}
27+
{{< tab name="Mac" >}}
2828
Use [Homebrew](https://brew.sh) package manager to install Claude Code:
2929

3030
```shell
@@ -59,7 +59,7 @@ Before using the platform, set up the local environment with the required depend
5959
}
6060
{{< /tab >}}
6161

62-
{{< tab >}}
62+
{{< tab name="Linux" >}}
6363
Use Anthropic's official installer to install the binary:
6464

6565
```shell
@@ -95,7 +95,7 @@ Before using the platform, set up the local environment with the required depend
9595
```
9696
{{< /tab >}}
9797

98-
{{< tab >}}
98+
{{< tab name="Windows" >}}
9999
Use Anthropic's official installer to install the binary:
100100

101101
```shell
@@ -230,16 +230,16 @@ Use the following [CLAUDE.md](https://code.claude.com/docs/en/memory) instructio
230230
To extend the platform usage, set up the container environment with the additional dependencies.
231231

232232
<!-- prettier-ignore-start -->
233-
{{< tabs items="Mac,Windows" >}}
234-
{{< tab >}}
233+
{{< tabs >}}
234+
{{< tab name="Mac" >}}
235235
Use [Homebrew](https://brew.sh) package manager to install Claude Desktop:
236236

237237
```shell
238238
brew install --cask claude
239239
```
240240
{{< /tab >}}
241241

242-
{{< tab >}}
242+
{{< tab name="Windows" >}}
243243
Download [Claude Desktop](https://claude.ai/download) and install the binary.
244244
{{< /tab >}}
245245
{{< /tabs >}}

claude/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/axivo/website/claude
22

3-
go 1.25
3+
go 1.26
44

55
require (
66
github.com/axivo/website/global v1.1.1 // indirect
7-
github.com/imfing/hextra v0.11.1 // indirect
7+
github.com/imfing/hextra v0.12.0 // indirect
88
)

claude/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
github.com/axivo/website/global v1.1.1 h1:CfIJmC5G5kreuFMRK5C+GuxgV+CWkErbg8lR5RZONi8=
22
github.com/axivo/website/global v1.1.1/go.mod h1:a/BSXKI9qEZ7PwHQJNyNZjqnT6iKwHD+YJg5UzwlVA8=
3-
github.com/imfing/hextra v0.11.1 h1:8pTc4ReYbzGTHAnyiebmlT3ijFfIXiGu1r7tM/UGjFI=
4-
github.com/imfing/hextra v0.11.1/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI=
3+
github.com/imfing/hextra v0.12.0 h1:f6y35hW/WDJEcx9S0dOmbICOBxYE0PmP6IJFsTUgVyY=
4+
github.com/imfing/hextra v0.12.0/go.mod h1:YAv8XRNSmcqjieFwI7fVQK1AoY2Do+45DO9HGqxSGu4=
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
<div class="hx:mt-4 hx:mb-6 hx:text-gray-500 hx:dark:text-gray-400 hx:text-sm hx:flex hx:items-center hx:flex-wrap hx:gap-y-2">
2-
{{- with $date := .Date -}}
3-
{{- $basePath := site.Params.variables.reflections.path -}}
4-
{{- $dayUrl := printf "%s/%s/" $basePath ($date.Format "2006/01/02") -}}
5-
<a href="{{ $dayUrl }}" class="hx:mr-1 hx:hover:text-gray-900 hx:dark:hover:text-gray-100 hx:transition-colors">
6-
{{- partial "utils/format-date" $date -}}
7-
</a>
8-
{{- with $.Params.time }}<span class="hx:mr-1">• {{ . }}</span>{{ end -}}
9-
{{- end -}}
10-
{{- if and .Date .Params.authors -}}
11-
<span class="hx:mr-1"></span>
12-
{{- end -}}
13-
{{- with .Params.authors -}}
14-
{{- range $author := . -}}
15-
{{- if reflect.IsMap $author -}}
16-
<a
17-
{{ with $author.link }}href="{{ . }}" target="_blank"{{ end }}
18-
class="hx:group hx:inline-flex hx:items-center hx:text-current hx:transition-colors hx:hover:text-gray-900 hx:dark:hover:text-gray-100"
19-
{{ with $author.name }}title="{{ . }}"{{ end }}
20-
>
21-
{{- with $author.image -}}
22-
<img
23-
src="{{ . | safeURL }}"
24-
alt="{{ $author.name }}"
25-
class="hx:inline-block hx:h-4 hx:w-4 hx:mr-1 hx:rounded-full"
26-
loading="lazy"
27-
/>
28-
{{- end -}}
29-
<div>{{ $author.name }}</div>
30-
</a>
2+
{{- with $date := .Date -}}
3+
{{- $basePath := site.Params.variables.reflections.path -}}
4+
{{- $dayUrl := printf "%s/%s/" $basePath ($date.Format "2006/01/02") -}}
5+
<a href="{{ $dayUrl }}" class="hx:mr-1 hx:hover:text-gray-900 hx:dark:hover:text-gray-100 hx:transition-colors">
6+
{{- partial "utils/format-date" $date -}}
7+
</a>
8+
{{- with $.Params.time }}<span class="hx:mr-1">• {{ . }}</span>{{ end -}}
9+
{{- end -}}
10+
{{- if and .Date .Params.authors -}}
11+
<span class="hx:mr-1"></span>
12+
{{- end -}}
13+
{{- with .Params.authors -}}
14+
{{- range $author := . -}}
15+
{{- if reflect.IsMap $author -}}
16+
<a
17+
{{ with $author.link }}href="{{ . }}" target="_blank"{{ end }}
18+
class="hx:group hx:inline-flex hx:items-center hx:text-current hx:transition-colors hx:hover:text-gray-900 hx:dark:hover:text-gray-100"
19+
{{ with $author.name }}title="{{ . }}"{{ end }}
20+
>
21+
{{- with $author.image -}}
22+
<img
23+
src="{{ . | safeURL }}"
24+
alt="{{ $author.name }}"
25+
class="hx:inline-block hx:h-4 hx:w-4 hx:mr-1 hx:rounded-full"
26+
loading="lazy"
27+
/>
28+
{{- end -}}
29+
<div>{{ $author.name }}</div>
30+
</a>
31+
{{- end -}}
3132
{{- end -}}
3233
{{- end -}}
33-
{{- end -}}
3434
</div>

claude/layouts/_partials/breadcrumb.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<div class="hx:mt-1.5 hx:flex hx:items-center hx:gap-1 hx:overflow-hidden hx:text-sm hx:text-gray-500 hx:dark:text-gray-400 hx:contrast-more:text-current">
55
{{- if eq $page.Data.Plural "tags" }}
66
<div class="hx:whitespace-nowrap hx:transition-colors hx:hover:text-gray-900 hx:dark:hover:text-gray-100">
7-
<a href="{{ $page.Parent.RelPermalink }}">{{ $page.Parent.Title }}</a>
7+
<a href="{{ $page.Parent.RelPermalink }}" class="hx:inline-block hx:rounded-sm hx:hextra-focus-visible-inset">{{ $page.Parent.Title }}</a>
88
</div>
99
{{- else }}
1010
{{- range $page.Ancestors.Reverse }}
1111
{{- if not .IsHome }}
1212
<div class="hx:whitespace-nowrap hx:transition-colors hx:min-w-[24px] hx:overflow-hidden hx:text-ellipsis hx:hover:text-gray-900 hx:dark:hover:text-gray-100">
13-
<a href="{{ .RelPermalink }}">{{- partial "utils/title" . -}}</a>
13+
<a href="{{ .RelPermalink }}" class="hx:inline-block hx:rounded-sm hx:hextra-focus-visible-inset">{{- partial "utils/title" . -}}</a>
1414
</div>
1515
{{- partial "utils/icon.html" (dict "name" "chevron-right" "attributes" "class=\"hx:w-3.5 hx:shrink-0 hx:rtl:-rotate-180\"") -}}
1616
{{ end -}}

claude/layouts/_partials/navbar-title.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
<a class="hx:flex hx:items-center hx:hover:opacity-75" href="/">
1313
{{- if $displayTitle }}
1414
{{- $parentTitle := .Site.Params.parentTitle -}}
15-
<span class="hx:font-extrabold hx:inline hx:select-none hx:text-2xl" title="{{ $parentTitle }}">{{ $parentTitle }}</span>
15+
<span class="hx:font-extrabold hx:inline hx:select-none hx:text-2xl">{{ $parentTitle }}</span>
1616
{{- end }}
1717
</a>
1818
{{- if $displayTitle }}<span></span>{{- end }}
1919
<a class="hx:flex hx:items-center hx:hover:opacity-75 hx:ltr:mr-auto hx:rtl:ml-auto" href="{{ $logoLink }}">
2020
{{- if $displayTitle }}
21-
<span class="hx:font-bold hx:inline hx:select-none" title="{{ .Site.Title }}">{{- .Site.Title -}}</span>
21+
<span class="hx:font-bold hx:inline hx:select-none">{{- .Site.Title -}}</span>
2222
{{- end }}
2323
</a>

claude/layouts/blog/frontpage.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
<div class="hx:mx-auto hx:flex hextra-max-page-width">
33
{{ partial "sidebar.html" (dict "context" .) }}
44
<article class="hx:w-full hx:break-words hx:flex hx:min-h-[calc(100vh-var(--navbar-height))] hx:min-w-0 hx:justify-center hx:pb-8 hx:pr-[calc(env(safe-area-inset-right)-1.5rem)]">
5-
<main class="hx:w-full hx:min-w-0 hextra-max-content-width hx:px-6 hx:pt-4 hx:md:px-12">
5+
<main id="content" class="hx:w-full hx:min-w-0 hextra-max-content-width hx:px-6 hx:pt-4 hx:md:px-12">
66
{{ partial "breadcrumb.html" (dict "page" . "enable" true) }}
77
<div class="content">
8-
{{ if .Title }}<h1>{{ .Title }}</h1>{{ end }}
8+
{{ if .Title }}
9+
<div class="hx:flex hx:flex-col hx:sm:flex-row hx:items-start hx:sm:items-center hx:sm:justify-between hx:gap-4 hx:mb-4">
10+
<h1 class="hx:mb-0">{{ .Title }}</h1>
11+
{{ partial "components/page-context-menu" . }}
12+
</div>
13+
{{ end }}
914
{{ .Content }}
1015
</div>
1116
{{- $pages := where site.RegularPages "Section" "reflections" -}}

claude/layouts/blog/list.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
<div class="hx:mx-auto hx:flex hextra-max-page-width">
33
{{ partial "sidebar.html" (dict "context" .) }}
44
<article class="hx:w-full hx:break-words hx:flex hx:min-h-[calc(100vh-var(--navbar-height))] hx:min-w-0 hx:justify-center hx:pb-8 hx:pr-[calc(env(safe-area-inset-right)-1.5rem)]">
5-
<main class="hx:w-full hx:min-w-0 hextra-max-content-width hx:px-6 hx:pt-4 hx:md:px-12">
5+
<main id="content" class="hx:w-full hx:min-w-0 hextra-max-content-width hx:px-6 hx:pt-4 hx:md:px-12">
66
{{ partial "breadcrumb.html" (dict "page" . "enable" true) }}
77
<div class="content">
8-
{{ if .Title }}<h1>{{ if eq .Data.Plural "tags" }}{{ .Data.Term }}{{ else }}{{ .Title }}{{ end }}</h1>{{ end }}
8+
{{ if .Title }}
9+
<div class="hx:flex hx:flex-col hx:sm:flex-row hx:items-start hx:sm:items-center hx:sm:justify-between hx:gap-4 hx:mb-4">
10+
<h1 class="hx:mb-0">{{ if eq .Data.Plural "tags" }}{{ .Data.Term }}{{ else }}{{ .Title }}{{ end }}</h1>
11+
{{ partial "components/page-context-menu" . }}
12+
</div>
13+
{{ end }}
914
{{ .Content }}
1015
</div>
1116
{{- $pages := .Pages -}}

claude/layouts/blog/single.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
<div class="hx:mx-auto hx:flex hextra-max-page-width">
33
{{ partial "sidebar.html" (dict "context" .) }}
44
<article class="hx:w-full hx:break-words hx:flex hx:min-h-[calc(100vh-var(--navbar-height))] hx:min-w-0 hx:justify-center hx:pb-8 hx:pr-[calc(env(safe-area-inset-right)-1.5rem)]">
5-
<main class="hx:w-full hx:min-w-0 hextra-max-content-width hx:px-6 hx:pt-4 hx:md:px-12">
5+
<main id="content" class="hx:w-full hx:min-w-0 hextra-max-content-width hx:px-6 hx:pt-4 hx:md:px-12">
66
{{ partial "breadcrumb.html" (dict "page" . "enable" true) }}
77
{{ if .Title }}<h1 class="hx:mt-2 hx:text-4xl hx:font-bold hx:tracking-tight hx:text-slate-900 hx:dark:text-slate-100">{{ .Title }}</h1>{{ end }}
8-
{{- partial "author.html" . -}}
8+
<div class="hx:flex hx:items-baseline hx:justify-between hx:flex-wrap hx:gap-y-2">
9+
{{- partial "author.html" . -}}
10+
{{- partial "components/page-context-menu" . -}}
11+
</div>
912
<div class="content">{{ .Content }}</div>
1013
{{- partial "components/last-updated.html" . -}}
1114
{{- partial "components/blog-comments.html" . -}}

0 commit comments

Comments
 (0)