-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for mutliple blog authors, and add boxout component for Singapo…
…re blog
- Loading branch information
1 parent
f6116ed
commit e76f9d1
Showing
5 changed files
with
37 additions
and
10 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% macro boxOut (content, borderColour) %} | ||
|
||
<style> | ||
.box-out { | ||
border: 3px solid var(--iai-pink); | ||
border-radius: 8px; | ||
margin: 3rem 0; | ||
padding: 2rem; | ||
} | ||
.box-out h2, .box-out h2 img { | ||
margin-top: 0; | ||
} | ||
.box-out img { | ||
margin-bottom: 1.5rem; | ||
} | ||
</style> | ||
|
||
<div class="box-out" {% if borderColour %}style="border-color: {{ borderColour }}"{% endif %}> | ||
{{ content | safe }} | ||
</div> | ||
|
||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters