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

PR: Add atom feed support #136

Merged
merged 2 commits into from
Jul 24, 2018
Merged
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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cache:
install:
- "pip install -U pip"
- "pip install 'Lektor>=3'"
script: "lektor build"
script: "lektor build --no-prune"

deploy:
- provider: script
Expand Down
3 changes: 3 additions & 0 deletions configs/atom.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[main]
name = Spyder Blog
source_path = /blog
3 changes: 3 additions & 0 deletions spyder_website.lektorproject
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
[project]
name = Spyder Website
themes = hugo-icon
url_style = absolute
url = https://www.spyder-ide.org

[packages]
lektor-webpack-support = 0.3
lektor-markdown-header-anchors = 0.1
lektor-disqus-comments = 0.2
lektor-atom = 0.3

[servers.develop]
name = Develop
Expand Down
5 changes: 2 additions & 3 deletions templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<ul class="dropdown menu" data-dropdown-menu>
<li id="menu-logo">
<p></p>
<a href="{{ this.parent|url }}">
<a href="{{ '/blog'|url }}">
<img src="{{ '/static/images/spyder-logo.svg' | url}}">
<span>
<span id="logo-text"><big>S</big>pyder {% block section %}{% endblock %}</span>
Expand All @@ -46,12 +46,11 @@
</li>
</ul>
</div>

<a style="font-size:11px;" data-nav-section="RSS" href="{{ '/blog/feed.xml'|url }}">RSS</a>
{% set data_nav = bag('main-nav', this.alt) %}
{% for path, label in data_nav.items() %}
<a class="pull-right" href="{{ path }}" data-nav-section="{{label}}">{{ label }}</a>
{% endfor %}

</div>
</div>

Expand Down