blog

blog

Ordnermein-design/templates/blog.html
Beispiel-URLdemoshop.versacommerce.de/blogs/news


HTML-Quellcode

{% comment %}

  Template: blog.html
  ===================

  Dieses Template erstellt eine Übersicht über alle Blogartikel.

  Dokumentation:
  http://developer.versacommerce.de/themes/variablen/

{% endcomment %}

<!-- blog.html -->
<h1>{{ blog.title }}</h1>

{% for article in blog.articles %}
  <h2>{{ article.title | link_to: article.url }}</h2>
  {{ article.content | strip_html | strip_newlines | truncatewords: 60 }}
  <time datetime="{{ article.created_at | date: '%FT%T%:z' }}" pubdate>
    Geschrieben am {{ article.created_at | date: '%-d. %B %Y' }}
  </time>
  <a href="{{ article.url }}">Mehr...</a>
{% endfor %}
<!-- /blog.html -->

    • Related Articles

    • blog_json.liquid

      Quellcode Status: 200 OK { "blog": { "id": {{ blog.id | json }, "handle": {{ blog.handle | json }, "url": {{ blog.url | json }, "full_url": {{ blog.full_url | json }, "title": {{ blog.title | json }, "articles": [ {% for article in blog.articles %} { ...
    • blogs_json.liquid

      Quellcode Status: 200 OK { "blogs": [ {% for blog in blogs.all_blogs %} { "blog": { "id": {{ blog.id | json }}, "handle": {{ blog.handle | json }}, "url": {{ blog.url | json }}, "full_url": {{ blog.full_url | json }} } }{% if forloop.rindex > 1 %},{% ...
    • article_json.liquid

      Quellcode Status: 200 OK { "article": { "id": {{ articel.id | json }}, "title": {{ articel.title | json }}, "content": {{ articel.content | json }}, "author": {{ articel.author | json }}, "blog": { "id": {{ articel.blog.id | json }}, "handle": ...
    • article

      Die Datei article.html stellt einen Blogeintrag und optional auch dessen Kommentare dar. Ordner mein-design/templates/article.html Beispiel-URL demoshop.versacommerce.de/collections/meine-gruppe Wichtige Hinweise Wenn ein Besucher einen Kommentar ...
    • metafield

      The metafield variable allows access to information that can be arbitrarily bound to objects in the shop. Metafields consist of key-value pairs that are grouped in a namespace. These values can be strings or integers. Metafields may be added to any ...