迁移基本完成,还有一些页面需要核对
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="2.0;url={{ url_for('blog.home') }}">
|
||||
<title>不想写了</title>
|
||||
<meta charset="utf-8" lang="zh-CN">
|
||||
</head>
|
||||
|
||||
@@ -17,15 +17,16 @@
|
||||
<table border="0" style="background-color: rgba(147, 185, 255, 0.644);">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td id="td_navbar_40px"><b><a href="https://ww3.tw/" id="url_">首页</a></b></td>
|
||||
<td id="td_navbar_40px"><b><a href="https://ww3.tw/blog/about/" id="url_">关于</a></b></td>
|
||||
<td id="td_navbar_40px"><b><a href="https://ww3.tw/blog/post/" id="url_">文章</a></b></td>
|
||||
<td id="td_navbar_75px"><b><a href="https://ww3.tw/jumping-message/" id="url_">弹幕留言</a></b></td>
|
||||
<td id="td_navbar_78px"><b><a href="https://ww3.tw/short-url/" id="url_">短链生成</a></b></td>
|
||||
<td id="td_navbar_40px"><b><a href="{{ url_for('blog.home') }}" id="url_">首页</a></b></td>
|
||||
<td id="td_navbar_40px"><b><a href="{{ url_for('blog.about') }}" id="url_">关于</a></b></td>
|
||||
<td id="td_navbar_40px"><b><a href="{{ url_for('blog.posts_list') }}" id="url_">文章</a></b></td>
|
||||
<td id="td_navbar_75px"><b><a href="#" id="url_">弹幕留言</a></b></td>
|
||||
<td id="td_navbar_78px"><b><a href="#" id="url_">短链生成</a></b></td>
|
||||
<td id="td_navbar_52px"><b><a href="https://gitea.ww3.tw/skimrme/" id="url_">gitea</a></b></td>
|
||||
<td id="td_navbar_160px"><b><a href="https://ww3.tw/docker-registry/" id="url_">docker-registry</a></b></td>
|
||||
<td id="td_navbar_140px"><b><a href="https://ww3.tw/docker-registry/" id="url_">docker-registry</a></b></td>
|
||||
<td id="td_navbar_40px"><b><a href="https://api.ww3.tw/" id="url_">api</a></b></td>
|
||||
<td id="td_navbar_40px"><b><a href="https://wiki.ww3.tw/" id="url_">wiki</a></b></td>
|
||||
<td id="td_navbar_52px"><b><a href="/mirrors" id="url_">mirrors</a></b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -47,10 +48,20 @@
|
||||
<font size="3.2">
|
||||
<table border="0">
|
||||
<tbody>
|
||||
<?php
|
||||
// 引入数据库 sqlite
|
||||
include "./logs.php.text";
|
||||
?>
|
||||
{# 调用数据库 #}
|
||||
{% for logs in logs %}
|
||||
<tr>
|
||||
<td id="td_logs">
|
||||
<a style='font-size: 18px;'>
|
||||
{{ logs['date'] }}
|
||||
</a>
|
||||
<br>
|
||||
</td>
|
||||
<td id="td_logs_content">
|
||||
{{ logs['content'].replace('&&', '<br>') | safe }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</font>
|
||||
@@ -58,6 +69,7 @@
|
||||
<!-- 屑站日志 -->
|
||||
|
||||
<div id="post_content">
|
||||
{#
|
||||
<?php
|
||||
//include "post/index.php";
|
||||
// 设定数据库路径
|
||||
@@ -105,6 +117,22 @@
|
||||
$db->close();
|
||||
}
|
||||
?>
|
||||
#}
|
||||
<center><b><h2>全部文章</h2></b></center>
|
||||
<br>
|
||||
文章如下↓
|
||||
<br>
|
||||
<br>
|
||||
{% for posts in posts %}
|
||||
文章id:{{ posts['id'] }}
|
||||
<br>
|
||||
{{ posts['date'] }}
|
||||
{{ posts['title'] }}
|
||||
<br>
|
||||
<a href="{{ url_for('blog.posts_list') }}{{ posts['id'] }}">页面跳转</a>
|
||||
<br>
|
||||
<br>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<!-- 私の娘 -->
|
||||
@@ -118,6 +146,10 @@
|
||||
|
||||
<!-- css 部分 -->
|
||||
<style>
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#navbar1 {
|
||||
margin: -160px 0 100px -30px;
|
||||
}
|
||||
@@ -142,9 +174,9 @@
|
||||
width: 78px;
|
||||
}
|
||||
|
||||
#td_navbar_160px
|
||||
#td_navbar_140px
|
||||
{
|
||||
width: 160px;
|
||||
width: 140px;
|
||||
}
|
||||
|
||||
/* 日志 */
|
||||
@@ -233,7 +265,9 @@
|
||||
size: 200,
|
||||
autoFit: true,
|
||||
controls: true
|
||||
}).mount('#my_girl');
|
||||
})
|
||||
.setState({ y: 0, t: 0, w: 0, r: 0 })
|
||||
.mount('#my_girl');
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
100
templates/list.html
Normal file
100
templates/list.html
Normal file
@@ -0,0 +1,100 @@
|
||||
<!DOCTYPE id="html" html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="icon" type="image/x-icon" href="https://ww3.tw/blog/icon/original.ico">
|
||||
<title>文章列表</title> <!-- 标题 -->
|
||||
</head>
|
||||
<body id="wallpaper" >
|
||||
<!-- 背景 -->
|
||||
<div id="div_1">
|
||||
<a href='{{ url_for("blog.home") }}' style='background-color: rgba(147, 185, 255, 0)'>返回首页</a>
|
||||
<center id="center_2"><b><h2>全部文章</h2></b></center>
|
||||
<br>
|
||||
<div id="posts_list">文章如下↓</div>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<div id='content'>
|
||||
{% for posts in posts %}
|
||||
<div id="posts_bian_kuang">
|
||||
<br>
|
||||
<br>
|
||||
文章id:{{ posts['id'] }}
|
||||
<br>
|
||||
文章标题:{{ posts['title'] }}
|
||||
<br>
|
||||
<a href="{{ url_for('blog.posts_list') }}{{ posts['id'] }}">页面跳转</a>__{{ posts['date'] }}
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
{# 随机变换图床api #}
|
||||
{% set wallpaper_apis =[
|
||||
'https://www.loliapi.com/acg/pc/',
|
||||
'https://api.sretna.cn/api/pc.php',
|
||||
'https://www.api.plus/API/dongman/',
|
||||
'https://moe.jitsu.top/img/?sort=pc',
|
||||
'https://www.dmoe.cc/random.php',
|
||||
'https://api.r10086.com/樱道随机图片api接口.php?图片系列=猫娘1',
|
||||
'https://api.mtyqx.cn/tapi/random.php'] %}
|
||||
{% set wallpaper = wallpaper_apis | random %}
|
||||
</html>
|
||||
|
||||
|
||||
<style>
|
||||
#center_2 {
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
background-color: rgba(255, 255, 255, 0.415);
|
||||
text-align: center;
|
||||
margin: -55px 0 0 0;
|
||||
}
|
||||
#posts_list {
|
||||
width: 90px;
|
||||
height: 30px;
|
||||
background-color: rgba(255, 255, 255, 0.415);
|
||||
}
|
||||
#posts_bian_kuang {
|
||||
width: 600px;
|
||||
height: 200px;
|
||||
background-color: rgba(255, 255, 255, 0.415);
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
html {
|
||||
margin: 0 0 0 0;
|
||||
}
|
||||
#wallpaper {
|
||||
background-image: url('{{ wallpaper }}');
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat; /*禁止平铺*/
|
||||
background-size: 100% 100%; /*图片占满100%*/
|
||||
margin: 0; /* 外边框为0 */
|
||||
/*padding: 0;*/
|
||||
|
||||
}
|
||||
|
||||
#div_1 {
|
||||
height: 100%;
|
||||
color: rgb(0, 0, 0);
|
||||
font-size: 19px;
|
||||
background-color: rgba(169, 169, 169, 0.212);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
#content {
|
||||
/* up、right、down、left */
|
||||
margin: 0px 0px 0px 100px;
|
||||
}
|
||||
|
||||
#wallpaper_url {
|
||||
color: rgba(255, 0, 0, 0.354);
|
||||
/* up、right、down、left */
|
||||
margin: 20% 0px 0px 75%;
|
||||
}
|
||||
</style>
|
||||
28
templates/mirrors.html
Normal file
28
templates/mirrors.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{% extends '__autoindex__/autoindex.html' %}
|
||||
|
||||
{% block header %}
|
||||
<h1 style="width: 80%; background-color: #fbecec7d; margin-left: auto; margin-right: auto;">index of .</h1>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<style>
|
||||
body {
|
||||
background-image: url('https://moe.jitsu.top/img/?sort=pc');
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat; /*禁止平铺*/
|
||||
margin: 0; /* 外边框为0 */
|
||||
}
|
||||
table {
|
||||
width: 80%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block footer %}
|
||||
<hr>
|
||||
<div style="text-align: right; color: #fb8888; background-color: rgba(229, 229, 255, 0); width: 300px; margin: -13.82% 0 0 70.45%;">
|
||||
© 2025 open-ww3-project
|
||||
</div>
|
||||
{% endblock %}
|
||||
14
templates/posts.html
Normal file
14
templates/posts.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ posts['title'] }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="../">返回上级</a>
|
||||
<br>
|
||||
{{ posts['title'] }}
|
||||
<br>
|
||||
<br>
|
||||
{{ posts['content'] | safe}}
|
||||
</body>
|
||||
</html>
|
||||
16
templates/sitemap.xml
Normal file
16
templates/sitemap.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="www.sitemaps.org">
|
||||
<url>
|
||||
<loc>{{ base_url }}</loc>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
{% for posts in posts %}
|
||||
<url>
|
||||
<loc>{{ base_url }}posts/{{ posts['id'] }}</loc>
|
||||
<lastmod>{{ posts.updated_at }}</lastmod>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
{% endfor %}
|
||||
</urlset>
|
||||
@@ -24,8 +24,13 @@
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="url">
|
||||
<a href="/study/posts/new" class="url">新建文章</a>
|
||||
<div style="margin: -5px 0 0 10px;" class="url" x-data="{ open: false }">
|
||||
<div class="url" @click="open = true">子功能</div>
|
||||
<div x-show="open" @click.away="open = false">
|
||||
<div>
|
||||
<a href="/study/posts/new" class="url">新建文章</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -51,4 +56,6 @@
|
||||
color: rgb(0, 0, 0);
|
||||
text-decoration: none;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
<script src="{{ url_for('static', filename='js/alpine.js') }}">vue_global</script>
|
||||
@@ -7,7 +7,7 @@
|
||||
{% block content %}
|
||||
<h1>学习如何搭建一个blog</h1>
|
||||
<h2>欢迎访问一个学习如何搭建一个blog的页面</h2>
|
||||
|
||||
|
||||
{% for posts in posts %}
|
||||
<a href="/study/posts/{{ posts['id'] }}">
|
||||
<!--a href="{{ url_for('study.show_posts_id', posts_id=posts['id']) }}"-->
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
{% block title %} 新建文章 {% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<form method="post">
|
||||
<div class="form-group">
|
||||
<label for="title">标题</label>
|
||||
|
||||
Reference in New Issue
Block a user