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..fabb56f --- /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 %} + +