diff options
-rwxr-xr-x | build.py | 13 | ||||
-rw-r--r-- | posts/1813-fence.md | 13 | ||||
-rw-r--r-- | posts/1813-fence/column-plan.jpg | bin | 0 -> 1078713 bytes | |||
-rw-r--r-- | posts/1813-fence/stoop-plan-alley.jpg | bin | 0 -> 820573 bytes | |||
-rw-r--r-- | posts/1813-fence/stoop-plan-street.jpg | bin | 0 -> 1484855 bytes |
5 files changed, 19 insertions, 7 deletions
@@ -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 Binary files differnew file mode 100644 index 0000000..336ccb4 --- /dev/null +++ b/posts/1813-fence/column-plan.jpg diff --git a/posts/1813-fence/stoop-plan-alley.jpg b/posts/1813-fence/stoop-plan-alley.jpg Binary files differnew file mode 100644 index 0000000..354fdc9 --- /dev/null +++ b/posts/1813-fence/stoop-plan-alley.jpg diff --git a/posts/1813-fence/stoop-plan-street.jpg b/posts/1813-fence/stoop-plan-street.jpg Binary files differnew file mode 100644 index 0000000..d2f5fc6 --- /dev/null +++ b/posts/1813-fence/stoop-plan-street.jpg |