chore: 目录结构调整
| @ -1 +1 @@ | |||||||
| source/ | templates/assets/ | ||||||
| @ -11,8 +11,8 @@ const path = require('path') | |||||||
| const execSync = require('child_process').execSync | const execSync = require('child_process').execSync | ||||||
| const fs = require('fs') | const fs = require('fs') | ||||||
| const resolve = (name) => path.resolve(__dirname, name) | const resolve = (name) => path.resolve(__dirname, name) | ||||||
| const cssPath = './source/css' | const cssPath = './templates/assets/css' | ||||||
| const jsPath = './source/js' | const jsPath = './templates/assets/js' | ||||||
| const distPath = './dist' | const distPath = './dist' | ||||||
| const devModel = process.env.npm_config_devel | const devModel = process.env.npm_config_devel | ||||||
| const version = process.env.npm_config_tag | const version = process.env.npm_config_tag | ||||||
| @ -126,7 +126,7 @@ task('js', () => { | |||||||
| }) | }) | ||||||
| 
 | 
 | ||||||
| task('zip', () => { | 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: '.'}) |   return src(target, {base: '.'}) | ||||||
|     .pipe(zip('halo-theme-dream.zip')) |     .pipe(zip('halo-theme-dream.zip')) | ||||||
|     .pipe(dest(distPath)) |     .pipe(dest(distPath)) | ||||||
|  | |||||||
| @ -13,7 +13,7 @@ | |||||||
|   }, |   }, | ||||||
|   "repository": { |   "repository": { | ||||||
|     "type": "git", |     "type": "git", | ||||||
|     "url": "git+https://github.com/nineya/halo-theme-dream.git" |     "url": "git+https://github.com/nineya/halo-theme-dream2.0.git" | ||||||
|   }, |   }, | ||||||
|   "keywords": [ |   "keywords": [ | ||||||
|     "halo", |     "halo", | ||||||
| @ -24,9 +24,9 @@ | |||||||
|   ], |   ], | ||||||
|   "license": "MIT", |   "license": "MIT", | ||||||
|   "bugs": { |   "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": { |   "devDependencies": { | ||||||
|     "@babel/core": "^7.15.5", |     "@babel/core": "^7.15.5", | ||||||
|     "@babel/plugin-transform-runtime": "^7.15.0", |     "@babel/plugin-transform-runtime": "^7.15.0", | ||||||
|  | |||||||
| @ -1,2 +1,2 @@ | |||||||
| <#include "template/errorpage.ftl"> | <#include "templates/errorpage.ftl"> | ||||||
| <@errorpage "找不到网页","无法找到该文章或分类,可能已被删除,去<a href='${blog_url}'>首页</a>看看吧。","${status!}","${error!}","${message!}" /> | <@errorpage "找不到网页","无法找到该文章或分类,可能已被删除,去<a href='${blog_url}'>首页</a>看看吧。","${status!}","${error!}","${message!}" /> | ||||||
| @ -1,2 +1,2 @@ | |||||||
| <#include "template/errorpage.ftl"> | <#include "templates/errorpage.ftl"> | ||||||
| <@errorpage "服务器繁忙","围观群众太过热情,服务器繁忙,请稍后访问。","${status!}","${error!}","${message!}" /> | <@errorpage "服务器繁忙","围观群众太过热情,服务器繁忙,请稍后访问。","${status!}","${error!}","${message!}" /> | ||||||
| @ -1,4 +1,4 @@ | |||||||
| <#include "template/layout.ftl"> | <#include "templates/layout_pjax.ftl"> | ||||||
| <@layout title="归档 - ${blog_title!}" canonical="${archives_url!}"> | <@layout title="归档 - ${blog_title!}" canonical="${archives_url!}"> | ||||||
|     <#if (archives)?? && archives?size gt 0> |     <#if (archives)?? && archives?size gt 0> | ||||||
|         <#list archives as archive> |         <#list archives as archive> | ||||||
| @ -29,7 +29,7 @@ | |||||||
|                 </div> |                 </div> | ||||||
|             </div> |             </div> | ||||||
|         </#list> |         </#list> | ||||||
|         <#include "template/main/pagination.ftl"> |         <#include "templates/main/pagination.ftl"> | ||||||
|         <@pagination method="archives" datas=posts display="${settings.page_number!5}" /> |         <@pagination method="archives" datas=posts display="${settings.page_number!5}" /> | ||||||
|     <#else> |     <#else> | ||||||
|         <div class="card card-empty"> |         <div class="card card-empty"> | ||||||
| Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB | 
| Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB | 
| Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB | 
| Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB | 
| Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB | 
| Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB | 
| Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB | 
| Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB | 
| Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB | 
| Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB | 
| Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB | 
| Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB | 
| Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB | 
| Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB | 
| Before Width: | Height: | Size: 106 B After Width: | Height: | Size: 106 B | 
| Before Width: | Height: | Size: 434 KiB After Width: | Height: | Size: 434 KiB |