diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2022-12-26 20:10:43 +0000 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2022-12-26 20:10:43 +0000 |
commit | d476691b86810e1dc1e9ea37c3fb9c6728f722ee (patch) | |
tree | 7f2686f4ce2617dc2caf0c371967ce0057929b3e | |
parent | 141225d062af26af3a2248653c6ebb0c502502b6 (diff) | |
download | blog-d476691b86810e1dc1e9ea37c3fb9c6728f722ee.tar.gz blog-d476691b86810e1dc1e9ea37c3fb9c6728f722ee.tar.bz2 blog-d476691b86810e1dc1e9ea37c3fb9c6728f722ee.zip |
Add README.md file
-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> |