From 3f817bb1d08cf145303d55e29bbbe96a10fedeb4 Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Thu, 31 Aug 2023 09:03:14 -0500 Subject: fence-photos --- build.py | 13 +++++++------ posts/1813-fence.md | 13 ++++++++++++- posts/1813-fence/column-plan.jpg | Bin 0 -> 1078713 bytes posts/1813-fence/stoop-plan-alley.jpg | Bin 0 -> 820573 bytes posts/1813-fence/stoop-plan-street.jpg | Bin 0 -> 1484855 bytes 5 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 posts/1813-fence/column-plan.jpg create mode 100644 posts/1813-fence/stoop-plan-alley.jpg create mode 100644 posts/1813-fence/stoop-plan-street.jpg diff --git a/build.py b/build.py index 13fbc73..6a62eee 100755 --- a/build.py +++ b/build.py @@ -19,6 +19,11 @@ md = markdown.Markdown(extensions=['meta', "toc", "extra"]) env = jinja2.Environment(loader = jinja2.FileSystemLoader(str(__here__ / "templates"))) +shutil.rmtree(__here__ / "public") +os.mkdir(__here__ / "public") + + + # grab posts -------------------------------------------------------------------------------------- @@ -34,9 +39,9 @@ class Post: posts = [] tags = [] for post in os.listdir(__here__ / "posts"): - if len(post) < 3: - continue if not post.endswith(".md"): + shutil.copytree(__here__ / "posts" / post, + __here__ / "public" / post) continue with open(__here__ / "posts" / post, "r") as f: content = md.convert(f.read()) @@ -58,10 +63,6 @@ tags.sort() # index ------------------------------------------------------------------------------------------- -if not os.path.isdir(__here__ / "public"): - os.mkdir(__here__ / "public") - - template = env.get_template("index.html") with open(__here__ / "public" / "index.html", "w") as f: f.write(template.render(posts=posts, title="blog", date=date)) diff --git a/posts/1813-fence.md b/posts/1813-fence.md index e56ac8f..630055d 100644 --- a/posts/1813-fence.md +++ b/posts/1813-fence.md @@ -8,4 +8,15 @@ Cap blocks Column blocks: 4 x 20 Quarry Gray Kendall [Menards SKU 1793754](https://www.menards.com/main/building-materials/landscaping-materials/retaining-wall-block/4-x-20-kendall-freestanding-wall-block/1793754/p-9115189600888002-c-5787.htm) -Up against house, 16 inches to bottom course \ No newline at end of file + +
+ +
+ +
+ +
+ +
+ +
diff --git a/posts/1813-fence/column-plan.jpg b/posts/1813-fence/column-plan.jpg new file mode 100644 index 0000000..336ccb4 Binary files /dev/null and b/posts/1813-fence/column-plan.jpg differ diff --git a/posts/1813-fence/stoop-plan-alley.jpg b/posts/1813-fence/stoop-plan-alley.jpg new file mode 100644 index 0000000..354fdc9 Binary files /dev/null and b/posts/1813-fence/stoop-plan-alley.jpg differ diff --git a/posts/1813-fence/stoop-plan-street.jpg b/posts/1813-fence/stoop-plan-street.jpg new file mode 100644 index 0000000..d2f5fc6 Binary files /dev/null and b/posts/1813-fence/stoop-plan-street.jpg differ -- cgit v1.2.3