mention lightboxes in babycode guide
This commit is contained in:
@ -128,6 +128,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>Text inside the tag becomes the alt text. The attribute is the image URL.</p>
|
<p>Text inside the tag becomes the alt text. The attribute is the image URL.</p>
|
||||||
<p>Images will always break up a paragraph and will get scaled down to a maximum of 400px. The text inside the tag will become the image's alt text.</p>
|
<p>Images will always break up a paragraph and will get scaled down to a maximum of 400px. The text inside the tag will become the image's alt text.</p>
|
||||||
|
<p>Multiple images attached to a post can be clicked to open a dialog to view them.</p>
|
||||||
</section>
|
</section>
|
||||||
<section class="babycode-guide-section">
|
<section class="babycode-guide-section">
|
||||||
<h2 id="adding-code-blocks">Adding code blocks</h2>
|
<h2 id="adding-code-blocks">Adding code blocks</h2>
|
||||||
@ -153,11 +154,12 @@
|
|||||||
</section>
|
</section>
|
||||||
<section class="babycode-guide-section">
|
<section class="babycode-guide-section">
|
||||||
<h2 id="spoilers">Spoilers</h2>
|
<h2 id="spoilers">Spoilers</h2>
|
||||||
{% set spoiler = "[spoiler=My spoiler tag]My hidden content[/spoiler]" %}
|
{% set spoiler = "[spoiler=Major Metal Gear Spoilers]Snake dies[/spoiler]" %}
|
||||||
<p>You can make a section collapsible by using the <code class="inline-code">[spoiler]</code> tag:</p>
|
<p>You can make a section collapsible by using the <code class="inline-code">[spoiler]</code> tag:</p>
|
||||||
{{ ("[code]\n%s[/code]" % spoiler) | babycode | safe }}
|
{{ ("[code]\n%s[/code]" % spoiler) | babycode | safe }}
|
||||||
Will produce:
|
Will produce:
|
||||||
{{ spoiler | babycode | safe }}
|
{{ spoiler | babycode | safe }}
|
||||||
|
All other tags are supported inside spoilers.
|
||||||
</section>
|
</section>
|
||||||
{% endset %}
|
{% endset %}
|
||||||
{{ sections | safe }}
|
{{ sections | safe }}
|
||||||
|
Reference in New Issue
Block a user