I have the following code in my default theme in grav after a fresh install , the code resides in the in base.html.twig
file which is basically a partial
, that gets used in other twig templates like so:
{% extends 'partials/base.html.twig' %}
{% block content %}
{{ page.content }}
{% endblock %}
ISSUE/PROBLEM STATEMENT:
So i have the following css being loaded in my base.html.twig
, but when i check loaded page i don't see the css/custom.css
file , why is this so ? why is the custom.css file not being loaded ?
{% block stylesheets %}
{% do assets.addCss('theme://css/pure-0.5.0/grids-min.css', 103) %}
{% do assets.addCss('theme://css-compiled/nucleus.css', 102) %}
{% do assets.addCss('theme://css-compiled/template.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/slidebars.min.css') %}
{% if browser.getBrowser == 'msie' and browser.getVersion == 10 %}
{% do assets.addCss('theme://css/nucleus-ie10.css') %}
{% endif %}
{% if browser.getBrowser == 'msie' and browser.getVersion >= 8 and browser.getVersion <= 9 %}
{% do assets.addCss('theme://css/nucleus-ie9.css') %}
{% do assets.addJs('theme://js/html5shiv-printshiv.min.js') %}
{% endif %}
{% endblock %}
{{ assets.css() }}