-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 83a2f72
Showing
44 changed files
with
15,855 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
dist | ||
*.log | ||
public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
![create-portfolio-preview](https://user-images.githubusercontent.com/8784712/58467049-7f611d00-816d-11e9-954d-2048784bbe11.png) | ||
|
||
Create Portfolio helps you kickstart a personal website that showcases your work as a software developer. | ||
|
||
## Quick Start | ||
|
||
Create a new project with `npm init`: | ||
|
||
```bash | ||
npm init portfolio my-site | ||
# OR Yarn | ||
yarn create portfolio my-site | ||
``` | ||
|
||
Change into your new directory: | ||
|
||
```bash | ||
cd my-site | ||
``` | ||
|
||
Install dependencies: | ||
|
||
```bash | ||
npm install | ||
``` | ||
|
||
Run the website locally: | ||
|
||
```bash | ||
npm run dev | ||
``` | ||
|
||
Now browse to http://localhost:3000 you should see your page. | ||
|
||
## Build for Production | ||
|
||
Run `npm run build` to create a production build of your app, generated files can be found at `./public` folder, then it can be [deployed as a static website](https://saber.land/docs/deployment.html). | ||
|
||
## Creating a Post | ||
|
||
Check out [the example post](./packages/create-portfolio/template/pages/_posts/my-first-post.md). | ||
|
||
## Site Configuration | ||
|
||
Use `siteConfig` option in `saber-config.js` for site configuration. | ||
|
||
### Site Title | ||
|
||
It defaults to your GitHub name, you can customize it in `saber-config.js`: | ||
|
||
```js | ||
module.exports = { | ||
siteConfig: { | ||
title: 'A Custom Title' | ||
} | ||
} | ||
``` | ||
|
||
### Site Description | ||
|
||
It defaults to your GitHub bio, you can customize it in `saber-config.js`: | ||
|
||
```js | ||
module.exports = { | ||
siteConfig: { | ||
description: 'Introduce yourself...' | ||
} | ||
} | ||
``` | ||
|
||
## Theme Configuration | ||
|
||
Use `themeConfig` option in `saber-config.js` for theme configuration. | ||
|
||
### Style | ||
|
||
By default it uses `dark` style: | ||
|
||
```js | ||
module.exports = { | ||
themeConfig: { | ||
style: 'dark' | ||
} | ||
} | ||
``` | ||
|
||
Available styles: | ||
|
||
- `dark` | ||
- `light` | ||
|
||
### GitHub | ||
|
||
This is required, we fetch data for this user. | ||
|
||
```js | ||
module.exports = { | ||
themeConfig: { | ||
// Your GitHub Username | ||
github: 'egoist' | ||
} | ||
} | ||
``` | ||
|
||
|
||
Show the link to your Twitter profile. | ||
|
||
```js | ||
module.exports = { | ||
themeConfig: { | ||
// Twitter handle | ||
twitter: '_egoistlily' | ||
} | ||
} | ||
``` | ||
|
||
### Sponsor | ||
|
||
Add a _Sponsor_ button: | ||
|
||
```js | ||
module.exports = { | ||
themeConfig: { | ||
// Link to the donation page | ||
sponsorLink: 'https://patreon.com/egoist', | ||
// The tip to show when you hover the sponsor button | ||
sponsorTip: 'Support me' | ||
} | ||
} | ||
``` | ||
|
||
## License | ||
|
||
MIT © [EGOIST](https://github.com/egoist) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:latest | ||
branches: | ||
ignore: | ||
- gh-pages # list of branches to ignore | ||
- /release\/.*/ # or ignore regexes | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "yarn.lock" }} | ||
- run: | ||
name: install dependences | ||
command: yarn | ||
- save_cache: | ||
key: dependency-cache-{{ checksum "yarn.lock" }} | ||
paths: | ||
- ./node_modules | ||
- run: | ||
name: test | ||
command: yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
node_modules | ||
*.log | ||
.DS_Store | ||
|
||
# Saber output | ||
public | ||
.saber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"private": true, | ||
"name": "demo", | ||
"license": "MIT", | ||
"scripts": { | ||
"dev": "saber", | ||
"build": "saber build" | ||
}, | ||
"devDependencies": { | ||
"saber": "^0.6.4", | ||
"saber-plugin-query-posts": "^0.3.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: My First Post | ||
layout: post | ||
date: 2019-05-26 20:23:00 | ||
tags: | ||
- life | ||
--- | ||
|
||
Consectetur nostrud elit do do do nisi quis. Cillum commodo Lorem sunt non sit velit nostrud fugiat. Et ad anim sint veniam occaecat nulla eu id irure occaecat nulla excepteur elit sint. Tempor dolor dolore aute excepteur nisi Lorem incididunt excepteur magna sint proident in voluptate dolore. Anim eiusmod ea sint velit enim irure est enim duis eiusmod. Culpa ea ea duis anim esse culpa anim laborum proident deserunt quis nisi. Laborum in irure aute consectetur enim cillum incididunt mollit. | ||
|
||
Ullamco non incididunt adipisicing duis. Laborum consectetur occaecat veniam nisi amet consectetur laborum cupidatat culpa aute dolor id. Velit consectetur officia commodo elit. Qui officia adipisicing irure laboris non ullamco est cupidatat eu non Lorem excepteur. Ex cupidatat aliqua eu amet consequat Lorem excepteur reprehenderit consectetur. | ||
|
||
Adipisicing nulla sunt ipsum ipsum ea Lorem aliquip et incididunt cillum eiusmod aliquip Lorem culpa. Voluptate laborum id eu exercitation esse aliqua id reprehenderit enim consequat dolor eu excepteur. Qui ut est ex aute ullamco exercitation id. Commodo reprehenderit exercitation et incididunt officia aute eu nostrud nisi eiusmod ipsum. | ||
|
||
Do occaecat consectetur nisi proident excepteur pariatur esse nisi. Aute magna proident consectetur mollit Lorem non est ad ea non proident. Anim reprehenderit ut adipisicing commodo veniam sit. Nostrud eu sint labore culpa proident laborum do adipisicing nostrud esse. Nostrud anim adipisicing irure aliquip incididunt ea ea. | ||
|
||
Cupidatat id occaecat proident officia. Laboris in incididunt ut dolor in qui amet nostrud ad exercitation minim nulla consectetur. Occaecat dolor labore eu nostrud nulla nulla ex dolore. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
title: About | ||
layout: page | ||
--- | ||
|
||
Nostrud et dolor aliquip qui magna adipisicing cillum cillum nisi culpa aliquip exercitation. Dolor reprehenderit sint laborum in nisi deserunt culpa ea irure do sit veniam fugiat. Sit ipsum esse excepteur ad sunt reprehenderit in duis. Et non voluptate esse eu elit duis nulla esse veniam. | ||
|
||
Culpa sit sit cupidatat nulla sit minim fugiat. Cupidatat tempor ut ut Lorem aliqua id pariatur ex velit enim occaecat cupidatat elit tempor. Voluptate officia exercitation ullamco ullamco incididunt irure reprehenderit deserunt occaecat. Minim excepteur aliquip ullamco elit sint exercitation laboris. Ad deserunt ipsum enim exercitation sint culpa ad cillum culpa nostrud nulla ullamco amet deserunt. Consequat voluptate cillum culpa sunt. | ||
|
||
Lorem fugiat consectetur nostrud elit aute do ad duis adipisicing ullamco labore officia dolore. Reprehenderit incididunt incididunt eu sint pariatur minim magna. Ipsum Lorem tempor non est commodo id officia. Exercitation mollit incididunt proident veniam veniam aute. Reprehenderit deserunt magna tempor adipisicing sit dolor non exercitation ut. Exercitation sint dolor ullamco veniam non do deserunt excepteur non nisi. Labore irure culpa esse dolor dolor quis dolore exercitation ad. | ||
|
||
Mollit mollit incididunt aute do fugiat mollit. Proident exercitation mollit culpa sint sit enim laborum. Ut do magna ad Lorem. Exercitation cillum dolor Lorem nisi cillum proident aliquip pariatur mollit. Proident est qui duis ullamco duis eu tempor tempor nostrud velit exercitation reprehenderit aliqua Lorem. | ||
|
||
Nulla ad fugiat quis in veniam minim adipisicing. Magna fugiat tempor ut esse quis cupidatat quis exercitation officia. Sit laboris enim aliquip in exercitation elit et eu incididunt nostrud exercitation culpa culpa est. Occaecat ea fugiat proident non esse in aliqua occaecat ea labore quis velit deserunt. Irure nostrud nostrud dolor incididunt velit. | ||
|
||
Sint velit Lorem occaecat consectetur eu irure anim incididunt et mollit eu. Adipisicing fugiat tempor excepteur cupidatat cupidatat adipisicing aliqua officia. Tempor veniam commodo laborum et sunt. Ea pariatur ullamco et labore dolor do ad eiusmod magna. Veniam voluptate amet ea sunt aute elit incididunt. Magna deserunt laborum cupidatat commodo mollit in id id ut adipisicing amet. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
layout: home | ||
|
||
# Inject blog posts as `page.posts` | ||
injectAllPosts: | ||
perPage: 6 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: Posts | ||
layout: posts | ||
|
||
# Inject posts as `page.posts` | ||
injectAllPosts: | ||
perPage: 30 | ||
|
||
# Ensure the permalink | ||
# So even if you change `permalinks` in saber-config.js | ||
# It won't break saber-theme-portfolio | ||
permalink: /posts | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Saber config file | ||
// https://saber.land/docs/saber-config.html | ||
|
||
module.exports = { | ||
siteConfig: { | ||
description: 'An unsung artist.' | ||
}, | ||
|
||
// Use the package `saber-theme-portfolio` | ||
// More: https://saber.land/docs/themes.html | ||
theme: '../packages/saber-theme-portfolio/src', | ||
|
||
// Configure the theme | ||
themeConfig: { | ||
style: 'dark', | ||
github: 'egoist', | ||
twitter: '_egoistlily', | ||
sponsorLink: 'https://patreon.com/egoist', | ||
sponsorTip: 'Support my work', | ||
nav: [ | ||
{ | ||
text: 'Home', | ||
link: '/' | ||
}, | ||
{ | ||
text: 'About', | ||
link: '/about' | ||
} | ||
] | ||
}, | ||
|
||
permalinks: { | ||
page: '/:slug', | ||
post: '/posts/:slug' | ||
}, | ||
|
||
plugins: [ | ||
{ | ||
resolve: 'saber-plugin-query-posts' | ||
} | ||
] | ||
} |
Oops, something went wrong.