diff --git a/README.md b/README.md index f50b7c3..037bf02 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,11 @@ Personal website; can be viewed at [hannahilea.com](https://hannahilea.com). - [ ] Fill out remaining project page links - [ ] Update deets on home page - [ ] Remove "under construction" flags +- [ ] Blog niceties: + - [ ] footnote support + - [ ] better header + - [ ] style update + - [ ] works nicely on phone? ### Use template to add new content Run `julia --startup-file=no add_stuff.jl ` with arg `blog` or `p5`. diff --git a/add_stuff.jl b/add_stuff.jl index 8eda480..1c07e13 100644 --- a/add_stuff.jl +++ b/add_stuff.jl @@ -28,7 +28,7 @@ function new_p5_project() str = replace(str, "{{ DIR_NAME }}" => dir_name) write(file, str) end - + @info "Adding new project to project index" let index_path = joinpath("projects", "index.html") @@ -58,7 +58,12 @@ function new_blog_post() @info "Creating new blog directory" blog_title dir_name cp(joinpath("blog", "__template"), dir) for file in readdir(dir; join=true) + if endswith(file, ".rss_blob.xml") + rm(file) + continue + end startswith(basename(file), ".") && continue + @info "Updating $file..." str = read(file, String) str = replace(str, "{{ BLOG_TITLE }}" => blog_title) diff --git a/blog/__template/.rss_blob.xml b/blog/__template/.rss_blob.xml index c79ea49..01fd2ab 100644 --- a/blog/__template/.rss_blob.xml +++ b/blog/__template/.rss_blob.xml @@ -1,4 +1,4 @@ - -
  • 17 May 2024: This website’s structure: a meta post -

    In which the structure of this website is motivated and described.

    +
  • 6 September 2024: Clapping Music for two flip-disc displays
  • -
  • 23 Feb 2024: Hello world -

    In which I create a boring initial post as a placeholder, while setting up this website.

    +
  • 17 May 2024: This website’s structure: a meta post
  • diff --git a/blog/site-structure/index.html b/blog/site-structure/index.html index 29957b5..6c218d3 100644 --- a/blog/site-structure/index.html +++ b/blog/site-structure/index.html @@ -3,7 +3,7 @@ Blog: This website’s structure: a meta post - +