gdritter repos tms / master example-site / site.adnot
master

Tree @master (Download .tar.gz)

site.adnot @masterraw · history · blame

{
  name "what happens when computer"

  artifacts [
    (every "posts/%.telml" {
      produce "posts/%.html"
      arguments {
        content (render (telml standard))
        url target
      }
    })

    (every "pages/%.telml" {
      produce "%.html"
      renderer (telml standard)
    })

    (all "posts/*.telml" {
      produce "archive.html"
      renderer (telml standard)
    })

    (all "posts/*.telml" {
      produce "tags.html"
      renderer (telml standard)
    })

    (all "posts/*.telml" {
      produce "feed.xml"
      renderer (telml rss)
    })
  ]

  tagsets {
    default {
      center (basic 1 "<div align=\"center\">{{0}}</div>")
      youtube (basic 3
       "<div align=\"center\">"
       "<iframe width=\"" 1 "\" height=\"" 2 "\" "
       "src=\"http://youtube.com/embed/\"" 0 "\" "
       "frameborder=\"0\" allowfullscreen></iframe>"
       "</div>"
      )
      audio (basic 1
        "<div align=\"center\"><audio controls=\"controls\">"
        "<source src=\"" 0 "\" type=\"audio/mp3\"/>"
        "</audio></div>"
      )
    }

    standard {
      wd (basic 2 "<span class=\"word\">" 0 "<span class=\"meaning\">" 1 "</span></span>")
      sidenote (basic 1 "")
      ref (basic 1 "<label for=\"" 0 "\" class=\"sidenote-number\"></label>")
    }

    rss {
      wd (basic 2 0)
      sidenote (basic 1 "")
      ref (basic 1 "")
    }
  }
}