diff --git a/themes/grid/_config.yml b/themes/grid/_config.yml index 05a803b..8b6c0b8 100644 --- a/themes/grid/_config.yml +++ b/themes/grid/_config.yml @@ -2,3 +2,11 @@ less: paths: [] options: + +# Favicon +favicon: + small: /images/favicon-16x16.png + medium: /images/favicon-32x32.png + large: /images/favicon-48x48.png + xlarge: /images/favicon-64x64.png + xxlarge: /images/favicon-128x128.png diff --git a/themes/grid/layout/partial/head.ejs b/themes/grid/layout/partial/head.ejs index 68ea9a8..d295be4 100644 --- a/themes/grid/layout/partial/head.ejs +++ b/themes/grid/layout/partial/head.ejs @@ -1,6 +1,21 @@ + <%_ if (theme.favicon.xxlarge) { %> + + <% } %> + <%_ if (theme.favicon.xlarge) { %> + + <% } %> + <%_ if (theme.favicon.large) { %> + + <% } %> + <%_ if (theme.favicon.medium) { %> + + <% } %> + <%_ if (theme.favicon.small) { %> + + <% } %> <%- partial('partial/styles') -%> <%= config.title %> - <%= config.subtitle %> <%_ if (config.keyword) { -%> diff --git a/themes/grid/source/css/style.less b/themes/grid/source/css/style.less index af2d321..bf5d3ff 100644 --- a/themes/grid/source/css/style.less +++ b/themes/grid/source/css/style.less @@ -1,5 +1,5 @@ body { - background: url(/img/scatterbg.svg); + background: url(/images/scatterbg.svg); min-height: 100vh; height: 100%; } diff --git a/themes/grid/source/images/favicon-128x128.png b/themes/grid/source/images/favicon-128x128.png new file mode 100644 index 0000000..3d4f1c8 Binary files /dev/null and b/themes/grid/source/images/favicon-128x128.png differ diff --git a/themes/grid/source/images/favicon-16x16.png b/themes/grid/source/images/favicon-16x16.png new file mode 100644 index 0000000..e19500c Binary files /dev/null and b/themes/grid/source/images/favicon-16x16.png differ diff --git a/themes/grid/source/images/favicon-32x32.png b/themes/grid/source/images/favicon-32x32.png new file mode 100644 index 0000000..3e96bcc Binary files /dev/null and b/themes/grid/source/images/favicon-32x32.png differ diff --git a/themes/grid/source/images/favicon-48x48.png b/themes/grid/source/images/favicon-48x48.png new file mode 100644 index 0000000..127f4c0 Binary files /dev/null and b/themes/grid/source/images/favicon-48x48.png differ diff --git a/themes/grid/source/images/favicon-64x64.png b/themes/grid/source/images/favicon-64x64.png new file mode 100644 index 0000000..5b6f72b Binary files /dev/null and b/themes/grid/source/images/favicon-64x64.png differ diff --git a/themes/grid/source/img/scatterbg.svg b/themes/grid/source/images/scatterbg.svg similarity index 100% rename from themes/grid/source/img/scatterbg.svg rename to themes/grid/source/images/scatterbg.svg