forked from deepStateMirrors/tabi
✨ feat: add multilingual quote shortcode
This commit is contained in:
parent
58d0dd6f2f
commit
ab29511d5e
8 changed files with 109 additions and 5 deletions
20
templates/shortcodes/multilingual_quote.html
Normal file
20
templates/shortcodes/multilingual_quote.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<div class="quote-container">
|
||||
<input type="checkbox" id="toggle" class="quote-toggle">
|
||||
<div class="quote">
|
||||
<div class="translated">
|
||||
<blockquote>
|
||||
<p>"{{ translated }}"</p>
|
||||
<p> — {{ author }} <label for="toggle" class="quote-label quote-label-original">
|
||||
({%- if lang != config.default_language %}{{ trans(key="show_original_quote" | safe, lang=lang) }}{% else %}Show original quote{% endif %})</label></p>
|
||||
</blockquote>
|
||||
</div>
|
||||
<div class="original">
|
||||
<blockquote>
|
||||
<p>"{{ original }}"</p>
|
||||
<p> — {{ author }} <label for="toggle" class="quote-label quote-label-translate">
|
||||
({%- if lang != config.default_language %}{{ trans(key="show_translation" | safe, lang=lang) }}{% else %}Show translation{% endif %})
|
||||
</label></p>
|
||||
</blockquote>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue