Skip to content

Allow to add custom CSS - #38

Open
leoditommaso wants to merge 1 commit into
wangchucheng:mainfrom
leoditommaso:leoditommaso-custom-css
Open

Allow to add custom CSS#38
leoditommaso wants to merge 1 commit into
wangchucheng:mainfrom
leoditommaso:leoditommaso-custom-css

Conversation

@leoditommaso

Copy link
Copy Markdown

With this simple change you can enable anyone to adjust styles by adding a custom_css array into the params file. Mine looks like this:

custom_css = ["css/custom.css"]

And then I just add the file into the static directory.

This would be most useful for many people.

With this simple change you can enable anyone to adjust styles by adding a custom_css array into the params file. Mine looks like this:

```
custom_css = ["css/custom.css"]
```

And the I just add the file into the static directory.

This would be most useful for many people.
@wangchucheng

Copy link
Copy Markdown
Owner

Eureka has a feature to add a custom-head.html in html head. So that you can write almost anything you want there.

You can just create layouts/partials/custom-head.html in your project's path and write anything you want. This partial will be add to html head.

I did not mention it in documentation for now, because I have not decided whether to add it or not (Like a dark launch ;-)). Do you think this feature is worth adding? I think this can at least solve the problem of adding custom css.

@kermanx

kermanx commented Apr 16, 2022

Copy link
Copy Markdown

I did not mention it in documentation for now, because I have not decided whether to add it or not (Like a dark launch ;-)). Do you think this feature is worth adding? I think this can at least solve the problem of adding custom css.

In my opinion, this feature is really worth adding.👍

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

Successfully merging this pull request may close these issues.

3 participants