Skip to content

Commit 04448fb

Browse files
authored
Merge branch 'main' into BreadcrumbsInDefaultSingle
2 parents 7e5eb5f + f9a94f0 commit 04448fb

File tree

10 files changed

+84
-18
lines changed

10 files changed

+84
-18
lines changed

assets/css/compiled/main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/components/cards.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
user-select: none;
1111
}
1212

13-
.hextra-card:hover svg {
13+
.hextra-card:hover .hextra-card-icon svg {
1414
color: currentColor;
1515
}
1616

17-
.hextra-card svg {
17+
.hextra-card .hextra-card-icon svg {
1818
width: 1.5rem;
1919
color: #00000033;
2020
transition: color 0.3s ease;
@@ -25,11 +25,11 @@
2525
position: relative;
2626
}
2727

28-
.dark .hextra-card svg {
28+
.dark .hextra-card .hextra-card-icon svg {
2929
color: #ffffff66;
3030
}
3131

32-
.dark .hextra-card:hover svg {
32+
.dark .hextra-card:hover .hextra-card-icon svg {
3333
color: currentColor;
3434
}
3535

assets/css/typography.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@
6060
@apply hx:my-2;
6161
}
6262
}
63+
/* Task lists - hide list markers for lists containing checkboxes */
64+
:where(ul):not(:where([class~=not-prose],[class~=not-prose] *)):has(li input[type="checkbox"]) {
65+
@apply hx:list-none;
66+
}
6367
/* This CSS rule targets the first nested unordered (ul) or ordered (ol) list
6468
inside the list item (li) of any parent ul or ol.
6569
The rule sets the top margin of the selected list to zero. */

exampleSite/content/docs/guide/markdown.fa.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,18 @@ Hugo از [Markdown](https://en.wikipedia.org/wiki/Markdown) برای قالب
155155
- پنیر
156156
```
157157

158+
#### لیست وظایف
159+
160+
- [x] نوشتن مستندات
161+
- [ ] بازبینی کد
162+
- [ ] استقرار تغییرات
163+
164+
```markdown {filename=Markdown}
165+
- [x] نوشتن مستندات
166+
- [ ] بازبینی کد
167+
- [ ] استقرار تغییرات
168+
```
169+
158170
### تصاویر
159171

160172
![منظره](https://picsum.photos/800/600)

exampleSite/content/docs/guide/markdown.ja.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,18 @@ Hugo はテキストの書式設定やリスト作成などに [Markdown](https:
155155
- チーズ
156156
```
157157

158+
#### タスクリスト
159+
160+
- [x] ドキュメント作成
161+
- [ ] コードレビュー
162+
- [ ] 変更のデプロイ
163+
164+
```markdown {filename=Markdown}
165+
- [x] ドキュメント作成
166+
- [ ] コードレビュー
167+
- [ ] 変更のデプロイ
168+
```
169+
158170
### 画像
159171

160172
![風景](https://picsum.photos/800/600)

exampleSite/content/docs/guide/markdown.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,18 @@ Tables aren't part of the core Markdown spec, but Hugo supports them out-of-the-
155155
- Cheese
156156
```
157157

158+
#### Task list
159+
160+
- [x] Write documentation
161+
- [ ] Review code
162+
- [ ] Deploy changes
163+
164+
```markdown {filename=Markdown}
165+
- [x] Write documentation
166+
- [ ] Review code
167+
- [ ] Deploy changes
168+
```
169+
158170
### Images
159171

160172
![landscape](https://picsum.photos/800/600)

exampleSite/content/docs/guide/markdown.zh-cn.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,18 @@ Hugo 支持使用 [Markdown](https://en.wikipedia.org/wiki/Markdown) 语法来
155155
- 奶酪
156156
```
157157

158+
#### 任务列表
159+
160+
- [x] 编写文档
161+
- [ ] 代码审查
162+
- [ ] 部署更改
163+
164+
```markdown {filename=Markdown}
165+
- [x] 编写文档
166+
- [ ] 代码审查
167+
- [ ] 部署更改
168+
```
169+
158170
### 图片
159171

160172
![风景](https://picsum.photos/800/600)

exampleSite/content/docs/guide/shortcodes/cards.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@ linkTitle: Cards
3737

3838
## Card Parameters
3939

40-
| Parameter | Description |
41-
|------------|---------------------------------------------------------------------------------------|
42-
| `link` | URL (internal or external). |
43-
| `title` | Title heading for the card. |
44-
| `subtitle` | Subtitle heading (supports Markdown). |
45-
| `icon` | Name of the icon. See [icons]({{% relRef "icon" %}}) for more information. |
46-
| `tag` | Text in tag. |
47-
| `tagColor` | Color of the tag. See [badges]({{% relRef "others/#badges" %}}) for more information. |
40+
| Parameter | Description |
41+
|-------------|----------------------------------------------------------------------------------------|
42+
| `link` | URL (internal or external). |
43+
| `title` | Title heading for the card. |
44+
| `subtitle` | Subtitle heading (supports Markdown). |
45+
| `icon` | Name of the icon. See [icons]({{% relRef "icon" %}}) for more information. |
4846

4947
## Image Card
5048

@@ -72,21 +70,30 @@ For more on Hugo's built in image processing commands, methods, and options see
7270

7371
Card supports adding tags which could be useful to show extra status information.
7472

73+
| Parameter | Description |
74+
|-------------|----------------------------------------------------------------------------------------|
75+
| `tag` | Text in tag. |
76+
| `tagColor` | Color of the tag. See [badges]({{% relRef "others/#badges" %}}) for more information. |
77+
| `tagIcon` | Icon of the tag. See [badges]({{% relRef "others/#badges" %}}) for more information. |
78+
| `tagBorder` | Border of the tag. See [badges]({{% relRef "others/#badges" %}}) for more information. |
79+
7580
{{< cards >}}
7681
{{< card link="../callout" title="Card with default tag" tag="tag text" >}}
7782
{{< card link="../callout" title="Card with red tag" tag="tag text" tagColor="red" >}}
7883
{{< card link="../callout" title="Card with blue tag" tag="tag text" tagColor="blue" >}}
79-
{{< card link="../callout" title="Card with yellow tag" tag="tag text" tagColor="yellow" >}}
80-
{{< card link="/" title="Image Card" image="images/space.jpg" subtitle="Internet Image" tag="tag text" tagColor="red" >}}
84+
{{< card link="../callout" title="Card with yellow tag" tag="tag text" tagColor="yellow" tagIcon="sparkles" tagBorder=false >}}
85+
{{< card link="/" title="Image Card" image="/images/card-image-unprocessed.jpg" subtitle="Image" tag="tag text" tagColor="green" >}}
86+
{{< card link="/" title="Image Card" image="images/space.jpg" subtitle="Image" tag="tag text" tagColor="purple" tagIcon="sparkles" tagBorder=false >}}
8187
{{< /cards >}}
8288

8389
```
8490
{{</* cards */>}}
8591
{{</* card link="../callout" title="Card with default tag color" tag="tag text" */>}}
8692
{{</* card link="../callout" title="Card with red tag" tag="tag text" tagColor="red" */>}}
8793
{{</* card link="../callout" title="Card with blue tag" tag="tag text" tagColor="blue" */>}}
88-
{{</* card link="../callout" title="Card with yellow tag" tag="tag text" tagColor="yellow" */>}}
89-
{{</* card link="/" title="Image Card" image="images/space.jpg" subtitle="Internet Image" tag="tag text" tagColor="red" */>}}
94+
{{</* card link="../callout" title="Card with yellow tag" tag="tag text" tagColor="yellow" tagIcon="sparkles" tagBorder=false */>}}
95+
{{</* card link="/" title="Image Card" image="/images/card-image-unprocessed.jpg" subtitle="Image" tag="tag text" tagColor="green" */>}}
96+
{{</* card link="/" title="Image Card" image="images/space.jpg" subtitle="Image" tag="tag text" tagColor="purple" tagIcon="sparkles" tagBorder=false */>}}
9097
{{</* /cards */>}}
9198
```
9299

layouts/_partials/shortcodes/card.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
{{- $imageStyle := .imageStyle -}}
99
{{- $tag := .tag -}}
1010
{{- $tagColor := .tagColor | default .tagType | default "" -}}{{- /* Compatibility with previous parameter. */ -}}
11+
{{- $tagBorder := not (eq .tagBorder false) | default true }}
12+
{{- $tagIcon := .tagIcon -}}
1113

1214
{{ $linkClass := "hx:hover:border-gray-300 hx:bg-transparent hx:shadow-xs hx:dark:border-neutral-800 hx:hover:bg-slate-50 hx:hover:shadow-md hx:dark:hover:border-neutral-700 hx:dark:hover:bg-neutral-900" }}
1315
{{- with $image -}}
@@ -57,7 +59,8 @@
5759
"content" $tag
5860
"color" $tagColor
5961
"class" "hextra-card-tag"
60-
"border" true
62+
"border" $tagBorder
63+
"icon" $tagIcon
6164
)
6265
-}}
6366
{{- end -}}

layouts/_shortcodes/card.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
{{- $imageStyle := .Get "imageStyle" -}}
2626
{{- $tag := .Get "tag" -}}
2727
{{- $tagColor := .Get "tagColor" | default (.Get "tagType") | default "" -}}{{- /* Compatibility with previous parameter. */ -}}
28+
{{- $tagBorder := not (eq (.Get "tagBorder") false) | default true }}
29+
{{- $tagIcon := .Get "tagIcon" | default "" -}}
2830

2931
{{/* Image processing options */}}
3032
{{- $method := .Get "method" | default "Resize" | humanize -}}
@@ -61,5 +63,7 @@
6163
"imageStyle" $imageStyle
6264
"tag" $tag
6365
"tagType" $tagColor
66+
"tagBorder" $tagBorder
67+
"tagIcon" $tagIcon
6468
)
6569
-}}

0 commit comments

Comments
 (0)