Skip to content

Commit

Permalink
Merge pull request #136 from dalthviz/atom_feed
Browse files Browse the repository at this point in the history
PR: Add atom feed support
  • Loading branch information
ccordoba12 authored Jul 24, 2018
2 parents 1f6d606 + 5ef2a61 commit cf05abe
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
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

0 comments on commit cf05abe

Please sign in to comment.