~subsetpark/bagatto-website

73108998fc59637b71a0d5bb80220fc507cface0 — Zach Smith 7 days ago 9f2e80e
Add build file
A .build.yml => .build.yml +27 -0
@@ 0,0 1,27 @@
image: archlinux
packages:
  - curl
  - netlify
  - htmlmin
  - yuicompressor
secrets:
  -  82f3e52d-eef7-46bc-bb2f-4b93c8ce468c
environment:
  NETLIFY_SITE_ID: 7d716541-202c-43a6-8ad4-eb5c387597b5
tasks:
  - bag: |
      curl https://bagatto.co/builds/bag-x86_64-static.v0-6-1.tar.gz -o bag.tar.gz
      tar -xvf bag.tar.gz
      mv bag bagatto-website/
  - build: |
      cd bagatto-website
      ./bag index.janet
  - deploy: |
      cd bagatto-website
      {
        set +x
        . ~/.buildsecrets
        set -x
      }
      export NETLIFY_AUTH_TOKEN
      netlify deploy --site=$NETLIFY_SITE_ID --dir=site --prod

M blurbs/fast.md => blurbs/fast.md +1 -1
@@ 1,5 1,5 @@
{:title "Fast"
 :idx: 3}
 :idx 3}

%%%


M blurbs/intro.md => blurbs/intro.md +1 -1
@@ 1,5 1,5 @@
{:title "An SSG written in Janet"
 :idx: 0}
 :idx 0}

%%%


M blurbs/no-magic.md => blurbs/no-magic.md +1 -1
@@ 1,5 1,5 @@
{:title "No Magic"
 :idx: 2}
 :idx 2}

%%%


A builds/bag-x86_64-static.v0-6-1.tar.gz => builds/bag-x86_64-static.v0-6-1.tar.gz +0 -0
M templates/footer.temple => templates/footer.temple +1 -1
@@ 5,7 5,7 @@
    
    <footer class="footer pv5 ph3 pa6-ns mt5 dt-l w-100 lh-copy">
      <div class="">
        Z. D. Smith, Brooklyn, 2020
        Z. D. Smith, Brooklyn, 2021
      </div>
      <div class="dtc-l tr-l mt2 mt0-l">
        Built with Bagatto.

M web.janet => web.janet +3 -3
@@ 8,7 8,7 @@
(def getting-path "getting.html")
(def logo-path "images/logo.svg")

(def guide-path (bagatto/%p "guides" '%i "title" '% ".html"))
(def guide-path (bagatto/%p "guides" '%i :title '% ".html"))
(def build-path (bagatto/path-copier "builds"))

(defn parse-build


@@ 32,9 32,9 @@
           :manual {:src "../bagatto/MANUAL.md"}
           :logo {:src "../bagatto/assets/logo-trans.svg"}
           :blurbs {:src (bagatto/slurp-* "blurbs/*")
                    :transform (bagatto/attr-sorter "idx")}
                    :transform (bagatto/attr-sorter :idx)}
           :guides {:src (bagatto/slurp-* "guides/*")
                    :transform (bagatto/attr-sorter "idx")}
                    :transform (bagatto/attr-sorter :idx)}
           :getting {:src "getting.md"}
           :builds {:src (bagatto/* "builds/*")
                    :attrs parse-build