新增paint页面,暂时放弃api来fetch数据构建页面,预计可能还有大量问题,暂时打算先整理所有的文件
This commit is contained in:
24
templates/blog/class.html
Normal file
24
templates/blog/class.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>分类页面 | ww3</title>
|
||||
</head>
|
||||
<body>
|
||||
this is Class_Page
|
||||
<br>
|
||||
<div>
|
||||
<b>这里是用来存放关于分类的页面</b>
|
||||
<br>
|
||||
<br>
|
||||
<b>lfs</b>
|
||||
<br>
|
||||
<b>自建linux</b>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<style>
|
||||
body {
|
||||
background-color: lightblue;
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
@@ -102,7 +102,7 @@
|
||||
<br>
|
||||
来源: <a href="https://greendam.icu/">https://greendam.icu/</a>
|
||||
</form>
|
||||
<a href="./paint/">
|
||||
<a href="/paint/">
|
||||
<button>paint</button>
|
||||
</a>
|
||||
<p style="margin: 870px 0 0 0; text-align: center; color: white;">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
{"id":1, "name": "首页", "url": url_for('blog.home')},
|
||||
{"id":2, "name": "关于", "url": url_for('blog.about')},
|
||||
{"id":3, "name": "文章", "url": url_for('blog.posts_list')},
|
||||
{"id":4, "name": "mirrors", "url": url_for('blog.autoindex')},
|
||||
{"id":4, "name": "folders", "url": url_for('blog.autoindex')},
|
||||
{"id":5, "name": "study", "url": url_for('study.home')},
|
||||
]%}
|
||||
<div id="navbar1">
|
||||
@@ -16,4 +16,5 @@
|
||||
{% endfor %}
|
||||
<a id="url_" href="https://api.ww3.tw">api</a>
|
||||
<a id="url_" href="https://gitea.ww3.tw">gitea</a>
|
||||
</div>
|
||||
<a id="url_" href="./class">class</a>
|
||||
</div>
|
||||
|
||||
20
templates/blog/include/navbar2.html
Normal file
20
templates/blog/include/navbar2.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{# navbar 部分 #}
|
||||
|
||||
{% set navbar_list = [
|
||||
{"id":1, "name": "首页", "url": url_for('blog.home')},
|
||||
{"id":2, "name": "关于", "url": url_for('blog.about')},
|
||||
{"id":3, "name": "文章", "url": url_for('blog.posts_list')},
|
||||
{"id":4, "name": "folders", "url": url_for('blog.autoindex')},
|
||||
{"id":5, "name": "study", "url": url_for('study.home')},
|
||||
]%}
|
||||
<div id="navbar1">
|
||||
<br>
|
||||
</div>
|
||||
<div id="navbar2" style="text-align: left;">
|
||||
{% for navbar in navbar_list %}
|
||||
<a href="{{ navbar.url }}" id="url_">{{ navbar.name }}</a></td>
|
||||
{% endfor %}
|
||||
<a id="url_" href="https://api.ww3.tw">api</a>
|
||||
<a id="url_" href="https://gitea.ww3.tw">gitea</a>
|
||||
<a id="url_" href="./class">class</a>
|
||||
</div>
|
||||
@@ -1,8 +1,6 @@
|
||||
{# 壁纸部分 #}
|
||||
{% set wallpaper_apis =[
|
||||
'https://www.loliapi.com/acg/pc/',
|
||||
'https://api.sretna.cn/api/pc.php',
|
||||
'https://www.api.plus/api/dongman',
|
||||
'https://www.loliapi.com/acg/pc/',
|
||||
'https://moe.jitsu.top/img/?sort=pc',
|
||||
'https://www.dmoe.cc/random.php',
|
||||
'https://api.mtyqx.cn/tapi/random.php'] %}
|
||||
|
||||
53
templates/paint/home.html
Normal file
53
templates/paint/home.html
Normal file
@@ -0,0 +1,53 @@
|
||||
{# 引入base #}
|
||||
{% extends 'blog/extension/base.html' %}
|
||||
|
||||
{% include 'blog/include/head.html' %}
|
||||
|
||||
|
||||
|
||||
|
||||
{# 引入标题 #}
|
||||
{% block title %}paint{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<head>
|
||||
<style>
|
||||
hr {
|
||||
background-color: black;
|
||||
height: 2px;
|
||||
border: none;
|
||||
}
|
||||
#navbar2 {
|
||||
font-size: 125%;
|
||||
width: 500px;
|
||||
height: auto;
|
||||
background-color: rgb(169, 198, 252);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
{% include 'blog/include/navbar2.html' %}
|
||||
</div>
|
||||
<a href="/blog/">返回主页</a>
|
||||
<h2>这里是关于本人的绘画学习及其临摹的记录和展示页面</h2>
|
||||
<hr>
|
||||
<a href="https://ww3.tw/blog/folders/paint/old">旧作列表</a>
|
||||
<br>
|
||||
{% for data in data %}
|
||||
<br>
|
||||
<img src="{{img_url}}{{data['date']}}/{{data['name']}}.jpg" alt="{{data['name']}}" width="15%">
|
||||
<br>
|
||||
{{data['name']}}__
|
||||
{{data['date']}}
|
||||
{% endfor %}
|
||||
<br>
|
||||
<br>
|
||||
<!-- tags: __{{tags_data}}
|
||||
<br>
|
||||
<br>
|
||||
class: __{{class_data}} -->
|
||||
|
||||
</body>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user