diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/article.html | 6 | ||||
-rw-r--r-- | templates/footer.html | 17 | ||||
-rw-r--r-- | templates/header.html | 7 | ||||
-rw-r--r-- | templates/indextext.html | 7 | ||||
-rw-r--r-- | templates/template.html | 63 |
5 files changed, 63 insertions, 37 deletions
diff --git a/templates/article.html b/templates/article.html deleted file mode 100644 index 0ea8f66..0000000 --- a/templates/article.html +++ /dev/null @@ -1,6 +0,0 @@ - <div> - <div class="article"> - <a href="path-of-article.html"><h3>name-of-article</h3>date-of-article</a> - <p>description-of-article</p> - </div> - diff --git a/templates/footer.html b/templates/footer.html deleted file mode 100644 index 868f809..0000000 --- a/templates/footer.html +++ /dev/null @@ -1,17 +0,0 @@ - - </div> - - <footer>Generated by `seen`, a static blog generator.</footer> - - </main> - - </body> - <style> -div -{ - background-color: #ddd; - padding: 4pt; -} - </style> - -</html> diff --git a/templates/header.html b/templates/header.html deleted file mode 100644 index 592656b..0000000 --- a/templates/header.html +++ /dev/null @@ -1,7 +0,0 @@ -<!DOCTYPE html> - -<html> - - <body> - <h1>Blog</h1> - diff --git a/templates/indextext.html b/templates/indextext.html deleted file mode 100644 index 82e5e09..0000000 --- a/templates/indextext.html +++ /dev/null @@ -1,7 +0,0 @@ -<h1>Welcome to your blog</h1> - -<p> - You've generated your blog successfully, - to learn more, please read the README.md - file at the root of the repository. -</p> diff --git a/templates/template.html b/templates/template.html new file mode 100644 index 0000000..4b8dced --- /dev/null +++ b/templates/template.html @@ -0,0 +1,63 @@ +<!DOCTYPE html> + +<html> + <body> +{% if article %} + <header> + <h1> + {{ article_title }} + </h1> + <div> + <h3>{{ article_description }}</h3> + <p>{{ article_date }}</p> + </div> + </header> + <main> + <a href="/">« Go Back</a> + {{ article_text }} + </main> +{% else %} + <header> + <h1> + {{ blog_name }} + </h1> + <div> + <h3>{{ welcome_text }}</h3> + </div> + </header> + {{ article_index }} +{% endif %} + <footer> + {{ footer }} + </footer> + </body> + <style> +body { + font-family: sans-serif; +} +div.articles { + background-color: #ddd; + padding: 5px; +} +header { + height: min-content; +} +header h1 { + border-bottom: 2px solid #eee; + margin: 0; +} +header div { + display: flex; + flex-direction: row; +} +header p { + font-size: smaller; + padding: 10px 0 0 5px; +} +main { + background-color: #ddd; + padding: 5px; + display: block; +} + </style> +</html> |