chore: 目录结构调整

This commit is contained in:
nineya 2023-03-21 13:54:36 +08:00
parent d4dcadbc58
commit 6b66ce57bf
987 changed files with 39 additions and 39 deletions

View File

@ -1 +1 @@
source/
templates/assets/

View File

@ -11,8 +11,8 @@ const path = require('path')
const execSync = require('child_process').execSync
const fs = require('fs')
const resolve = (name) => path.resolve(__dirname, name)
const cssPath = './source/css'
const jsPath = './source/js'
const cssPath = './templates/assets/css'
const jsPath = './templates/assets/js'
const distPath = './dist'
const devModel = process.env.npm_config_devel
const version = process.env.npm_config_tag
@ -126,7 +126,7 @@ task('js', () => {
})
task('zip', () => {
const target = ['./source/**', './template/**', './mail_template/**', './*.ftl', './*.yaml', 'README.md', 'screenshot.png', 'LICENSE']
const target = ['./templates/**', './*.yaml', 'README.md', 'screenshot.png', 'LICENSE']
return src(target, {base: '.'})
.pipe(zip('halo-theme-dream.zip'))
.pipe(dest(distPath))

View File

@ -13,7 +13,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/nineya/halo-theme-dream.git"
"url": "git+https://github.com/nineya/halo-theme-dream2.0.git"
},
"keywords": [
"halo",
@ -24,9 +24,9 @@
],
"license": "MIT",
"bugs": {
"url": "https://github.com/nineya/halo-theme-dream/issues"
"url": "https://github.com/nineya/halo-theme-dream2.0/issues"
},
"homepage": "https://github.com/nineya/halo-theme-dream#readme",
"homepage": "https://github.com/nineya/halo-theme-dream2.0#readme",
"devDependencies": {
"@babel/core": "^7.15.5",
"@babel/plugin-transform-runtime": "^7.15.0",

View File

@ -1,2 +1,2 @@
<#include "template/errorpage.ftl">
<#include "templates/errorpage.ftl">
<@errorpage "找不到网页","无法找到该文章或分类,可能已被删除,去<a href='${blog_url}'>首页</a>看看吧。","${status!}","${error!}","${message!}" />

View File

@ -1,2 +1,2 @@
<#include "template/errorpage.ftl">
<#include "templates/errorpage.ftl">
<@errorpage "服务器繁忙","围观群众太过热情,服务器繁忙,请稍后访问。","${status!}","${error!}","${message!}" />

View File

@ -1,4 +1,4 @@
<#include "template/layout.ftl">
<#include "templates/layout_pjax.ftl">
<@layout title="归档 - ${blog_title!}" canonical="${archives_url!}">
<#if (archives)?? && archives?size gt 0>
<#list archives as archive>
@ -29,7 +29,7 @@
</div>
</div>
</#list>
<#include "template/main/pagination.ftl">
<#include "templates/main/pagination.ftl">
<@pagination method="archives" datas=posts display="${settings.page_number!5}" />
<#else>
<div class="card card-empty">

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

View File

Before

Width:  |  Height:  |  Size: 106 B

After

Width:  |  Height:  |  Size: 106 B

View File

Before

Width:  |  Height:  |  Size: 434 KiB

After

Width:  |  Height:  |  Size: 434 KiB

Some files were not shown because too many files have changed in this diff Show More