Skip to content

Commit

Permalink
Reduce logic on post-it component
Browse files Browse the repository at this point in the history
  • Loading branch information
asurcodes committed Jan 29, 2020
1 parent b46446c commit cb35417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/shortcodes/post-it.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="post-it {{ with .Params.type }} post-it--{{ . }} {{ else }} post-it--tip {{ end }}">
{{ with .Params.title }} <div class="post-it__title">{{.}}</div>{{ end }}
<div class="post-it__content">
{{ trim (replace .Inner "\n" "<br/>") "<br/>" | markdownify }}
{{ .Inner | markdownify | safeHTML }}
</div>
</div>

0 comments on commit cb35417

Please sign in to comment.