diff --git a/LICENSE b/LICENSE index d54b831..de030e3 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021-present, cnguu, activity-page +Copyright (c) 2021-present, cnguu, static-page-template Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/README.md b/README.md index 9e50afd..cc475c3 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -

Activity Page

+

Static Page Template

-[![MIT](https://img.shields.io/github/license/spider-nest/activity-page)](https://cdn.jsdelivr.net/gh/spider-nest/activity-page@main/LICENSE) -[![Release](https://img.shields.io/github/v/release/spider-nest/activity-page)](https://github.com/spider-nest/activity-page/releases/latest) +[![MIT](https://img.shields.io/github/license/spider-nest/static-page-template)](https://cdn.jsdelivr.net/gh/spider-nest/static-page-template@main/LICENSE) +[![Release](https://img.shields.io/github/v/release/spider-nest/static-page-template)](https://github.com/spider-nest/static-page-template/releases/latest)
diff --git a/globals.d.ts b/globals.d.ts deleted file mode 100644 index 63908c6..0000000 --- a/globals.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/package.json b/package.json index 13afe98..7b9ef3c 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,14 @@ { - "name": "activity-page", - "version": "0.0.3", - "description": "Activity page template for svelte", + "name": "static-page-template", + "version": "1.0.0", + "description": "Static web page generation template for svelte", "keywords": [ "svelte", "template", "kit", "svelte-template", "svelte-kit", - "activity-page" + "static-page" ], "author": { "name": "cnguu", @@ -29,10 +29,10 @@ "reload": "rimraf yarn.lock && rimraf package.lock.json && yarn clean:lib && yarn", "prepare": "husky install" }, - "repository": "https://github.com/spider-nest/activity-page.git", - "homepage": "https://github.com/spider-nest/activity-page", + "repository": "https://github.com/spider-nest/static-page-template.git", + "homepage": "https://github.com/spider-nest/static-page-template", "bugs": { - "url": "https://github.com/spider-nest/activity-page/issues" + "url": "https://github.com/spider-nest/static-page-template/issues" }, "license": "MIT", "type": "module", diff --git a/src/configs/app.js b/src/configs/app.js index bc978fe..69ad59b 100644 --- a/src/configs/app.js +++ b/src/configs/app.js @@ -1,2 +1,4 @@ // eslint-disable-next-line no-undef export const basePath = __BASE_URL__; + +export const appName = "Static Page Template"; diff --git a/src/routes/__error.svelte b/src/routes/__error.svelte index 142dd03..a99ecb7 100644 --- a/src/routes/__error.svelte +++ b/src/routes/__error.svelte @@ -13,19 +13,24 @@ - + - {title} + {appName} - {title}

{status}

diff --git a/src/routes/about.svelte b/src/routes/about.svelte index de371f8..845702a 100644 --- a/src/routes/about.svelte +++ b/src/routes/about.svelte @@ -1,11 +1,18 @@ + + - + - About + {appName} - About
@@ -17,7 +24,7 @@ the prompts:

-
npm init svelte@next
+
yarn && yarn dev

The page you're looking at is purely static HTML, with no client-side diff --git a/src/routes/index.svelte b/src/routes/index.svelte index df63672..1c30e8f 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -3,17 +3,22 @@ import Counter from "$components/counter/Counter.svelte"; + import { appName } from "$configs/app"; + import "$styles/routes/index.less"; - + - Activity Page + {appName}

diff --git a/svelte.config.js b/svelte.config.js index c87721e..291c3fc 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -6,7 +6,9 @@ import postcssPxToRem from "postcss-pxtorem"; const ifDev = process.env.NODE_ENV === "development"; +// Deploy your site under a sub path const basePath = ifDev ? "" : "/test"; +// Deploy assets under a CDN or other const assetsPath = ifDev ? "" : "https://res.ijunhai.com"; const appDir = ifDev ? "_app" : "wechat";