Ver Fonte

Add "alert" shortcode (#17)

Md. Emruz Hossain há 4 anos atrás
pai
commit
8f99f05a98
2 ficheiros alterados com 5 adições e 0 exclusões
  1. 2 0
      README.md
  2. 3 0
      layouts/shortcodes/alert.html

+ 2 - 0
README.md

@@ -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
 

+ 3 - 0
layouts/shortcodes/alert.html

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