# Material 5.x ## Migration ### Templates and partials If you customized the theme by [overriding partials][1] or [template blocks][2], make sure that you review and adapt the respective HTML structure, as there are some critical changes that need to made to ensure the theme works as expected. [1]: http://localhost:8000/customization/#overriding-partials [2]: http://localhost:8000/customization/#overriding-template-blocks #### `src/base.html` The `meta` tag localization approach is superseded by a JSON-based localization technique which can now be found at the bottom of the template. ``` diff - - {% for key in [ - "clipboard.copy", - "clipboard.copied", - "search.language", - "search.pipeline.stopwords", - "search.pipeline.trimmer", - "search.result.none", - "search.result.one", - "search.result.other", - "search.tokenizer" - ] %} - - {% endfor %} ``` The `application.css` stylesheet is now called `app.min.css` to signal that the source is optimized and minified, which may be important for legal purposes. ``` diff ``` The `application-palette.css` stylesheet has been removed in favor of the new color customization approach which is based on CSS variables. ``` diff - - {% if palette.primary or palette.accent %} - - - {% endif %} ``` The `modernizr.js` custom build was completely removed. ``` diff - {% block libs %} - - {% endblock %} + {% block libs %}{% endblock %} ``` The hidden inline SVG container has been removed, as the repository icons are now provided through the FontAwesome iconset. ``` diff - - - ``` An announcement bar was added just above the header which is shown if the `announcement` block is defined through template extension. ``` diff + + {% if self.announcement() %} + + {% endif %} + {% block header %} {% include "partials/header.html" %} {% endblock %} ``` The container and main area now state their corresponding component names. ``` diff -