Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/burnworks/astrojs-mt-data-api-pagination-sample
Implementing Pagination Using Astro and the Movable Type Data API.
https://github.com/burnworks/astrojs-mt-data-api-pagination-sample
Last synced: about 2 months ago
JSON representation
Implementing Pagination Using Astro and the Movable Type Data API.
- Host: GitHub
- URL: https://github.com/burnworks/astrojs-mt-data-api-pagination-sample
- Owner: burnworks
- License: mit
- Created: 2023-12-03T11:16:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-04T12:09:21.000Z (about 1 year ago)
- Last Synced: 2024-01-28T01:20:21.958Z (12 months ago)
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# astrojs-mt-data-api-pagination-sample
Implementing Pagination Using Astro and the Movable Type Data API.Astro と Movable Type Data API を使用してページネーション(ページ分割)を実装するサンプル。
## Getting Started
Install Node.js if you haven't already.Node.js 環境必須です。また、Node.js は v20(20.10.0 LTS)で動作テストしています。
```shell
git clone https://github.com/burnworks/astrojs-mt-data-api-pagination-sample.git
cd sample
npm install
```
### Create .env
Rename `.env.sample` to `.env` and change the value of `SECRET_MT_ENDPOINT_URL` to match your Movable Type installation.`.env.sample` を `.env` にリネームし、`SECRET_MT_ENDPOINT_URL` の値をあなたの Movable Type インストール環境に合わせて変更してください。
### Run Dev
```shell
npm run dev
```
- List of all Entries → For example: `/1/`
- List of Entries by Category → For example: `/category_basename/1/`