diff --git a/README.md b/README.md index ca54e62..763cf99 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ -# Anubis Theme for Hugo [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) [![Donate](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://www.paypal.com/paypalme/mitrichius/1) +# Anubis Theme for Hugo [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) [![Netlify Status](https://api.netlify.com/api/v1/badges/7d9ea909-ad7e-4e47-b7c9-eefb7522d8c6/deploy-status)](https://app.netlify.com/sites/hugo-theme-anubis/deploys) [![Donate](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://www.paypal.com/paypalme/mitrichius/1) Anubis is a simple minimalist theme for [Hugo blog engine](https://gohugo.io/). +[Demo](https://hugo-theme-anubis.netlify.app/) + ![Anubis Screenshot](https://raw.githubusercontent.com/mitrichius/hugo-theme-anubis/master/images/screenshot.png) ## Features @@ -119,7 +121,7 @@ Options: - `auto-without-switcher` - theme based on user system settings, without switcher, JS-free - `light` - light theme by default, can be switched by user to dark theme and back. Theme settings are saved for user - `dark` - dark theme by default, can be switched by user to light theme and back. Theme settings are saved for user -- `auto` - theme based on user system settings by default, can be switched by user to dark/light theme. Theme settings are saved for user +- `auto` - theme based on user system settings by default, can be switched by user to dark/light theme. Theme settings are saved for user (by default in example sites) ### Social icons #### Predefined icons diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 6090459..4ff657b 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -15,7 +15,7 @@ author = "Dmitry Kolosov" description = "Anubis is a simple minimalist theme for Hugo blog engine." dateFormat = "2006-01-02" paginationSinglePost = true -style = "light-without-switcher" +style = "auto" readMore = false # utteranc.es support diff --git a/exampleSiteMultilingual/config.toml b/exampleSiteMultilingual/config.toml index d4955b7..388fcc0 100644 --- a/exampleSiteMultilingual/config.toml +++ b/exampleSiteMultilingual/config.toml @@ -16,7 +16,7 @@ author = "Dmitry Kolosov" description = "Anubis is a simple minimalist theme for Hugo blog engine." dateFormat = "2006-01-02" paginationSinglePost = true -style = "light-without-switcher" +style = "auto" readMore = false # utteranc.es support diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..06db190 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,15 @@ +[build] +publish = "exampleSiteMultilingual/public" +command = "cd exampleSiteMultilingual && hugo --themesDir=../.. --baseURL $URL" + +[build.environment] +HUGO_VERSION = "0.89.0" +HUGO_THEME = "repo" + +[context.deploy-preview] +command = "cd exampleSiteMultilingual && hugo --themesDir=../.. --buildFuture --buildDrafts --baseURL $DEPLOY_PRIME_URL" + +[[headers]] + for = "/*" + [headers.values] + Access-Control-Allow-Origin = "*" \ No newline at end of file