diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..ebe51d3 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = false +insert_final_newline = false \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0781a4b --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +.DS_Store +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +.gradle +build +dist diff --git a/package.json b/package.json new file mode 100644 index 0000000..42f2a93 --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "scripts": { + "prettier": "prettier --write './templates/**/*.html'" + }, + "keywords": [], + "author": "", + "license": "ISC", + "devDependencies": { + "prettier": "^3.0.3" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..8b92bed --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,18 @@ +lockfileVersion: '6.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +devDependencies: + prettier: + specifier: ^3.0.3 + version: 3.0.3 + +packages: + + /prettier@3.0.3: + resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==} + engines: {node: '>=14'} + hasBin: true + dev: true diff --git a/templates/archives.html b/templates/archives.html index 3a92b32..db66037 100644 --- a/templates/archives.html +++ b/templates/archives.html @@ -1,75 +1,75 @@ - - - - - + + +
-
-
-
-

文章归档

-
- -
-
-
-
-
-

分类

-
    - -
  • - -
  • -
- -

标签

-
    - -
  • - -
  • - -
- -

归档

- - -

-
    - -
  • - - -
  • -
    -
-
- - -
-
- -
- -
+
+
+
+

文章归档

+
+ +
+
+
+
+

分类

+
    +
  • + +
  • +
+ +

标签

+
    +
  • + +
  • +
+ +

归档

+ + +

+
    + +
  • + + +
  • +
    +
+
+
+
+
+
- - -
- - \ No newline at end of file +
+ diff --git a/templates/category.html b/templates/category.html index f642f00..08edc59 100644 --- a/templates/category.html +++ b/templates/category.html @@ -1,42 +1,51 @@ - - - -