Tabula paginarum

Basic configuration

The frontpage on this site is generated entirely using YAML files referenced from wmk_config.yaml.

The configuration files look like this:

theme: wmk-story
site:
    title: Publius Vergilius Maro
    description: |
        Vergilus fuit poeta Romanus, qui aevo Augustano floruit. Tribus innotuit
        litterarum Latinarum operibus maximis: Bucolicis, Georgicis, et Aeneide
        carmine heroico.
    keywords: Aeneis, Bucolica, Georgica, Vergilius, poeta, aevum Augustanum
    base_url: https://wmk-story.baldr.net
    lang: la
    frontpage_data:
        - fp/banner.yaml
        - fp/spot1.yaml
        - fp/spot2.yaml
        - fp/spot3.yaml
        - fp/gallery.yaml
        - fp/items.yaml
    with_topmenu: true
    topmenu_title: Tabula paginarum
    topmenu_links:
        - title: Frontpage
          url: /
        - title: Configuration
          url: /config/
        - title: Shortcodes
          url: /shortcodes/
        - title: Styling examples
          url: /styling/
    with_footer: true
    footer_icons:
        - type: twitter
          brands: true
          label: Twitter
          link: https://twitter.com/publiusvergiliusmaro
        - type: facebook-f
          brands: true
          label: Facebook
          link: https://facebook.com/publiusvergiliusmaro
        - type: at
          label: Epistula electronica
          link: "mailto:publius@vergiliusmaro.org"
    footer_text: |
        Mantua me genuit, Calabri rapuere, tenet nunc
        <br>Parthenope, cecini pascua, rura, duces

As an example of the YAML files listed in frontpage_data, here is fp/banner.yaml:

section_type: banner
style:
    subtype: split
    orient: left
    imgpos: center
    fullscreen: true
    onload: ["img-fadein", "faderight"]
title: Publius Vergilius Maro – Aeneis
subtitle: |
    Vergilio mortuo, Lucius Varius Rufus et Plotius Tucca Aeneidem edendum curaverunt.
    Poeta autem maluit carmen perdere, quod nondum finitum est: plures versus
    imperfecti manent. Structura autem et historia formam ultimam habuerunt.
button:
  label : Epistolam mitte
  link : "mailto:publius@vergilusmaro.org"
  class: primary large wide smooth-scroll-middle
image : /img/sky/sky1.jpg

If you prefer, you could achieve the same effect using shortcodes. Simply place index.md in content/ with the following Markdown content:

---
title: Frontpage
template: base/default
---

{{​< banner('fp/banner.yaml') >}}
{{​< spotlight('fp/spot1.yaml') >}}
{{​< spotlight('fp/spot2.yaml') >}}
{{​< spotlight('fp/spot3.yaml') >}}
{{​< gallery('fp/gallery.yaml') >}}
{{​< items('fp/items.yaml') >}}