From 8370c06340adaecdf9c455c55b960704c9d011b2 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sun, 18 Jun 2023 13:00:34 +0200 Subject: [PATCH] Add alt text to grav logo --- .../templates/partials/base.html.twig | 102 ++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 themes/learn2-dark/templates/partials/base.html.twig diff --git a/themes/learn2-dark/templates/partials/base.html.twig b/themes/learn2-dark/templates/partials/base.html.twig new file mode 100644 index 0000000..1c62e71 --- /dev/null +++ b/themes/learn2-dark/templates/partials/base.html.twig @@ -0,0 +1,102 @@ +{% set theme_config = attribute(config.themes, config.system.pages.theme) %} +{% set github_link_position = github_link_position is defined ? github_link_position : theme_config.github.position %} + + + +{% block head %} + + {% if header.title %}{{ header.title }} | {% endif %}{{ site.title }} + {% include 'partials/metadata.html.twig' %} + + + + + + {% block stylesheets %} + {% do assets.addCss('theme://css-compiled/nucleus.css',102) %} + {% do assets.addCss('theme://css-compiled/theme.css',101) %} + {% do assets.addCss('theme://css/custom.css',100) %} + {% do assets.addCss('theme://css/font-awesome.min.css',100) %} + {% do assets.addCss('theme://css/featherlight.min.css') %} + + {% if browser.getBrowser == 'msie' and browser.getVersion >= 8 and browser.getVersion <= 9 %} + {% do assets.addCss('theme://css/nucleus-ie9.css') %} + {% do assets.addCss('theme://css/pure-0.5.0/grids-min.css') %} + {% do assets.addJs('theme://js/html5shiv-printshiv.min.js') %} + {% endif %} + {% endblock %} + + {% block javascripts %} + {% do assets.addJs('jquery',101) %} + {% do assets.addJs('theme://js/modernizr.custom.71422.js',100) %} + {% do assets.addJs('theme://js/featherlight.min.js') %} + {% do assets.addJs('theme://js/clipboard.min.js') %} + {% do assets.addJs('theme://js/jquery.scrollbar.min.js') %} + {% do assets.addJs('theme://js/learn.js') %} + {% endblock %} + + {% block assets deferred %} + {{ assets.css()|raw }} + {{ assets.js()|raw }} + {% endblock %} + +{% endblock head %} + + + {% block sidebar %} + + {% endblock %} + + {% block body %} +
+
+ +
+ + + {% block topbar %}{% if github_link_position == 'top' or config.plugins.breadcrumbs.enabled %} +
+ {% if github_link_position == 'top' %} + + {% endif %} + + {% if config.plugins.breadcrumbs.enabled %} + {% include 'partials/breadcrumbs.html.twig' %} + {% endif %} +
+ {% endif %}{% endblock %} + + {% block content %}{% endblock %} + + {% block footer %} + {% if github_link_position == 'bottom' %} + {% include 'partials/github_note.html.twig' %} + {% endif %} + {% endblock %} + +
+ {% block navigation %}{% endblock %} +
+ {% endblock %} + + {% block analytics %} + {% if theme_config.google_analytics_code %} + {% include 'partials/analytics.html.twig' %} + {% endif %} + {% endblock %} + + {% block bottom %} + {{ assets.js('bottom')|raw }} + {% endblock %} + +