Comments (7)
Hi @swade1987, the easiest way at the moment is to use Hugo Theme Components.
- In your
themes
folder, create an additional folder next to the folder you already have for Hallo, e.g.my-hallo
. - Inside this folder, create the file
assets/scss/hallo/_variables.scss
. You can copy this file over from Hallo if you like. - Alter the different variables used in this file. Currently
background-1
is used as the background colour;background-2
is unused. I may remove the unused variable in the future, so keep an eye on the release notes for the theme.
For example, to make the background red, use$background-1: #ff0000;
. - Alter the
config.toml
of your site to make use of both themes:theme = ["my-hallo", "hallo"]
. Hugo will then first look inmy-hallo
for the files it needs, before using the files inhallo
.
It seems like a good idea to add functionality to the theme to make this process easier. I will look into this!
from hallo-hugo.
I tested a little bit further and actually there is no need to create an additional theme folder. You can just create assets/scss/hallo/_variables.scss
directly in the root folder of your site. Then there's no need to alter config.toml
either. So ignore steps 1 and 4 and just perform steps 2 and 3 in the root folder of your site instead.
from hallo-hugo.
Awesome thanks for this @EmielH trying to work out how easy it'd be to switch to an image as well.
from hallo-hugo.
FYI ... it changes the colour when running locally.
However when deployed via Netlify it does not.
See https://github.com/swade1987/swade1987.github.io and https://www.stevenwade.co.uk/
from hallo-hugo.
That's too bad! Do you know whether it works when you have Hugo generate for production on your own machine? So just hugo
instead of hugo serve
. I'm curious if the problem is with Netlify or with the Hugo build. Unfortunately I don't have time to look into this myself the next couple of days...
from hallo-hugo.
@swade1987 I created configuration options for the colours that the theme uses. Can you check whether this fixes your problem on Netlify? Thanks!
from hallo-hugo.
Closing this issue. A new configuration option was added in version 2.0.0.
from hallo-hugo.
Related Issues (15)
- Overflow and x-sidescrolling on mobile HOT 3
- What about an imprint? HOT 6
- Mailform / formspree support? HOT 10
- Support for other protocols in links HOT 5
- Introduction not above the fold HOT 16
- Deploy theme - 404 error message
- Netlify Deploy error HOT 4
- Introduce dynamic spacing to keep introduction and link icons above the fold
- Image in top page seems to be broken when it isnβt square. HOT 1
- Unable to change the color with changes in config.toml HOT 6
- Favicon HOT 2
- Can you change the Title that says "Hello." ? HOT 3
- Error on building the theme with custom colors HOT 2
- Cannot deploy the site HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hallo-hugo.