update callout shortcode (#10326)

This commit is contained in:
Ihor Sychevskyi 2021-09-13 13:58:20 +03:00 committed by GitHub
parent e69e69fc95
commit d91a56d2ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 5 deletions

View File

@ -113,7 +113,7 @@
<!-- style sheets --> <!-- style sheets -->
<link rel="stylesheet" href="/css/all.css"> <link rel="stylesheet" href="/css/all.css">
<link rel="preconnect" href="https://fonts.gstatic.com"> <link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,600&display=swap"> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap">
<!-- set the color theme --> <!-- set the color theme -->
<script src="/js/themes_init.min.js"></script> <script src="/js/themes_init.min.js"></script>

View File

@ -1,12 +1,15 @@
<figure> <div>
<aside class="callout quote"> <aside class="callout quote">
<div class="quote-text"> <div class="type">
{{ partial "large_icon.html" "callout-quote" }}
</div>
<div class="content">
{{- $text := partial "strip_indent.html" (dict "content" .Inner "pos" .Position) -}} {{- $text := partial "strip_indent.html" (dict "content" .Inner "pos" .Position) -}}
{{- $text | markdownify -}} {{- $text | markdownify -}}
</div> </div>
{{ with .Get "caption" }} {{ with .Get "caption" }}
<figcaption class="quote-author">{{.}}</figcaption> <div class="quote-author">{{.}}</div>
{{ end }} {{ end }}
</aside> </aside>
</figure> </div>

View File

@ -1,5 +1,8 @@
<div> <div>
<aside class="callout tip"> <aside class="callout tip">
<div class="type">
{{ partial "large_icon.html" "callout-tip" }}
</div>
<div class="content"> <div class="content">
{{- $text := partial "strip_indent.html" (dict "content" .Inner "pos" .Position) -}} {{- $text := partial "strip_indent.html" (dict "content" .Inner "pos" .Position) -}}
{{- $text | markdownify -}} {{- $text | markdownify -}}