Задать вопрос

Тел: +7 965 3737 888

455

Просмотров

0

Ответов

Photologue wiki-syntax templatetag

<p><strong>updated 12/16/08</strong></p>
<p>I run several blogs by visual-artists and web-designers who want a quick way to insert images into their blog without the awkwardness of WSYIWYG and without the technicality of code (eww...).</p>
<p>Thanks in advance for your input.</p>
#Syntax in a blog goes:
[[thumb:the-image-slug]] # Gives you a thumbnail
[[image:the-image-slug]] # Presents full-size-image

<p>Then of course:</p>
{% blog.post|yeagowiki %}

<p>You will also need to create some templates (see snippet). Here's a sample:</p>
&lt;!-- /templates/photologue/image_snippet.html --&gt;
&lt;div class="photologue-image"&gt;
    &lt;a href="{% if url %}{{ url }}{% else %}/media/{{ image.image }}{% endif %}"&gt;
         &lt;img src="{{ image.get_display_url }}" /&gt;
    &lt;/a&gt;
    &lt;p class="photologue-image-caption"&gt;{{ image.caption }}&lt;/p&gt;
&lt;/div&gt;

Вопрос полезен? Да0/Нет0
file_2796.py(934.0б)
None