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

Fix rss link problem in <head> #12

Closed
yqw1218 opened this issue Feb 8, 2015 · 0 comments · Fixed by #11
Closed

Fix rss link problem in <head> #12

yqw1218 opened this issue Feb 8, 2015 · 0 comments · Fixed by #11

Comments

@yqw1218
Copy link
Contributor

yqw1218 commented Feb 8, 2015

Rss link in doesn't show while theme.rss is empty.

Move code

{% if theme.rss !== false %}        
  {% if theme.rss %}        
    {% set feed_uri = theme.rss %}      
  {% elif config.feed and config.feed.path %}       
    {% set feed_uri = config.root + config.feed.path %}     
  {% endif %}       
{% endif %}

from header.swig to head.swig. At the same time, simplify the code:

{% if theme.rss == '' and config.feed and config.feed.path %}
    {% set theme.rss = config.root + config.feed.path %}
{% endif %}
ivan-nginx added a commit that referenced this issue Aug 1, 2017
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 a pull request may close this issue.

1 participant