mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-14 07:26:44 +00:00
70 lines
2.8 KiB
HTML
70 lines
2.8 KiB
HTML
{% 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">×</button>
|
|
{{ message }}
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% block content %}{% endblock %}
|
|
{% block footer %}
|
|
<footer>
|
|
<p class="float-left">
|
|
<small>©
|
|
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> |