diff options
Diffstat (limited to 'templates/partials')
| -rw-r--r-- | templates/partials/footer.html | 6 | ||||
| -rw-r--r-- | templates/partials/head.html | 20 | ||||
| -rw-r--r-- | templates/partials/nav.html | 10 |
3 files changed, 19 insertions, 17 deletions
diff --git a/templates/partials/footer.html b/templates/partials/footer.html index 122766f..c116580 100644 --- a/templates/partials/footer.html +++ b/templates/partials/footer.html @@ -1,3 +1,7 @@ <footer> - <a href="{{ config.extra.repository_url }}">source code</a> + <p>Content is All Rights Reserved</p> + <p> + The <a href="{{ config.extra.repository_url }}">source code</a> is available + under the <a href="https://spdx.org/licenses/MIT.html">MIT License</a> + </p> </footer> diff --git a/templates/partials/head.html b/templates/partials/head.html index 5b1dcf6..fa2c30d 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -1,20 +1,22 @@ <head> <meta charset="UTF-8" /> - <meta name="viewport" content="width=device-width,initial-scale=1" /> - <style>{{ load_data(path="static/main.css") | safe }}</style> - <link rel="sitemap" href="sitemap.xml" /> {% if page.title %} - <title>{{ page.title }} :: {{ config.title }}</title> + {% set title = page.title %} {% elif section.title %} - <title>{{ section.title }} :: {{ config.title }}</title> + {% set title = section.title %} {% else %} - <title>{{ config.title }}</title> + {% set title = config.title %} {% endif %} + <title>{{ title }}</title> + <meta name="viewport" content="width=device-width,initial-scale=1" /> {% if page.description %} - <meta name="description" content="{{ page.description }}" /> + {% set description = page.description %} {% elif section.description %} - <meta name="description" content="{{ section.description }}" /> + {% set description = section.description %} {% else %} - <meta name="description" content="{{ config.description }}" /> + {% set description = config.description %} {% endif %} + <meta name="description" content="{{ description }}" /> + <link rel="sitemap" href="sitemap.xml" /> + <link rel="stylesheet" href="/style.css" /> </head> diff --git a/templates/partials/nav.html b/templates/partials/nav.html index e65db1d..bd74873 100644 --- a/templates/partials/nav.html +++ b/templates/partials/nav.html @@ -1,9 +1,5 @@ <nav> - <div id="nav_links"> - {% for link in config.extra.nav_links %} - <a href="{{ link.url }}">{{ link.name }}</a> - {% endfor %} - </div> - - <hr /> + {% for link in config.extra.nav_links %} + <div><a href="{{ link.url }}">{{ link.name }}</a></div> + {% endfor %} </nav> |
