Skip to content

Commit 596208f

Browse files
committed
fixing alerts
Signed-off-by: Vanessa Sochat <[email protected]>
1 parent 958f6db commit 596208f

File tree

4 files changed

+126
-170
lines changed

4 files changed

+126
-170
lines changed

_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ feedback: true
4949
# If commented, will use material hat theme
5050
# logo: "assets/img/logo/SRCC-square-red.png"
5151
logo_pixels: 34
52-
color: "#8c1515" # primary color for header, buttons
52+
color: "#30638e"
53+
# color: "#8c1515" # primary color for header, buttons
5354

5455
# Build settings
5556
markdown: kramdown

_docs/getting-started.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,12 @@ and primary.
206206

207207
Just for fun, here are all the types:
208208

209-
{% include alert.html type="tip" content="This is a tip." %}
210-
{% include alert.html type="question" content="This is a question." %}
211209
{% include alert.html type="warning" content="This is a warning" %}
212210
{% include alert.html type="danger" content="This alerts danger!" %}
213211
{% include alert.html type="success" content="This alerts success" %}
212+
{% include alert.html type="info" content="This is useful information." %}
213+
{% include alert.html type="primary" content="This is a primary alert" %}
214+
{% include alert.html type="secondary" content="This is a secondary alert" %}
214215

215216
### Quotes
216217

_includes/alert.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<div class="admonition {{ include.type }}">
2-
<p class="admonition-title">{% if include.title %}{{ include.title }}{% else %}{{ include.type }}{% endif %}</p>
3-
<p>{{ include.content }}</p>
1+
<div class="alert alert-{{ include.type }}" role="alert">
2+
<h4 class="alert-heading">{% if include.title %}{{ include.title }}{% else %}{{ include.type }}{% endif %}</h4>
3+
{{ include.content }}
44
</div>
5-

0 commit comments

Comments
 (0)