add cninfo announcement

This commit is contained in:
hillerliao
2019-12-15 21:52:58 +08:00
parent 7dc1508458
commit 65a4a5b7a8
24 changed files with 639 additions and 573 deletions

View File

@@ -1,9 +1,9 @@
{% extends 'layout.html' %}
{% block title %}400 错误{% endblock %}
{% block content %}
<div class="jumbotron">
<h1>400 Bad Request</h1>
</div>
{% extends 'layout.html' %}
{% block title %}400 错误{% endblock %}
{% block content %}
<div class="jumbotron">
<h1>400 Bad Request</h1>
</div>
{% endblock %}

View File

@@ -1,9 +1,9 @@
{% extends 'layout.html' %}
{% block title %}404 错误{% endblock %}
{% block content %}
<div class="jumbotron">
<h1>404 Not Found</h1>
</div>
{% extends 'layout.html' %}
{% block title %}404 错误{% endblock %}
{% block content %}
<div class="jumbotron">
<h1>404 Not Found</h1>
</div>
{% endblock %}

View File

@@ -1,9 +1,9 @@
{% extends 'layout.html' %}
{% block title %}500 错误{% endblock %}
{% block content %}
<div class="jumbotron">
<h1>服务器出错</h1>
</div>
{% extends 'layout.html' %}
{% block title %}500 错误{% endblock %}
{% block content %}
<div class="jumbotron">
<h1>服务器出错</h1>
</div>
{% endblock %}

View File

@@ -1,70 +1,70 @@
{% from 'bootstrap/nav.html' import render_nav_item %}
<!DOCTYPE html>
<html>
<head>
{% block head %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{% block title %}{% endblock title %}</title>
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
<link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
{% block styles %}
{{ bootstrap.load_css() }}
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
<link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
{% endblock styles %}
{% endblock head %}
</head>
<body>
{% block nav %}
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" role="navigation">
<div class="container">
<a class="navbar-brand" href="{{url_for('main.index')}}">{{ config['SITE_NAME'] }}</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown"
aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="nav navbar-nav ml-auto">
{{render_nav_item('main.feeds', 'Feeds')}}
</ul>
</div>
</div>
</nav>
{% endblock nav %}
<main class="container">
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-dismissable alert-{{ category }}" role="alert">
<button type="button" class="close" data-dismiss="alert">&times;</button>
{{ message }}
</div>
{% endfor %}
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
{% block footer %}
<footer>
<p class="float-left">
<small>&copy;
Made by <a href="https://github.com/{{config['GITHUB_USERNAME']}}" target="_blank">{{config['GITHUB_USERNAME']}}</a>
with <span class="fa fa-heart"></span>
</small>
</p>
<p class="float-right">
<small><a href="mailto:{{ config['EMAIL'] }}">Contact</a></small>
</p>
</footer>
{% endblock footer %}
</main>
{% block scripts %}
{{ bootstrap.load_js() }}
{{ moment.include_moment() }}
{{ moment.locale('zh-cn') }}
{% endblock %}
</body>
{% from 'bootstrap/nav.html' import render_nav_item %}
<!DOCTYPE html>
<html>
<head>
{% block head %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{% block title %}{% endblock title %}</title>
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
<link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
{% block styles %}
{{ bootstrap.load_css() }}
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
<link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
{% endblock styles %}
{% endblock head %}
</head>
<body>
{% block nav %}
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" role="navigation">
<div class="container">
<a class="navbar-brand" href="{{url_for('main.index')}}">{{ config['SITE_NAME'] }}</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown"
aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="nav navbar-nav ml-auto">
{{render_nav_item('main.feeds', 'Feeds')}}
</ul>
</div>
</div>
</nav>
{% endblock nav %}
<main class="container">
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-dismissable alert-{{ category }}" role="alert">
<button type="button" class="close" data-dismiss="alert">&times;</button>
{{ message }}
</div>
{% endfor %}
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
{% block footer %}
<footer>
<p class="float-left">
<small>&copy;
Made by <a href="https://github.com/{{config['GITHUB_USERNAME']}}" target="_blank">{{config['GITHUB_USERNAME']}}</a>
with <span class="fa fa-heart"></span>
</small>
</p>
<p class="float-right">
<small><a href="mailto:{{ config['EMAIL'] }}">Contact</a></small>
</p>
</footer>
{% endblock footer %}
</main>
{% block scripts %}
{{ bootstrap.load_js() }}
{{ moment.include_moment() }}
{{ moment.locale('zh-cn') }}
{% endblock %}
</body>
</html>

View File

@@ -1,22 +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|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>
{% endfor %}
<?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|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>
{% endfor %}
</feed>

View File

@@ -1,67 +1,77 @@
{% extends "layout.html" %}
{% block title %}All Feeds{% endblock title %}
{% block content %}
<div class="card text-left">
<div class="card-body">
<h4 class="card-title">传送门</h4>
<h6 class="text-muted">文章 <a href="https://github.com/alphardex" target="_blank" class="badge badge-secondary">by alphardex</a></h6>
<p class="card-text">举例:<a href="https://rsshub-python.herokuapp.com/chuansongme/articles" target="_blank">https://rsshub-python.herokuapp.com/chuansongme/articles</a></p>
<p class="card-text">路由:<code>/chuansongme/articles/:category</code></p>
<p class="card-text">参数category [默认为“最新”]</p>
<table class="table table-bordered table-sm">
<thead>
<tr>
{% for th in ['精选','区块链','汽车','创意科技','媒体达人','电影音乐','娱乐休闲','生活旅行','学习工具','历史读书','金融理财','美食菜谱'] %}
<th>{{th}}</th>
{% endfor %}
</tr>
</thead>
<tbody>
<tr>
{% for td in ['select', 'blockchain', 'auto', 'ideatech', 'newsmedia', 'moviemusic', 'fun', 'lifejourney', 'utility', 'hisbook', 'finance', 'food']%}
<td>{{td}}</td>
{% endfor %}
</tr>
</tbody>
</table>
</div>
</div>
<br>
<div class="card text-left">
<div class="card-body">
<h4 class="card-title">CTOLib</h4>
<h6 class="text-muted">话题 <a href="https://github.com/alphardex" target="_blank" class="badge badge-secondary">by alphardex</a></h6>
<p class="card-text">举例:<a href="https://rsshub-python.herokuapp.com/ctolib/topics" target="_blank">https://rsshub-python.herokuapp.com/ctolib/topics</a></p>
<p class="card-text">路由:<code>/ctolib/topics/:category</code></p>
<p class="card-text">参数category [默认为“默认排序”]</p>
<table class="table table-bordered table-sm">
<thead>
<tr>
{% for th in ['最新发布', '优质主题'] %}
<th>{{th}}</th>
{% endfor %}
</tr>
</thead>
<tbody>
<tr>
{% for td in ['last', 'popular']%}
<td>{{td}}</td>
{% endfor %}
</tr>
</tbody>
</table>
</div>
</div>
<br>
<div class="card text-left">
<div class="card-body">
<h4 class="card-title">InfoQ</h4>
<h6 class="text-muted">推荐内容 <a href="https://github.com/alphardex" target="_blank" class="badge badge-secondary">by alphardex</a></h6>
<p class="card-text">举例:<a href="https://rsshub-python.herokuapp.com/infoq/recommend" target="_blank">https://rsshub-python.herokuapp.com/infoq/recommend</a></p>
<p class="card-text">路由:<code>/infoq/recommend</code></p>
</div>
</div>
<br>
{% extends "layout.html" %}
{% block title %}All Feeds{% endblock title %}
{% block content %}
<div class="card text-left">
<div class="card-body">
<h4 class="card-title">传送门</h4>
<h6 class="text-muted">文章 <a href="https://github.com/alphardex" target="_blank" class="badge badge-secondary">by alphardex</a></h6>
<p class="card-text">举例:<a href="https://rsshub-python.herokuapp.com/chuansongme/articles" target="_blank">https://rsshub-python.herokuapp.com/chuansongme/articles</a></p>
<p class="card-text">路由:<code>/chuansongme/articles/:category</code></p>
<p class="card-text">参数category [默认为“最新”]</p>
<table class="table table-bordered table-sm">
<thead>
<tr>
{% for th in ['精选','区块链','汽车','创意科技','媒体达人','电影音乐','娱乐休闲','生活旅行','学习工具','历史读书','金融理财','美食菜谱'] %}
<th>{{th}}</th>
{% endfor %}
</tr>
</thead>
<tbody>
<tr>
{% for td in ['select', 'blockchain', 'auto', 'ideatech', 'newsmedia', 'moviemusic', 'fun', 'lifejourney', 'utility', 'hisbook', 'finance', 'food']%}
<td>{{td}}</td>
{% endfor %}
</tr>
</tbody>
</table>
</div>
</div>
<br>
<div class="card text-left">
<div class="card-body">
<h4 class="card-title">CTOLib</h4>
<h6 class="text-muted">话题 <a href="https://github.com/alphardex" target="_blank" class="badge badge-secondary">by alphardex</a></h6>
<p class="card-text">举例:<a href="https://rsshub-python.herokuapp.com/ctolib/topics" target="_blank">https://rsshub-python.herokuapp.com/ctolib/topics</a></p>
<p class="card-text">路由:<code>/ctolib/topics/:category</code></p>
<p class="card-text">参数category [默认为“默认排序”]</p>
<table class="table table-bordered table-sm">
<thead>
<tr>
{% for th in ['最新发布', '优质主题'] %}
<th>{{th}}</th>
{% endfor %}
</tr>
</thead>
<tbody>
<tr>
{% for td in ['last', 'popular']%}
<td>{{td}}</td>
{% endfor %}
</tr>
</tbody>
</table>
</div>
</div>
<br>
<div class="card text-left">
<div class="card-body">
<h4 class="card-title">InfoQ</h4>
<h6 class="text-muted">推荐内容 <a href="https://github.com/alphardex" target="_blank" class="badge badge-secondary">by alphardex</a></h6>
<p class="card-text">举例:<a href="https://rsshub-python.herokuapp.com/infoq/recommend" target="_blank">https://rsshub-python.herokuapp.com/infoq/recommend</a></p>
<p class="card-text">路由:<code>/infoq/recommend</code></p>
</div>
</div>
<br>
<div class="card text-left">
<div class="card-body">
<h4 class="card-title">巨潮资讯</h4>
<h6 class="text-muted">公司公告 <a href="https://github.com/hillerliao" target="_blank" class="badge badge-secondary">by hillerliao</a></h6>
<p class="card-text">举例:<a href="https://rsshub-python.herokuapp.com/cninfo/announcement/all/gqjl" target="_blank">https://rsshub-python.herokuapp.com/cninfo/announcement/all/gqjl</a></p>
<p class="card-text">举例:<a href="https://rsshub-python.herokuapp.com/cninfo/announcement/all/gqbd_预披露" target="_blank">https://rsshub-python.herokuapp.com/cninfo/announcement/all/gqbd_预披露</a>,股权变动类公告中标题含有「预披露」的公告</p>
<p class="card-text">路由:<code>/cninfo/announcement/:stock_id/:category</code></p>
</div>
</div>
<br>
{% endblock content %}

View File

@@ -1,13 +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" target="_blank" href="https://github.com/alphardex/RSSHub-python">View Source</a>
</p>
</div>
{% 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" target="_blank" href="https://github.com/alphardex/RSSHub-python">View Source</a>
</p>
</div>
{% endblock %}