You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: LICENSE
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,3 @@
1
-
Copyright 2020 Takahiro Fujiwara
2
-
3
1
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 the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
2
5
3
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Copy file name to clipboardExpand all lines: README.md
+8-65Lines changed: 8 additions & 65 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
-

1
+

[](https://nextjs.org/)
5
4
6
5
Next.js blogging template for Netlify is a boilerplate for building blogs with only Netlify stacks.
@@ -13,11 +12,7 @@ Next.js blogging template for Netlify has already implemented these standard fea
13
12
14
13
Deploy on your environment by clicking here:
15
14
16
-
[](https://app.netlify.com/start/deploy?repository=https://github.com/StaticJsCMS/static-cms-next-netlify-template&stack=cms)
17
-
18
-
Or access the following demo site:
19
-
20
-
[Next.js blog template for Netlify](https://static-cms-next.netlify.app/)
15
+
[Next.js blog template for Netlify](https://next-template.staticcms.org/)
21
16
22
17
## Features
23
18
@@ -32,7 +27,7 @@ Or access the following demo site:
32
27
33
28
-[TypeScript](https://www.typescriptlang.org/)
34
29
-[Next.js](https://nextjs.org/)
35
-
-[Netlify](https://www.netlify.com/)
30
+
-[Netlify](https://netlify.com/)
36
31
-[MDX](https://mdxjs.com/)
37
32
38
33
## Getting started
@@ -44,69 +39,17 @@ and run the following command:
After that, set up your project as following the Netlify blog:
48
-
49
-
[A Step-by-Step Guide: Deploying on Netlify](https://www.netlify.com/blog/2016/09/29/a-step-by-step-guide-deploying-on-netlify/)
50
-
51
-
## Customization
52
-
53
-
This template is just a template and a boilerplate in which users can customize anything after the project was cloned and started.
54
-
The following instructions introduce common customization points like adding new metadata or applying a new design theme.
55
-
56
-
### Styling pages by a customized theme
57
-
58
-
All source codes related to the blog are under [components](/src/components) and [pages](/src/pages) directory.
59
-
You can modify it freely if you want to apply your design theme.
60
-
All components use [styled-jsx](https://github.com/vercel/styled-jsx) and [css-modules](https://github.com/css-modules/css-modules) to define their styles, but you can choose any styling libraries for designing your theme.
61
-
62
-
The directory tree containing the blog source code are described below:
63
-
64
-
```
65
-
meta: yaml files defining metadata like authors or tags
66
-
public: images, favicons and other static assets
67
-
src
68
-
├── assets: other assets using inside of components
69
-
├── components: pieces of components consisting of pages
70
-
├── content: mdx files for each post page
71
-
├── lib: project libraries like data fetching or pagination
72
-
└── pages: page components managing by Next.js
73
-
```
74
-
75
-
### Organizing content by categories
76
-
77
-
The category metadata that associates with content have the same relationship with the authors' one.
78
-
Then reference these implementations for adding new metadata:
79
-
80
-
-[public/admin/config.yml](/public/admin/config.yml#L51): author metadata definition for Static CMS
81
-
-[src/lib/authors.tsx](/src/lib/authors.ts): fetches metadata and defines utility functions for components
82
-
-[meta/authors.yml](/src/meta/authors.yml): author content managed by Static CMS
83
-
-[src/components/PostLayout.tsx](/src/components/PostLayout.tsx): displays author content for each page
84
-
85
-
You understood they have four steps to add the category metadata on your project after you read the above source codes:
86
-
87
-
1. Define the category metadata on the above Static CMS config file
88
-
2. Create an empty file named with `categories.yml` under [meta](/src/meta/) directory
89
-
3. Create a new module for fetching category metadata
90
-
4. Display the category metadata on [src/components/PostLayout.tsx](/src/components/PostLayout.tsx#L75) or other components you want
91
-
92
-
It is all you have to do. After that, you can access Static CMS and create new categories at any time.
42
+
After that, set up your project, following the Netlify documentation:
93
43
94
-
### Locale settings for Static CMS
44
+
[Creating & Deploying Your Project](https://netlify.com/docs/concepts/get-started/deploy)
95
45
96
-
Modify [config.yml](/public/admin/config.yml) and
97
-
[index.html](/public/admin/index.html) under [public/admin](/public/admin/) directory
Copy file name to clipboardExpand all lines: content/posts/license.mdx
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,6 @@ tags:
9
9
10
10
## Next.js and netlify blog template is managed under the MIT license
11
11
12
-
Copyright 2020 Takahiro Fujiwara
13
-
14
12
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 the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
15
13
16
14
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
0 commit comments