add param support

This commit is contained in:
alphardex
2019-01-17 10:00:10 +08:00
parent 8a2f334c80
commit 91d5ecf57a
8 changed files with 40 additions and 77 deletions

View File

@@ -13,8 +13,8 @@
<entry>
<id>{{item.link}}</id>
<title><![CDATA[{{item.title|safe}}]]></title>
<published>{{item.pubDate}}</published>
<updated>{{item.pubDate}}</updated>
<published>{{item.pubDate|default(now)}}</published>
<updated>{{item.pubDate|default(now)}}</updated>
<link href="{{item.link}}"/>
<content type="html" src="{{item.link}}"><![CDATA[{{item.description|safe}}]]></content>
</entry>

View File

@@ -1,11 +0,0 @@
{% extends "layout.html" %}
{% block title %}All Feeds{% endblock title %}
{% block content %}
<div class="list-group">
{% for rule in rules %}
<a href="{{rule.rule}}" class="list-group-item list-group-item-action">{{rule.endpoint[5:]}}</a>
{% endfor %}
</div>
{% endblock content %}

View File

@@ -7,7 +7,7 @@
<h1 class="display-4">Welcome to RSSHub!</h1>
<p class="lead">If you see this page, the RSSHub is successfully installed and working.</p>
<p>
<a class="btn btn-primary btn-lg" role="button" href="{{url_for('main.feeds')}}">View All Feeds</a>
<a class="btn btn-primary btn-lg" role="button" target="_blank" href="https://github.com/alphardex/RSSHub-python">View Source</a>
</p>
</div>
{% endblock %}