diff options
Diffstat (limited to 'templates/base.html')
| -rw-r--r-- | templates/base.html | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..181d859 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,70 @@ +{% import "macros/header.html" as header %} + +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width,initial-scale=1"> + <meta name="author" content="{{ config.author }}"> + <meta name="robots" content="index,follow"> + <meta name="description" content="{% block description %}{{ config.description }}{% endblock description %}"> + {% block head_extra %}{% endblock head_extra %} + + {% if current_url %} + <link rel="canonical" href="{{ current_url | safe }}" /> + {% endif %} + <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ config.extra.feed_url | safe }}"> + + <!-- OpenGraph --> + {% if current_url %} + <meta property="og:url" content="{{ current_url | safe }}" /> + {% endif %} + <meta property="og:site_name" content="{{ config.title }}" /> + <meta property="og:title" content="{% block og_title %}{{ config.title }}{% endblock og_title %}" /> + <meta property="og:description" content="{% block og_description %}{{ config.description }}{% endblock og_description %}" /> + <meta property="og:image" content="{% block og_image %}{{ config.extra.feature_image | safe }}{% endblock og_image %}" /> + <meta property="og:type" content="{% block og_type %}article{% endblock og_type %}" /> + + <link rel="stylesheet" type="text/css" href="/css/styles.css"> + + <title>{% block title %}{{ config.title }}{% endblock title %}</title> + </head> + + <body> + <div id="top"></div> + + <header id="site-header"> + {% block header %} + {% if page.path %} + {% set headerActivePage = page.path %} + {% else %} + {% set headerActivePage = "/" %} + {% endif %} + {{ header::site_header(activePage=headerActivePage) }} + {% endblock header %} + </header> + + <main> + {% block main %} + <article> + {{ page.content | safe }} + </article> + {% endblock main %} + </main> + + <footer id="site-footer"> + {% block footer %} + {% endblock footer %} + + <p id="copyright"> + Copyright © 2025 Vidhu Kant Sharma + <br> + The text and image content on this website is licensed under + <a href="https://creativecommons.org/licenses/by-nc-nd/4.0/">CC BY-NC-ND 4.0</a> + unless stated otherwise. + </p> + + <p id="top-link"><a href="#top">back to top</a></p> + </footer> + </body> +</html> |