Merge pull request #80 from sio/override-css
Add configuration parameter to override the stylesheet 👍
main
commit
0c6fd9e5c3
|
@ -60,6 +60,8 @@ Visit the [Settings wiki](https://github.com/nairobilug/pelican-alchemy/wiki/Set
|
|||
- **PYGMENTS_STYLE**: Built-in Pygments style for syntax highlighting.
|
||||
- **HIDE_AUTHORS**: Hide the author(s) of an article - useful for single author sites.
|
||||
- **RFG_FAVICONS**: Use a Favicon Generator package.
|
||||
- **THEME_CSS_OVERRIDES**: Sequence of stylesheet URLs to override CSS provided by theme.
|
||||
Both relative and absolute URLs are supported.
|
||||
|
||||
Misc settings:
|
||||
|
||||
|
|
|
@ -21,6 +21,13 @@
|
|||
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/pygments/{{ PYGMENTS_STYLE|default('default') }}.min.css">
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/theme.css">
|
||||
{% for stylesheet in THEME_CSS_OVERRIDES or () %}
|
||||
{% if stylesheet|lower|truncate(4, True, '') == 'http' %}
|
||||
<link rel="stylesheet" href="{{ stylesheet }}">
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ SITEURL + '/' + stylesheet }}">
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% include 'include/xml_feeds.html' %}
|
||||
{% block head %}{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue