figbert.com-website

[ACTIVE] the website and home of figbert on the clearnet
git clone git://git.figbert.com/figbert.com-website.git
Log | Files | Refs | README | LICENSE

commit 2f4bb9d4d8f51a17bdbb7ebee5690b42952cc4cb
parent ac8021d0bef0cd2445fffad72c55ad8f7480b76d
Author: FIGBERT <figbert@figbert.com>
Date:   Fri, 28 May 2021 21:35:33 -0700

Upgrade and clean up templates/index.html

Metadata is now more concise and comprehensive, based on
https://www.matuzo.at/blog/html-boilerplate/. Formatting
and indents have also been improved, and Tera shortcodes
now deal with whitespace appropriately.

Diffstat:
Mtemplates/index.html | 63+++++++++++++++++----------------------------------------------
1 file changed, 17 insertions(+), 46 deletions(-)

diff --git a/templates/index.html b/templates/index.html @@ -1,63 +1,34 @@ <!DOCTYPE html> <html lang="en"> <head> - <meta http-equiv="x-ua-compatible" content="ie=edge" /> - <meta http-equiv="content-type" content="text/html; charset=utf-8" /> - <meta - name="viewport" - content="width=device-width, initial-scale=1.0, viewport-fit=cover" - /> - - <meta name="theme-color" content="#4169e1"/> - <link rel="icon" href="/icon.png"/> - + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width"> + <title>{% if page.title %}{{ page.title }} :: {% endif %}{{ config.title }}</title> + <link rel="stylesheet" href="{{ get_url(path="global.css") | safe }}"> + <meta name="description" content="{% if page.description %}{{ page.description | safe }}{% else %}{{ config.description | safe }}{% endif %}"> + <meta property="og:title" content="{% if page.title %}{{ page.title | safe }} :: {% endif %}{{ config.title | safe }}"> + <meta property="og:description" content="{% if page.description %}{{ page.description | safe }}{% else %}{{ config.description | safe }}{% endif %}"> <meta property="og:type" content="website"> - + {%- if current_url %} + <meta property="og:url" content="{{ current_url | safe }}"> + <link rel="canonical" href="{{ current_url | safe }}"> + {% endif -%} <meta name="twitter:card" content="summary"> <meta name="twitter:creator" content="@therealFIGBERT"> - <meta name="twitter:site" content="@therealFIGBERT"> - - {% block description %} - {% if page.description %} - <meta name="description" content="{{ page.description }}" /> - <meta name="twitter:description" content="{{ page.description }}"> - {% else %} - <meta name="description" content="{{ config.description }}" /> - <meta name="twitter:description" content="{{ config.description}}"> - {% endif %} - {% endblock description %} - - {% if page.title %} - <meta name="twitter:title" content="{{ page.title }}"> - {% else %} - <meta name="twitter:title" content="{{ config.title }}"> - {% endif %} - - {% for link in config.extra.nav %} - <link rel="prerender" href="{{ link.path }}" /> - {% endfor %} - - <title> - {% block title %} - {% if page.title %}{{ page.title }} :: {% endif %}{{ config.title }} - {% endblock title %} - </title> - - <link rel="stylesheet" href="{{ get_url(path="global.css") | safe }}"> - {% block posthead %}{% endblock posthead %} + <link rel="icon" href="/icon.png"> + <meta name="theme-color" content="#4169E1"> </head> <body> <header> <nav> - {% for link in config.extra.nav %} - <a href="{{ link.path }}">{{ link.name }}</a> - {% endfor %} + {%- for link in config.extra.nav %} + <a href="{{ link.path | safe }}">{{ link.name }}</a> + {%- endfor %} </nav> - <hr/> + <hr> </header> <main> {% block content %}{% endblock content %} </main> </body> </html> -