Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support GH style alert blockquotes #13738

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/scheduled-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Install Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.126.0"
hugo-version: "0.135.0"
extended: true

- name: Install Pulumi
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scheduled-upgrade-programs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Install Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.126.0"
hugo-version: "0.135.0"
extended: true

- name: Install Pulumi
Expand Down
2 changes: 1 addition & 1 deletion config/_default/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ markup:
autoHeadingID: true
autoHeadingIDType: "github"
attribute:
block: false
block: true
title: true
renderer:
hardWraps: false
Expand Down
18 changes: 18 additions & 0 deletions layouts/_default/_markup/render-blockquote-alert.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{ $icon := dict
"caution" "exclamation-triangle"
"important" "star"
"note" "pencil-alt"
"info" "info-circle"
"tip" "lightbulb"
"warning" "exclamation-triangle"
}}

<div class="note note-{{ .AlertType }}">
<div class="icon-and-line">
<i class="fas fa-{{ index $icon .AlertType }}"></i>
<div class="line"></div>
</div>
<div class="content">
{{- .Text -}}
</div>
</div>
3 changes: 3 additions & 0 deletions layouts/_default/_markup/render-blockquote-regular.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<blockquote>
{{ .Text }}
</blockquote>
Loading