summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2023-08-31 09:03:14 -0500
committerBlaise Thompson <blaise@untzag.com>2023-08-31 09:03:14 -0500
commit3f817bb1d08cf145303d55e29bbbe96a10fedeb4 (patch)
tree1c7dbeea971e4bbb1c135b0337445b7e2e8674fe
parente2a1f5541f66b210f13a918ce239a70b38b3d7a8 (diff)
fence-photos
-rwxr-xr-xbuild.py13
-rw-r--r--posts/1813-fence.md13
-rw-r--r--posts/1813-fence/column-plan.jpgbin0 -> 1078713 bytes
-rw-r--r--posts/1813-fence/stoop-plan-alley.jpgbin0 -> 820573 bytes
-rw-r--r--posts/1813-fence/stoop-plan-street.jpgbin0 -> 1484855 bytes
5 files changed, 19 insertions, 7 deletions
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
+
+<figure>
+ <img src="./stoop-plan-street.jpg">
+</figure>
+
+<figure>
+ <img src="./stoop-plan-alley.jpg">
+</figure>
+
+<figure>
+ <img src="./column-plan.jpg">
+</figure>
diff --git a/posts/1813-fence/column-plan.jpg b/posts/1813-fence/column-plan.jpg
new file mode 100644
index 0000000..336ccb4
--- /dev/null
+++ b/posts/1813-fence/column-plan.jpg
Binary files 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
--- /dev/null
+++ b/posts/1813-fence/stoop-plan-alley.jpg
Binary files 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
--- /dev/null
+++ b/posts/1813-fence/stoop-plan-street.jpg
Binary files differ