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

Provide a place for custom CSS (alternate fix for #52) #93

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ Main Navigation (menu bar)
- ``MENUITEMS_AFTER``: ``()`` show static links (after categories)
e.g.: ``MENUITEMS_AFTER = ( ('link2', '/static/file2.pdf'), )``

Custom CSS
----------

- ``CUSTOM_CSS_FILE``: ``filename_path`` Specify a custom CSS file to be applied
to all pages, e.g.: ``CUSTOM_CSS_FILE = 'static/css/custom.css'``

Markup for Social Sharing
-------------------------

Expand Down
2 changes: 1 addition & 1 deletion templates/_includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h1>Recent Posts</h1>
{% endfor %}
</ul>
</section>
{% if categories %}
{% if categories and DISPLAY_CATEGORIES_ON_MENU %}
<section>

<h1>Categories</h1>
Expand Down
4 changes: 4 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@

<link href="{{ SITEURL }}/{{ THEME_STATIC_DIR}}/css/{{ CSS_FILE }}" media="screen, projection"
rel="stylesheet" type="text/css">
{% if CUSTOM_CSS_FILE %}
<link href="{{ SITEURL }}/{{ CUSTOM_CSS_FILE }}" media="screen, projection"
rel="stylesheet" type="text/css">
{% endif %}

<link href="//fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic"
rel="stylesheet" type="text/css">
Expand Down