-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- remove unused items in CONFIG - update config - Post per page name - Fix SEO issues on index page
- Loading branch information
1 parent
7fff028
commit 5f4594c
Showing
9 changed files
with
105 additions
and
64 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 |
---|---|---|
@@ -1,24 +1,83 @@ | ||
<h1 align="center"> | ||
Gatsby Starter Obsidian Garden | ||
</h1> | ||
</h1> | ||
</div> | ||
<div align="center"> | ||
<a href="https://github.com/juxtdesigncc/gatsby-starter-obsidian-garden"> | ||
<img src="https://img.shields.io/github/stars/juxtdesigncc/gatsby-starter-obsidian-garden?style=social" alt="Star this repo on Github" /> | ||
</a> | ||
<a href="https://twitter.com/intent/follow?screen_name=juxtdesigncc"> | ||
<img src="https://img.shields.io/twitter/follow/juxtdesigncc.svg?label=Follow%20@juxtdesigncc" alt="Follow @juxtdesigncc on Twitter" /> | ||
</a> | ||
</div> | ||
|
||
## Introduction | ||
A Gatsby starter template to publish [Obsidian](https://obsidian.md/) vault for free, created by [@juxtdesigncc](https:/juxtdesign.cc/?utm_source=obsidian-garden) | ||
|
||
A Gatsby starter template created by [@juxtdesigncc](https:/juxtdesign.cc/?utm_source=obsidian-garden) to publish Obsidian vault for free with Gatsby Cloud. | ||
<a href=""> | ||
<img src="https://img.shields.io/badge/Demo-Gatsby%20Cloud-5b2c8a?style=for-the-badge" alt="Demo Website"/> | ||
</a> | ||
|
||
## Key Features | ||
## 💎 Key Features | ||
|
||
Obsidian currently offers Publish services ($20/month) with advance features. This starter is a free alternative for Obsidian users who want to publish their digital garden as a website. Obsidian can also serve as an on-device CMS to manage your content. (Cross-platform synchronization is also possible via Obsidian Sync / [Git](https://desktopofsamuel.com/how-to-sync-obsidian-vault-for-free-using-git/?utm_source=github&utm_medium=readme&utm_id=starter-obsidian)) | ||
|
||
- Publish your [Obsidian](https://obsidian.md/) knowledge base as a website for free using Gatsby | ||
- Support YAML (e.g. tags, publish) that also supported by Obsidian | ||
- Support same YAML (e.g. tags, publish) as Obsidian | ||
- Display notes' maturity, customizable stages (This template used [Maggie Appleton's metaphor](https://maggieappleton.com/garden-history) - "Seedling", "Budding", "Evergreen" as an example to illustrate notes' maturity) | ||
- Better SEO than Obsidian Publish (Using `react-helmet` for basic SEO setup) | ||
|
||
--- | ||
|
||
## 🚀 Getting Started | ||
|
||
### 1. Create a Gatsby site. | ||
|
||
Clone this template and navigate into the folder | ||
|
||
``` | ||
git clone https://github.com/juxtdesigncc/gatsby-starter-obsidian-garden project-name | ||
cd project-name | ||
``` | ||
|
||
### 2. Install dependencies. | ||
|
||
Install dependencies using yarn or npm | ||
|
||
`yarn install` or `npm install` | ||
|
||
### 3. Open the code and start customizing! | ||
|
||
## Obsidian Preference | ||
Running `gatsby develop` or `yarn run develop` to start the site | ||
|
||
Starting a new vault is highly recommended as Wikilinks options are not on by default. All previous notes using the `[[Wikilinks]]` will need to update. Here're a list of preferences: | ||
Your site is now running at http://localhost:8000! | ||
|
||
--- | ||
|
||
## 💻 Setup | ||
|
||
**Read before you use your own Obsidian vault or create a new one** | ||
|
||
Whether you wish to use your existing Obsidian vault or start a new vault, the following Obsidian preferences has to be set up correctly. Starting a new vault is highly recommended as these options are not on by default. All existing notes using the `[[Wikilinks]]` will need to update manually. Here're a list of preferences: | ||
|
||
- Settings - Files & Links: Use [[Wikilinks]] option should be OFF. It will change the link format from `[[Wikilinks]]` to `[MarkdownLink]`. | ||
- Settings - Default location for new attachments: Should be set as 'In a folder specificed below' and create a folder named `media`, remember to update the config in `gatsby-source-filesystem` in `gatsby-config.js` if the media folder has changed. | ||
- By default, all pages will be published directly, but add frontmatter `publish: false` if you wish to hide certain notes. | ||
- By default, all notes will be published , but add frontmatter `publish: false` to hide a note. | ||
|
||
Current example vault in `/content/vault` has already implemented all the aforementioned preference settings | ||
|
||
## 🎯 Roadmap | ||
|
||
- [ ] Better SEO | ||
- [ ] Wiki Link | ||
- [ ] Obsidian-like node graphs | ||
|
||
## 💪🏻 Support | ||
|
||
Thank you for trying this out! I'm still constantly shipping new updates to this project. Stay tuned for more news! | ||
|
||
### Why `gatsby-remark-relative-images` need to be not the latest version? | ||
You can support this project by: | ||
|
||
https://stackoverflow.com/questions/63698552/gatsby-node-js-threw-an-error-while-running-the-oncreatenode-lifecycle-fmimag | ||
- Raise issues on [Github](https://github.com/juxtdesigncc/gatsby-starter-obsidian-garden/issues) if you catch any bugs | ||
- Submit a [PR](https://github.com/juxtdesigncc/gatsby-starter-obsidian-garden/pulls) if you discovered a solution | ||
- Share this project on Twitter and tag [me](https://twitter.com/juxtdesigncc)! | ||
- Give me a star on [Github](https://github.com/juxtdesigncc/gatsby-starter-obsidian-garden/) |
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 |
---|---|---|
|
@@ -3,17 +3,15 @@ module.exports = { | |
pathPrefix: "", | ||
SITE_TITLE: "Obsidian Garden", | ||
SITE_SUBTITLE: "Gatsby Starter Made for Obsidian Users", | ||
SITE_DESCRIPTION: "", | ||
SITE_DESCRIPTION: | ||
"A Gatsby starter template to publish Obsidian vault for free", | ||
KEYWORDS: "Gatsby, Starter, Obsidian, Digial Garden", | ||
HERO_TITLE: | ||
"Free Gatsby starter template to host your own digital garden for free, created for Obsidian knowledge base.", | ||
HERO_SUBTITLE: "Designed by JUXT Design", | ||
COPYRIGHT: "JUXT Design", | ||
LOCALE: "en", | ||
postsPerPage: 6, | ||
useKatex: false, | ||
siteLogo: "static/profile.jpg", | ||
userTwitter: "@juxtdesigncc", | ||
POST_PER_PAGE: 6, | ||
MENU: [ | ||
{ | ||
label: "About", | ||
|
@@ -44,28 +42,6 @@ module.exports = { | |
], | ||
AUTHOR: { | ||
NAME: "JUXT Design", | ||
photo: "/profile.jpg", | ||
fullbio: | ||
"科技 | 設計 | 城市 <br/> <br/> UI/UX 設計師,喜愛攝影,漫遊城市的不同角落。", | ||
shortbio: "UI/UX 設計師,喜愛攝影,漫遊城市的不同角落。", | ||
contacts: { | ||
instagram: "desktopofsamuel", | ||
email: "[email protected]", | ||
medium: "desktop-of-samuel-wong", | ||
twitter: "desktopofsamuel", | ||
rss: "/rss.xml", | ||
linkedin: "wongchunlong", | ||
facebook: "", | ||
figma: "", | ||
telegram: "", | ||
github: "", | ||
line: "", | ||
gitlab: "", | ||
weibo: "", | ||
codepen: "", | ||
youtube: "", | ||
vkontakte: "", | ||
soundcloud: "", | ||
}, | ||
TWITTER: "@juxtdesigncc", | ||
}, | ||
}; |
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
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
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
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
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
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
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