diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/404.html | 9 | ||||
-rw-r--r-- | templates/index.html | 49 | ||||
-rw-r--r-- | templates/macros.html | 4 | ||||
-rw-r--r-- | templates/page.html | 9 | ||||
-rw-r--r-- | templates/section.html | 16 | ||||
-rw-r--r-- | templates/tags/list.html | 16 | ||||
-rw-r--r-- | templates/tags/single.html | 16 |
7 files changed, 76 insertions, 43 deletions
diff --git a/templates/404.html b/templates/404.html index fc70c01..b044965 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,10 +1,8 @@ {% extends "index.html" %} -{% block header %} -{% endblock header %} +{% block header %} {% endblock header %} -{% block title %} -{% endblock title %} +{% block title %} {% endblock title %} {% block main %} <div id="spotlight" class="error-404 animated fadeIn"> @@ -22,5 +20,4 @@ </div> {% endblock main %} -{% block footer %} -{% endblock footer %} +{% block footer %} {% endblock footer %} diff --git a/templates/index.html b/templates/index.html index 01d448e..39f2405 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,4 +1,5 @@ {% import "macros.html" as macros %} + <!DOCTYPE html> <html lang="en-us"> <meta charset="UTF-8" /> @@ -7,19 +8,45 @@ <meta itemprop="name" content="{{config.title}}" /> <meta itemprop="description" content="{{config.description}}" /> + + + <!--- Instructions for web scrapers ---> + <meta name="robots" content="index, follow"> + + <meta name="description" content="your website description"> + <meta name="keywords" content="your, keywords, here"> + <meta name="author" content="Iustin Râznic"> + + <!--- Many websites use this so it has become almost standard to include ---> + <meta property="og:site_name" content="Site Name"> + <meta name="twitter:domain" property="twitter:domain" content="example.org"> + <meta name="og:title" property="og:title" content="Site Name"> + <meta property="og:description" content="your website description"> + <meta name="twitter:description" property="twitter:description" content="your website description"> + <meta name="og:image" content="https://link-to-an-image-that-represents-your-site"> + + <!--- below is for twitter sharing previews \\ you can test this at cards-dev.twitter.com ---> + <meta property="twitter:card" content="https://link-to-an-image-that-represents-your-site"> + <meta name="twitter:image:src" property="twitter:image:src" content="https://link-to-an-image-that-represents-your-site"> + <meta name="twitter:image" property="twitter:image" content="https://link-to-an-image-that-represents-your-site"> + <meta name="og:image:alt" property="og:image:alt" content="alt text for your image"> + + <meta property="og:url" content="example.org"> + <meta property="og:type" content="website"> + + <!--- If you have accounts on twitter that are relevant to your site ---> + <meta name="twitter:site" property="twitter:site" content="@yourTwitterHandle"> + <meta name="twitter:creator" property="twitter:creator" content="@yourTwitterHandle"> + + + <link rel="apple-touch-icon" sizes="180x180" href="{{get_url(path="apple-touch-icon.png")}}"/> - <link rel="icon" type="image/png" sizes="32x32" href="{{get_url(path="favicon-32x32.png")}}" /> - <link - rel="icon" - type="image/png" - sizes="16x16" - href="{{get_url(path="favicon-16x16.png")}}" - /> - <link - rel="shortcut icon" - href="{{get_url(path="favicon.ico")}}" - /> + <link rel="icon" type="image/png" sizes="32x32" href="{{get_url(path="favicon-32x32.png")}}"/> + <link rel="icon" type="image/png" sizes="16x16" href="{{get_url(path="favicon-16x16.png")}}"/> + <link rel="shortcut icon" href="{{get_url(path="favicon.ico")}}"/> + <link rel="stylesheet" href="{{get_url(path="style.css")}}"/> + {% if page.title %} <title>{{page.title}}</title> {% else %} diff --git a/templates/macros.html b/templates/macros.html index ab2f0cc..302bf43 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -9,7 +9,6 @@ {% endmacro read_time %} {% macro footer() %} - <footer id="site-footer" class="section-inner thin animated fadeIn faster"> <p>© {{ now() | date(format="%Y") }} <a href="{{ config.base_url }}">{{ config.extra.author.name }}</a>{{ config.extra.footer_copyright | safe }}</p> <p>Made with <a href="https://www.getzola.org" target="_blank" rel="noopener">Zola</a> · Theme <a href="https://github.com/VersBinarii/hermit_zola" target="_blank" rel="noopener">Hermit_Zola</a> @@ -18,11 +17,8 @@ {% endif %} </p> </footer> - {% endmacro footer %} - - {% macro render_social_icons() %} {% for icon in config.extra.hermit_social %} <a href="{{ icon.link }}" target="_blank" rel="noopener me" diff --git a/templates/page.html b/templates/page.html index 9dfe800..86c0712 100644 --- a/templates/page.html +++ b/templates/page.html @@ -50,8 +50,7 @@ </div> {% endblock header %} -{% block title %} -{% endblock title %} +{% block title %} {% endblock title %} {% block main %} <main class="site-main section-inner animated fadeIn faster"> @@ -169,8 +168,4 @@ </main> {% endblock main %} -{% block footer %} - -{{ macros::footer() }} - -{% endblock footer %} +{% block footer %} {{ macros::footer() }} {% endblock footer %} diff --git a/templates/section.html b/templates/section.html index 446c57c..4759971 100644 --- a/templates/section.html +++ b/templates/section.html @@ -1,5 +1,8 @@ -{% extends "index.html" %} {% import "macros.html" as macros %} {% block header -%} +{% extends "index.html" %} + +{% import "macros.html" as macros %} + +{% block header %} <header id="site-header" class="animated slideInUp faster"> <div class="hdr-wrapper section-inner"> <div class="hdr-left"> @@ -48,8 +51,11 @@ {% endfor %} </ul> </div> -{% endblock header %} {% block title %} {% endblock title %} {% block main %} +{% endblock header %} + +{% block title %} {% endblock title %} +{% block main %} <main class="site-main section-inner thin animated fadeIn faster"> <h1>{{ section.title }}</h1> {% for year, pages in section.pages | group_by(attribute="year") %} @@ -68,6 +74,6 @@ </div> {% endfor %} </main> +{% endblock main %} -{% endblock main %} {% block footer %} {{ macros::footer() }} {% endblock footer -%} +{% block footer %} {{ macros::footer() }} {% endblock footer %} diff --git a/templates/tags/list.html b/templates/tags/list.html index 8f9a35f..807181f 100644 --- a/templates/tags/list.html +++ b/templates/tags/list.html @@ -1,5 +1,8 @@ -{% extends "index.html" %} {% import "macros.html" as macros %} {% block header -%} +{% extends "index.html" %} + +{% import "macros.html" as macros %} + +{% block header %} <header id="site-header" class="animated slideInUp faster"> <div class="hdr-wrapper section-inner"> <div class="hdr-left"> @@ -35,8 +38,11 @@ {% endfor %} </ul> </div> -{% endblock header %} {% block title %} {% endblock title %} {% block main %} +{% endblock header %} + +{% block title %} {% endblock title %} +{% block main %} <main class="site-main section-inner thin animated fadeIn faster" style="text-align: center;"> {% block content %} {% for tag in terms %} @@ -49,6 +55,6 @@ {% endfor %} {% endblock content %} </main> +{% endblock main %} -{% endblock main %} {% block footer %} {{ macros::footer() }} {% endblock footer -%} +{% block footer %} {{ macros::footer() }} {% endblock footer %} diff --git a/templates/tags/single.html b/templates/tags/single.html index e04b872..b9b66e7 100644 --- a/templates/tags/single.html +++ b/templates/tags/single.html @@ -1,5 +1,8 @@ -{% extends "index.html" %} {% import "macros.html" as macros %} {% block header -%} +{% extends "index.html" %} + +{% import "macros.html" as macros %} + +{% block header %} <header id="site-header" class="animated slideInUp faster"> <div class="hdr-wrapper section-inner"> <div class="hdr-left"> @@ -44,8 +47,11 @@ {% endfor %} </ul> </div> -{% endblock header %} {% block title %} {% endblock title %} {% block main %} +{% endblock header %} + +{% block title %} {% endblock title %} +{% block main %} <main class="site-main section-inner thin animated fadeIn faster"> <h1>{{ term.name }}</h1> {% for year, pages in term.pages | group_by(attribute="year") %} @@ -66,6 +72,6 @@ </div> {% endfor %} </main> +{% endblock main %} -{% endblock main %} {% block footer %} {{ macros::footer() }} {% endblock footer -%} +{% block footer %} {{ macros::footer() }} {% endblock footer %} |