diff --git a/.eslintrc.json b/.eslintrc.json index 9818bfa..ba6bd61 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,6 +1,10 @@ { - "extends": ["next/core-web-vitals", "next/typescript", "prettier"], - "plugins": ["import"], + "extends": [ + "next/core-web-vitals", + "next/typescript", + "prettier", + "plugin:jsx-a11y/recommended" + ], "rules": { // Possible Errors "no-console": "warn", // Warn on console usage (can change to 'error' to disallow) @@ -33,22 +37,6 @@ "arrow-spacing": ["error", { "before": true, "after": true }], // Enforce spacing around arrows "prefer-const": "error", // Prefer const for variables that are never reassigned "no-var": "error", // Disallow var (use let or const instead) - "template-curly-spacing": ["error", "never"], // Disallow spaces inside template literals - - // Import - "import/order": [ - "error", - { - "groups": [ - "builtin", - "external", - "internal", - "parent", - "sibling", - "index" - ], - "newlines-between": "always" - } - ] + "template-curly-spacing": ["error", "never"] // Disallow spaces inside template literals } } diff --git a/.gitignore b/.gitignore index fd3dbb5..abee180 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,6 @@ yarn-error.log* # typescript *.tsbuildinfo next-env.d.ts + +# User generated files +public/postsData.json diff --git a/config.yml b/config.yml index f9ad224..4d043aa 100644 --- a/config.yml +++ b/config.yml @@ -10,6 +10,8 @@ author: link: 'https://www.zla.app' # Link to your personal website or blog. # Language setting: Use ISO 639-1 code (e.g., 'en' for English, 'zh' for Chinese) lang: 'zh' +# Your public root url, used for SEO and meta tags. (Do not include a ending slash) +siteUrl: 'https://suzu.zla.app' # Path to your avatar image. Can be a relative path from /public or a full URL (e.g., https://). avatar: '/images/avatar.jpg' @@ -71,14 +73,6 @@ disqusShortname: 'zla-pub' # CUSTOM CODE BLOCKS # ! WARNING: Only modify these if you understand the purpose of custom scripts. ####################### -# Add JavaScript URLs or code snippets to be included inside on your site. -scriptSlotHeader: - - - -# Add JavaScript URLs or code snippets to be included before the closing tag. -scriptSlotFooter: - - 'https://cdn.jsdelivr.net/gh/zl-asica/web-cdn/js/zlasica.js' - # Add custom HTML code to be included inside the