Serge Bazanski | 4915425 | 2020-10-24 20:22:08 +0200 | [diff] [blame] | 1 | load("//tools/gostatic:rules.bzl", "gostatic_tarball") |
| 2 | |
| 3 | gostatic_tarball( |
| 4 | name = "example", |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 5 | srcs = [ |
| 6 | "src/blog.atom", |
| 7 | "src/blog/first.md", |
| 8 | "src/index.html", |
| 9 | "src/static/style.css", |
Serge Bazanski | 4915425 | 2020-10-24 20:22:08 +0200 | [diff] [blame] | 10 | ], |
Serge Bazanski | 4915425 | 2020-10-24 20:22:08 +0200 | [diff] [blame] | 11 | extra_config = """ |
| 12 | TITLE = Example Site |
| 13 | URL = https://example.com |
| 14 | AUTHOR = Your Name |
| 15 | |
| 16 | blog/*.md: |
| 17 | config |
| 18 | ext .html |
| 19 | directorify |
| 20 | tags tags/*.tag |
| 21 | markdown |
| 22 | template post |
| 23 | template page |
| 24 | |
| 25 | *.tag: blog/*.md |
| 26 | ext .html |
| 27 | directorify |
| 28 | template tag |
| 29 | markdown |
| 30 | template page |
| 31 | |
| 32 | blog.atom: blog/*.md |
| 33 | inner-template |
| 34 | |
| 35 | index.html: blog/*.md |
| 36 | config |
| 37 | inner-template |
| 38 | template page |
| 39 | |
| 40 | """, |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 41 | source_dir = "src", |
| 42 | templates = [ |
| 43 | "site.tmpl", |
Serge Bazanski | 4915425 | 2020-10-24 20:22:08 +0200 | [diff] [blame] | 44 | ], |
| 45 | ) |