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

Add Cover for Single Author's Page #10

Merged
merged 2 commits into from
Jul 15, 2017
Merged

Add Cover for Single Author's Page #10

merged 2 commits into from
Jul 15, 2017

Conversation

mcminnra
Copy link

Since you already parse AUTHORS_BIO for other information, just add a check and use this config to parse each author's cover.

@@ -30,7 +30,9 @@
<a class="menu-button"><i class="ic ic-menu"></i> Menu</a>
</span>
</nav>
{% if HEADER_COVER %}
{% if AUTHORS_BIO and author.name.lower() in AUTHORS_BIO %}
<div class="blog-cover cover" style="background-image: url('{{ AUTHORS_BIO[author.name.lower()].cover }}')">
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check the cover key is there or not in AUTHORS_BIO dict.

@arulrajnet arulrajnet merged commit a6aaa9e into arulrajnet:master Jul 15, 2017
arulrajnet added a commit that referenced this pull request Sep 1, 2019
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.

2 participants