Templating

GAX SSG

Templating

Templating (GAX Engine)

Variables:


{{ title }}
{{ description }}
{{ content }}
{{ post.url }}
{{ info.home.title }}

For Loop:


{% for post in collections.posts %}
  {{ post.title }}
{% endfor %}

{% for post in collections.posts | limit:3 %}
{% for post in collections.posts filter:tag=gax %}
{% for post in collections.posts by:(tutorial) %}

If Condition:


{% if title %}
  {{ title }}
{% elif description %}
  {{ description }}
{% else %}
  No data
{% endif %}

{% if tag in post.tags %}

Includes:


{% include "partials/header" %}

Filters:


{{ date | date("2006-01-02") }}
{{ title | upper }}
{{ title | lower }}

Prev/Next:


{{ prev_post.title }} - { { prev_post.url }}
{{ next_post.title }} - { { next_post.url }}

GAX GO Static Site Generator Built with GAX