mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-15 07:26:51 +00:00
init project
This commit is contained in:
22
rsshub/templates/main/atom.xml
Normal file
22
rsshub/templates/main/atom.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<generator>{{config['SITE_NAME']}}</generator>
|
||||
<webMaster>{{config['EMAIL']}}</webMaster>
|
||||
<language>zh-cn</language>
|
||||
<id>{{link}}</id>
|
||||
<title><![CDATA[{{title|safe}}]]></title>
|
||||
<link href="{{link}}"/>
|
||||
<author>
|
||||
<name><![CDATA[{{author|safe}}]]></name>
|
||||
</author>
|
||||
{% for item in items %}
|
||||
<entry>
|
||||
<id>{{item.link}}</id>
|
||||
<title><![CDATA[{{item.title|safe}}]]></title>
|
||||
<published>{{item.pubDate}}</published>
|
||||
<updated>{{item.pubDate}}</updated>
|
||||
<link href="{{item.link}}"/>
|
||||
<content type="html" src="{{item.link}}"><![CDATA[{{item.description|safe}}]]></content>
|
||||
</entry>
|
||||
{% endfor %}
|
||||
</feed>
|
||||
11
rsshub/templates/main/feeds.html
Normal file
11
rsshub/templates/main/feeds.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{% 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 %}
|
||||
13
rsshub/templates/main/index.html
Normal file
13
rsshub/templates/main/index.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends 'layout.html' %}
|
||||
|
||||
{% block title %}Welcome to RSShub!{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<div class="jumbotron">
|
||||
<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>
|
||||
</p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user