diff options
-rw-r--r-- | README.md | 19 | ||||
-rw-r--r-- | templates/feed.html | 4 |
2 files changed, 20 insertions, 3 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..e7e74d6 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# Simple static blog (generator code and content) + +## Install + +``` +$ python3 -m venv .env +$ source .env/bin/activate +$ pip3 install -r requirements.txt +``` + +## Make a post + +``` +$ mkdir posts/hello-world +$ echo 'Title: Hello, World!' > posts/hello-world/metadata.txt +$ echo 'Date: 2022-12-23' >> posts/hello-world/metadata.txt +$ echo 'Hello, world!' > posts/hello-world/hello-world.txt +$ make deploy +``` diff --git a/templates/feed.html b/templates/feed.html index f8800bc..7d5a325 100644 --- a/templates/feed.html +++ b/templates/feed.html @@ -32,9 +32,7 @@ </time> </i> </span> - <a href="{{ post.name }}"> - {{ post.metadata.title }} - </a> + <a href="{{ post.name }}">{{ post.metadata.title }}</a> </li> {% endfor %} </ul> |