diff options
| author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2026-02-06 17:30:49 +0530 |
|---|---|---|
| committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2026-02-06 17:30:49 +0530 |
| commit | 1f1a6a9cf86abae5e7523050f26cbfa5bfa41e89 (patch) | |
| tree | af1b524eb93fa02e0a574fc4adaf01823d63805b /templates | |
| parent | bd8f3070d34c6e8831a39f4e62ab356d9074c7fd (diff) | |
split styles.css and guestbook.css, cleaned up the site
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 2 | ||||
| -rw-r--r-- | templates/page.html | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html index 2bdb4e7..31ef012 100644 --- a/templates/base.html +++ b/templates/base.html @@ -11,7 +11,7 @@ {% block head_extra %}{% endblock head_extra %} {% if current_url %} - <link rel="canonical" href="{{ current_url | safe }}" /> + <link rel="canonical" href="{{ config.extra.baseurl }}{{ current_url | safe }}" /> {% endif %} <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ config.extra.feed_url | safe }}"> diff --git a/templates/page.html b/templates/page.html index 7f4dd5b..9f9b6b7 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,5 +1,14 @@ {% extends "base.html" %} +{% block head_extra %} + {% if page.path == "/guestbook/" or page.path == "/guestbook/success/" or page.path == "/guestbook/nonsuccess/" %} + <meta name="robots" content="noindex"> + {% endif %} + {% if page.path == "/guestbook/" %} + <link rel="stylesheet" type="text/css" href="/css/guestbook.css"> + {% endif %} +{% endblock head_extra %} + {% block title %}{{ page.title }} - {{ config.title }}{% endblock title %} {% block description %}{{ page.description }}{% endblock description %} |