mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
Improve admonition semantics
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1,8 +1,8 @@
|
|||||||
<div class="admonition note">
|
<aside class="admonition note">
|
||||||
<div class="note-icon">
|
<div class="note-icon">
|
||||||
{{partial "svg-icons/exclamation.svg" .}}
|
{{partial "svg-icons/exclamation.svg" .}}
|
||||||
</div>
|
</div>
|
||||||
<!-- <h2 id="{{if .Get 0}}{{.Get 0 | urlize}}{{else}}note{{end}}">{{if .Get 0}}{{.Get 0 | markdownify}}{{else}}Note{{end}}</h2> -->
|
<!-- <h2 id="{{if .Get 0}}{{.Get 0 | urlize}}{{else}}note{{end}}">{{if .Get 0}}{{.Get 0 | markdownify}}{{else}}Note{{end}}</h2> -->
|
||||||
<!-- <h3>Note</h3> -->
|
<!-- <h3>Note</h3> -->
|
||||||
<div class="admonition-content">{{- .Inner -}}</div>
|
<div class="admonition-content">{{- .Inner -}}</div>
|
||||||
</div>
|
</aside>
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
<div class="admonition warning">
|
<aside class="admonition warning">
|
||||||
<div class="admonition-icon">
|
<div class="admonition-icon">
|
||||||
{{partial "svg-icons/exclamation.svg" .}}
|
{{partial "svg-icons/exclamation.svg" .}}
|
||||||
</div>
|
</div>
|
||||||
<!-- <h2 id="{{if .Get 0}}{{.Get 0 | urlize}}{{else}}warning{{end}}">{{if .Get 0}}{{.Get 0 | markdownify}}{{else}}Warning{{end}}</h2> -->
|
<!-- <h2 id="{{if .Get 0}}{{.Get 0 | urlize}}{{else}}warning{{end}}">{{if .Get 0}}{{.Get 0 | markdownify}}{{else}}Warning{{end}}</h2> -->
|
||||||
<!-- <h3>Warning</h3> -->
|
<!-- <h3>Warning</h3> -->
|
||||||
<div class="admonition-content">{{- .Inner -}}</div>
|
<div class="admonition-content">{{- .Inner -}}</div>
|
||||||
</div>
|
</aside>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
.admonition {
|
.admonition {
|
||||||
padding: 1em;
|
padding: .75em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.note,
|
.note,
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user