blob: cb54fec662837528e4982430cbf30c8711e250f3 [file] [log] [blame]
load("//tools/gostatic:rules.bzl", "gostatic_tarball")
gostatic_tarball(
name = "example",
templates = [
"site.tmpl",
],
source_dir = "src",
extra_config = """
TITLE = Example Site
URL = https://example.com
AUTHOR = Your Name
blog/*.md:
config
ext .html
directorify
tags tags/*.tag
markdown
template post
template page
*.tag: blog/*.md
ext .html
directorify
template tag
markdown
template page
blog.atom: blog/*.md
inner-template
index.html: blog/*.md
config
inner-template
template page
""",
srcs = [
"src/blog/first.md",
"src/static/style.css",
"src/blog.atom",
"src/index.html",
],
)