aboutsummaryrefslogblamecommitdiff
path: root/_layouts/post.html
blob: 345f78141c87c563ae0b6b697727ad668cb0171f (plain) (tree)
1
2
3
4
5
6
7
8
9


               
                    

                                             


                          

                                                     

             
 


                                                                               
                                                          
          
 
                            
                                                                       




                                                                                 


                                                            
 
                            
                                                                        

           
 
             
 
                         


                                   
      
---
layout: default
---
<div class="header">
  {{ site.t.posted_on[page.lang] }}
  {% include i18n-date.html date=page.date %}

  {% if page.updated_at %}
    <br />
    {{ site.t.updated_at[page.lang] }}
    {% include i18n-date.html date=page.updated_at %}
  {% endif %}
</div>

{% if page.audio %}
  {% assign ogg=page.url | replace_first: "/", "" | replace: ".html", ".ogg" %}
  <audio controls>
    <source src="{% link {{ ogg }} %}" type="audio/ogg" />
  </audio>

  <div class="torrent-link">
    <a href="{{ ogg | absolute_url | append: ".torrent" }}">torrent</a>
  </div>
{% endif %}

{% if page.video %}
  {% assign webm=page.url | replace_first: "/", "" | replace: ".html", ".webm" %}
  <video width="320" height="240" controls>
    <source src="{% link {{ webm }} %}" type="video/webm" />
  </video>

  <div class="torrent-link">
    <a href="{{ webm | absolute_url | append: ".torrent" }}">torrent</a>
  </div>
{% endif %}

{{ content }}

<div class="post-footer">
  <p>
    {% include public-inbox.html %}
  </p>
</div>