Skip to content

Commit

Permalink
Create _tag_blockquote.html.jinja
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvianen committed Jul 14, 2024
1 parent 889227e commit cf180d4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/jinja/tags/_tag_blockquote.html.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{#
Copyright 2024 Scape Agency BV
#}

{#
Blockquote (<blockquote>)
===========================================================================
Defines a section that is quoted from another source.
Variables:
- `blockquote_text`: The text to be displayed as a blockquote. Defaults to "Default quote text".
- `cite_url`: The URL of the source of the quote. Defaults to "#".
Notes:
- The `| e` filter is used to escape any special characters in the variables to prevent XSS attacks.
Links:
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote
- https://www.w3schools.com/tags/tag_blockquote.asp
#}

<blockquote cite="{{ cite_url | default('#') | e }}">
{{ blockquote_text | default('Default quote text') | e }}
</blockquote>

0 comments on commit cf180d4

Please sign in to comment.