Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[to change the font color and size] #22

Open
svcuong opened this issue Nov 3, 2018 · 1 comment
Open

[to change the font color and size] #22

svcuong opened this issue Nov 3, 2018 · 1 comment

Comments

@svcuong
Copy link

svcuong commented Nov 3, 2018

I started to use the hugo-bootstrap theme to create personal website and I like it so much. However, I am quite confused how I could change the font color and size. I know this question will sound stupid but just failed in getting solutions after a couple of hours' searching. Thanks in advance if you could give some ideas.

@Xzya
Copy link
Owner

Xzya commented Nov 4, 2018

Hello,

There are several ways to do this:

  • You can include your own custom CSS, and manually change what you need

    • Include your custom CSS inside the static folder
    • Add a partial layout named head-custom.html and include the link to your custom CSS

For example:

static/css/custom-styles.css

.blog-post > a {
    color: green;
    font-size: 1.25rem;
}

layouts/partials/head-custom.html

<link href="{{ .Site.BaseURL }}css/custom-styles.css" rel="stylesheet">

The above would increase the font of the "Read More →" link and make it green.

Keep in mind that some elements might be harder to target if they don't have custom classes set to them, but you can always override any of the theme's layout files and include your own classes to make it easier.

Let me know if this works for you,
Thanks!

@Xzya Xzya mentioned this issue Nov 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants