Commit 6c232911 authored by Marien Fressinaud's avatar Marien Fressinaud

imp: Rename theme folder into templates

parent 6140349a
......@@ -55,11 +55,11 @@ $ tree
Well OK, Boop! basically just copied the `index.html` file under the `site`
directory. Let's write an article then.
For that, you'll need a template file under a `./theme` folder:
For that, you'll need a template file under a `./templates` folder:
```console
$ mkdir theme
$ echo '<html><body>{{ ARTICLE_CONTENT }}</body></html' > theme/article.html
$ mkdir templates
$ echo '<html><body>{{ ARTICLE_CONTENT }}</body></html' > templates/article.html
```
Then, you can create a Markdown file under a `./articles` folder:
......@@ -77,7 +77,7 @@ $ tree
│   │   └── all.atom.xml
│   ├── index.html
│   ├── my-article.html
├── theme
├── templates
│   └── article.html
└── index.html
$ echo site/my-article.html
......@@ -170,7 +170,7 @@ $ tree
│   └── style.css
├── static
│   └── style.css
├── theme
├── templates
│   └── article.html
└── index.html
```
......
......@@ -55,7 +55,7 @@ class Article:
self.meta["ARTICLE_CONTENT"] = content
# And we initialize a template for the article
article_template_filepath = os.path.join("theme", "article.html")
article_template_filepath = os.path.join("templates", "article.html")
self.template = boopsy.Template(article_template_filepath)
def render(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment