Merge pull request #111 from Mitrichius/netlify-deploy-preview
Add netlify config
This commit is contained in:
commit
837417e19f
@ -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/).
|
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)
|
![Anubis Screenshot](https://raw.githubusercontent.com/mitrichius/hugo-theme-anubis/master/images/screenshot.png)
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
@ -119,7 +121,7 @@ Options:
|
|||||||
- `auto-without-switcher` - theme based on user system settings, without switcher, JS-free
|
- `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
|
- `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
|
- `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
|
### Social icons
|
||||||
#### Predefined icons
|
#### Predefined icons
|
||||||
|
@ -15,7 +15,7 @@ author = "Dmitry Kolosov"
|
|||||||
description = "Anubis is a simple minimalist theme for Hugo blog engine."
|
description = "Anubis is a simple minimalist theme for Hugo blog engine."
|
||||||
dateFormat = "2006-01-02"
|
dateFormat = "2006-01-02"
|
||||||
paginationSinglePost = true
|
paginationSinglePost = true
|
||||||
style = "light-without-switcher"
|
style = "auto"
|
||||||
readMore = false
|
readMore = false
|
||||||
|
|
||||||
# utteranc.es support
|
# utteranc.es support
|
||||||
|
@ -16,7 +16,7 @@ author = "Dmitry Kolosov"
|
|||||||
description = "Anubis is a simple minimalist theme for Hugo blog engine."
|
description = "Anubis is a simple minimalist theme for Hugo blog engine."
|
||||||
dateFormat = "2006-01-02"
|
dateFormat = "2006-01-02"
|
||||||
paginationSinglePost = true
|
paginationSinglePost = true
|
||||||
style = "light-without-switcher"
|
style = "auto"
|
||||||
readMore = false
|
readMore = false
|
||||||
|
|
||||||
# utteranc.es support
|
# utteranc.es support
|
||||||
|
15
netlify.toml
Normal file
15
netlify.toml
Normal file
@ -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 = "*"
|
Loading…
Reference in New Issue
Block a user