Add "alert" shortcode (#17)

This commit is contained in:
Md. Emruz Hossain 2020-06-29 23:36:01 +06:00 committed by GitHub
parent df67dee343
commit 8f99f05a98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -99,6 +99,7 @@ Here, are some handy shortcodes you can use with this theme.
- [img](https://toha.netlify.app/posts/short-codes/img/)
- [split](https://toha.netlify.app/posts/short-codes/split/)
- [vs](https://toha.netlify.app/posts/short-codes/vs/)
- [alert](https://toha.netlify.app/posts/short-codes/alert/)
## Project Roadmap
@ -184,6 +185,7 @@ Here, are the current plan and progress of various components of this theme. The
- [x] Image
- [x] Split Page into Multiple Column
- [x] Vertical space between two sections
- [x] Alert
- [ ] Figure & sub-figure
- [ ] Tabs

View file

@ -0,0 +1,3 @@
<div class="alert alert-{{ .Get "type"}}">
<strong>{{.Inner | markdownify }}</strong>
</div>