diff options
| author | Miran Bastaja <ihazpink@pm.me> | 2024-07-29 02:02:42 +0300 |
|---|---|---|
| committer | Miran Bastaja <ihazpink@pm.me> | 2024-07-29 02:02:42 +0300 |
| commit | 767d900874dc803319f57a066c8b97f80f66697b (patch) | |
| tree | 1c8a81f088ab4a4d2da03feb4ce97db892e9f760 /templates | |
| parent | 0c08d40a703ec4b4e377a8bb3decf0227b43ab3a (diff) | |
| parent | 29b670de0bcf65eeaae7e95eb4607ced912c4a27 (diff) | |
Merge pull request 'Update site theme' (#1) from theming into main
Reviewed-on: https://git.sorre.xyz/miranb/sorre-website/pulls/1
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 26 | ||||
| -rw-r--r-- | templates/blog-page.html | 4 | ||||
| -rw-r--r-- | templates/index.html | 33 |
3 files changed, 45 insertions, 18 deletions
diff --git a/templates/base.html b/templates/base.html index f07856d..53a9db5 100644 --- a/templates/base.html +++ b/templates/base.html @@ -2,13 +2,31 @@ <html lang="en"> <head> - <meta charset="utf-8"> - <title>Sorre</title> + <meta charset="UTF-8"> + <meta content="text/html; charset=UTF-8" http-equiv="content-type" /> + <meta content="width=device-width, initial-scale=1" name="viewport" /> <link rel="stylesheet" href="/style.css"> + + {% if page.title %} + {% set title = page.title %} + {% elif section.title %} + {% set title = section.title %} + {% elif config.title %} + {% set title = config.title %} + {% endif %} + {% if title %}<title>{{ title }}</title>{% endif %} + + {% if config.generate_feed %} + <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false)}}"> + {% endif %} + + <link rel="stylesheet" href="{{ get_url(path='style.css', trailing_slash=false) | safe }}" /> </head> -<body> - {% block content %} {% endblock %} +<body theme="auto"> + <div class="w"> + {% block content %} {% endblock %} + </div> </body> </html> diff --git a/templates/blog-page.html b/templates/blog-page.html index 0414d85..2e54a27 100644 --- a/templates/blog-page.html +++ b/templates/blog-page.html @@ -3,7 +3,7 @@ {% block content %} <header> - <h1 class="title"> + <h1 id="title"> {{ page.title }} </h1> <div> @@ -14,4 +14,4 @@ </header> {{ page.content | safe }} -{% endblock content %} +{% endblock content %}
\ No newline at end of file diff --git a/templates/index.html b/templates/index.html index d894455..f57baf5 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,23 +1,32 @@ {% extends "base.html" %} {% block content %} -<h1 class="title"> +<h1 id="page-title"> {{ section.title }} </h1> <p>{{ section.description }}</p> <nav> - Posts: - <ul> - {% for page in section.pages %} - <li> - <a href="{{ page.permalink | safe }}">{{ page.title }}</a> - <p>written: {{ page.date }}, </p> - <p>updated: {{ page.updated }}</p> - </li> - {% endfor %} - </ul> + <table> + <caption> + Posts + </caption> + <thead> + <tr> + <td>Title</td> + <td>Date</td> + </tr> + </thead> + <tbody> + {% for page in section.pages %} + <tr> + <td><a href="{{ page.permalink | safe }}">{{page.title}}</a></td> + <td>{{ page.date }}</td> + </tr> + {% endfor %} + </tbody> + </table> </nav> -{% endblock %} +{% endblock %}
\ No newline at end of file |
