diff --git a/lib/tasks/views/build.js b/lib/tasks/views/build.js index 797242fd7..a658e72bf 100644 --- a/lib/tasks/views/build.js +++ b/lib/tasks/views/build.js @@ -40,10 +40,13 @@ export default (gulp, config, args) => { .pipe( minhtml({ collapseBooleanAttributes: true, + customAttrCollapse: /(content)/, + includeAutoGeneratedTags: false, + minifyCSS: true, + minifyJS: true, removeComments: true, removeScriptTypeAttributes: true, - removeStyleLinkTypeAttributes: true, - customAttrCollapse: /(content)/ + removeStyleLinkTypeAttributes: true })) .pipe(replace("$theme-name$", metadata.name)) .pipe(replace("$theme-version$", metadata.version)) diff --git a/material/base.html b/material/base.html index 67c2818e0..d2d4c8de5 100644 --- a/material/base.html +++ b/material/base.html @@ -111,57 +111,15 @@ {% endif %} {% endfor %} - + {% for path in extra_javascript %} {% endfor %} {% endblock %} {% block analytics %} {% if config.google_analytics %} - + {% endif %} {% endblock %} - + diff --git a/material/partials/fonts.html b/material/partials/fonts.html index d397b9549..0c3da5bbb 100644 --- a/material/partials/fonts.html +++ b/material/partials/fonts.html @@ -3,14 +3,7 @@ {% set code = config.extra.get("font", {}).code | default("Roboto Mono") %} {% set font = text + ':300,400,400i,700|' + code | replace(' ', '+') %} - + {% endif %} {% if config.extra.social %} diff --git a/material/partials/footer.html b/material/partials/footer.html index a40033241..78d9ee5a4 100644 --- a/material/partials/footer.html +++ b/material/partials/footer.html @@ -46,9 +46,9 @@ {% endif %} powered by MkDocs - and the - Material - theme + and + + Material for MkDocs {% if config.extra.social %}