M .build.yml => .build.yml +1 -1
@@ 17,7 17,7 @@ tasks:
mv bag bagatto-website/
- build: |
cd bagatto-website
- ./bag web.janet
+ ./bag index.janet
- deploy: |
cd bagatto-website
# Only deploy on master.
M guides/netlify.md => guides/netlify.md +1 -1
@@ 66,7 66,7 @@ If you're adapting this build manifest, you don't necessarily need them.
`netlify`, on the other hand, is the Netlify command line client, and `curl` is
used to download the Bagatto binary.
-[index]: https://git.sr.ht/~subsetpark/bagatto-website/tree/master/item/web.janet
+[index]: https://git.sr.ht/~subsetpark/bagatto-website/tree/master/item/index.janet
### Sources
R web.janet => index.janet +13 -8
@@ 1,15 1,15 @@
(bagatto/set-defaults! {:attrs bagatto/parse-mago})
(bagatto/set-output-dir! "site")
-(def index-path "index.html")
-(def guides-path "guides.html")
-(def api-path "api.html")
-(def manual-path "manual.html")
-(def getting-path "getting.html")
-(def logo-path "images/logo.svg")
+(def- index-path "index.html")
+(def- guides-path "guides.html")
+(def- api-path "api.html")
+(def- manual-path "manual.html")
+(def- getting-path "getting.html")
+(def- logo-path "images/logo.svg")
-(def guide-path (bagatto/%p "guides" '%i :title '% ".html"))
-(def build-path (bagatto/path-copier "builds"))
+(def- guide-path (bagatto/%p "guides" '%i :title '% ".html"))
+(def- build-path (bagatto/path-copier "builds"))
(defn parse-build
[_src {:path path}]
@@ 21,6 21,11 @@
(put attrs :sha sha)))
(def data {:config {:attrs {:title "Bagatto"
+ :nav [["Bagatto" index-path]
+ ["Getting Bagatto" getting-path]
+ ["Manual" manual-path]
+ ["Guides" guides-path]
+ ["API" api-path]]
:subtitle "A transparent, extensible static site generator"
:repo "https://sr.ht/~subsetpark/bagatto/"
:description "Bagatto: a transparent, extensible static site generator"}}
M templates/top.temple => templates/top.temple +1 -7
@@ 16,13 16,7 @@
<a class="nav-text focus-black" href="%s%s">%s</a>
</li>
```)
-
- (each [nav-title nav-item] [["Bagatto" index-path]
- ["Getting Bagatto" getting-path]
- ["Manual" manual-path]
- ["Guides" guides-path]
- ["API" api-path]]
-
+ (each [nav-title nav-item] (get-in args [:config :nav])
(printf templ (or (args :root) "") nav-item nav-title)) %}
<li class="nav-entry">
<a class="nav-text focus-black" href="{{ (get-in args [:config :repo]) }}">Source</a>