aboutsummaryrefslogblamecommitdiffstats
path: root/templates/poem-panel.html
blob: e1fb016ff5d1f2d7006750e6ab0fe90b4f20022c (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                                                                                                         

                                                                                                     



                            
     
<div
  style="top: {{ self::thread_rng().gen_range(-jiggle..=jiggle) }}vw; left: {{ self::thread_rng().gen_range(-4..=4) }}vw"
  class="panel content poem">
  {% if let Some(title) = poem.title %}<h1 class="title">{{ title }}</h1>{% endif %}
  <h2 class="created-at">{{ poem.created_at.date_naive() }} <a href="/poetry/{{ poem.file_name }}">{{
      locale.text("permalink").unwrap() }}</a>
  </h2>
  <div class="poem-content">
    {{ poem.content|safe }}
  </div>
</div>