Skip to content

Commit 7d8d3d9

Browse files
committed
Change warn back to warning to be compatible with obsidian callouts
1 parent f8915d7 commit 7d8d3d9

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

.vscode/shortcodes.code-snippets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
},
3030
"callout": {
3131
"scope": "markdown,jinja-md",
32-
"prefix": ["call","callout","danger","info","tip","warn"],
33-
"body": ["{% callout(type=\"${1|info,tip,warn,danger|}\") %}",
32+
"prefix": ["call","callout","tip","info","warning","danger"],
33+
"body": ["{% callout(type=\"${1|info,tip,warning,danger|}\") %}",
3434
"$2",
3535
"{% end %}"],
3636
"description": "Callout"

content/posts/.obsidian/plugins/obsidian-minimal-settings/data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"darkScheme": "minimal-things-dark",
66
"editorFont": "",
77
"lineHeight": 1.5,
8-
"lineWidth": 40,
8+
"lineWidth": 50,
99
"lineWidthWide": 60,
1010
"maxWidth": 88,
1111
"textNormal": 18,

content/posts/.obsidian/plugins/zola-shortcodes/main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

content/posts/home-assistant-dashboard-tablet/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ KDE Plasma 6 with the Maliit keyboard gave me the best tablet mode and on-screen
6969
4. Reorder USB to be the first boot device
7070
5. Reboot
7171

72-
{% callout(type="warn") %}
72+
{% callout(type="warning") %}
7373
When installing you should leave the Recovery Partition. I removed it and the ThinkPad Tablet Setup broke.
7474
{% end %}
7575

content/posts/homelab-adventure-part-2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Welcome to my journey in building my Homelab. This is part of a multipart series
1717
[**Sidequest: Switching from Salt to Ansible**](@/posts/homelab-switching-salt-to-ansible.md)
1818
[**Part 4: Application Hosting and Monitoring**](@/posts/homelab-adventure-part-4.md)
1919

20-
{% callout(type="warn") %}
20+
{% callout(type="warning") %}
2121
Since this blog post was written I have [switched from Salt to Ansible](@/posts/homelab-switching-salt-to-ansible.md).
2222
{% end %}
2323

@@ -213,7 +213,7 @@ base:
213213
- app.portainer
214214
```
215215
216-
{% callout(type="warn") %}
216+
{% callout(type="warning") %}
217217
Grains are controlled by the minion, so a server can access pillar data for other traits due to matching on grains.
218218
{% end %}
219219

content/posts/test/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ Info Box
320320
Tip Box
321321
{% end %}
322322

323-
{% callout(type="warn") %}
323+
{% callout(type="warning") %}
324324
Warning Box
325325
{% end %}
326326

themes/doingstuff-zola/sass/doingstuff/_responsive.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
background-color: #1b1e1f;
103103
}
104104
.danger,
105-
.warn,
105+
.warning,
106106
.info,
107107
.tip,
108108
blockquote {
@@ -129,12 +129,12 @@
129129
.info-icon {
130130
color: #52b5ff;
131131
}
132-
.warn {
132+
.warning {
133133
color: #eaeaea;
134134
background-color: #3d2e00;
135135
border-left-color: #b47602;
136136
}
137-
.warn-icon {
137+
.warning-icon {
138138
color: #fcb125;
139139
}
140140
.danger {

themes/doingstuff-zola/sass/doingstuff/_shortcodes.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
@extend %noteicon;
2323
}
2424

25-
.warn {
25+
.warning {
2626
color: #2e2e2ec4;
2727
background-color: #fff3cd;
2828
border-left-color: #ef9c03;
2929
@extend %notebox;
3030
}
3131

32-
.warn-icon {
32+
.warning-icon {
3333
color: #ef9c03;
3434
@extend %noteicon;
3535
}

themes/doingstuff-zola/templates/shortcodes/callout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smile"><circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line></svg>
55
{% elif type == "info" %}
66
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>
7-
{% elif type == "warn" %}
7+
{% elif type == "warning" %}
88
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-alert-circle"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>
99
{% elif type == "danger" %}
1010
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-alert-triangle"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>

0 commit comments

Comments
 (0)