Skip to content

Commit 5abbc2e

Browse files
committed
Added starters.yaml and readme file and updated underlying package
1 parent aca008e commit 5abbc2e

File tree

4 files changed

+94
-15
lines changed

4 files changed

+94
-15
lines changed

README.md

Lines changed: 64 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Play with the [Demo](https://wp-libre-preview.draftbox.co/) to get a first impre
3030
- Disqus Integration
3131
- Composable and extensible
3232

33-
3433
## Getting Started
3534

3635
1. Install this starter by running
@@ -80,30 +79,83 @@ A quick look at the top-level files and directories you'll see in a Gatsby proje
8079

8180
6. **`siteConfig`**: A config file for your website, which includes things like website url, title, Background color, theme color etc.
8281

83-
8. **`.wordpress-config.json`**: A config file containing config required to fetch data from wordpress such as url and content keys etc.
82+
7. **`.wordpress-config.json`**: A config file containing config required to fetch data from wordpress such as url and content keys etc.
8483

85-
9. **`README.md`**: A text file containing useful reference information about your project.
84+
8. **`README.md`**: A text file containing useful reference information about your project.
8685

8786
## Configure
8887

8988
```js
9089
//siteConfig.js
9190
module.exports = {
92-
siteUrl: "http://localhost:9000", // Site domain. Do not include a trailing slash!
91+
siteUrl: "https://wp-libre-preview.draftbox.co", // Site domain. Do not include a trailing slash!
9392

94-
postsPerPage: 2, // Number of posts shown on paginated pages (changes this requires sometimes to delete the cache)
93+
postsPerPage: 10, // Number of posts shown on paginated pages (changes this requires sometimes to delete the cache)
9594

96-
siteTitleMeta: "Wordpress Gatsby Starter", // This allows an alternative site title for meta data for pages.
97-
siteDescriptionMeta:
98-
"A starter template to build amazing static websites with Wordpress and Gatsby", // This allows an alternative site description for meta data for pages.
95+
siteTitleMeta: "Built with Draftbox", // This allows an alternative site title for meta data for pages.
96+
siteDescriptionMeta: "New-age blogging platform", // This allows an alternative site description for meta data for pages.
9997

10098
shareImageWidth: 1000, // Change to the width of your default share image
10199
shareImageHeight: 523, // Change to the height of your default share image
102100

103-
shortTitle: "Wordpress", // Used for App manifest e.g. Mobile Home Screen
101+
shortTitle: "Built with Draftbox", // Used for App manifest e.g. Mobile Home Screen
104102
siteIcon: "favicon.png", // Logo in /static dir used for SEO, RSS, and App manifest
105103
backgroundColor: "#e9e9e9", // Used for Offline Manifest
106-
themeColor: "#15171A" // Used for Offline Manifest
104+
themeColor: "#15171A", // Used for Offline Manifest
105+
apiUrl: "https://wordpress.theasdfghjkl.com",
106+
subscribeWidget: {
107+
title: "Subscribe to Draftbox",
108+
helpText: "Get the latest posts delivered right to your inbox.",
109+
successMessage: "Thanks for subscribing to Draftbox.",
110+
},
111+
header: {
112+
navigation: [
113+
{
114+
label: "Home",
115+
url: "https://wp-libre-preview.draftbox.co/",
116+
},
117+
{
118+
label: "Contact",
119+
url: "https://wp-libre-preview.draftbox.co/contact",
120+
},
121+
],
122+
},
123+
footer: {
124+
copyright: "Built with Draftbox",
125+
navigation: [
126+
{
127+
label: "Home",
128+
url: "https://wp-libre-preview.draftbox.co/",
129+
},
130+
{
131+
label: "Sitemap",
132+
url: "https://wp-libre-preview.draftbox.co/sitemap.xml",
133+
},
134+
{
135+
label: "RSS",
136+
url: "https://wp-libre-preview.draftbox.co/rss.xml",
137+
},
138+
{
139+
label: "Contact",
140+
url: "https://wp-libre-preview.draftbox.co/contact",
141+
},
142+
{
143+
label: "External Link",
144+
url: "https://spectrum.chat/gatsby-js/themes?tab=posts",
145+
},
146+
],
147+
},
148+
socialLinks: {
149+
twitter: "https://twitter.com/draftboxhq",
150+
facebook: "https://facebook.com/",
151+
instagram: "https://www.instagram.com/",
152+
linkedin: "https://linkedin.com/",
153+
github: "https://github.com/draftbox-co",
154+
},
155+
contactWidget: {
156+
title: "Contact Built with Draftbox",
157+
successMessage: "We’ll get in touch with you soon.",
158+
},
107159
};
108160
```
109161

@@ -142,12 +194,14 @@ If your blog is hosted on wordpress.com you will have to add few extra keys for
142194
After completion of the build process your static site can be found in the `public/` folder. Copy those files over to your webserver.
143195

144196
## Authors
197+
145198
- Arun Priyadarshi ([@Gunnerforlife](https://github.com/Gunnerforlife)) – [Draftbox](https://draftbox.co)
146199
- Keyur Raval ([@thandaanda](https://github.com/thandaanda)) – [Draftbox](https://draftbox.co)
147200
- Shyam Lohar ([@shyamlohar](https://github.com/shyamlohar)) – [Draftbox](https://draftbox.co)
148201
- Tanmay Desai ([@tanmaydesai89](https://github.com/tanmaydesai89)) – [Draftbox](https://draftbox.co)
149202

150203
## Contributions
204+
151205
PRs are welcome! Consider contributing to this project if you are missing feature that is also useful for others.
152206

153207
# Copyright & License

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"react-dom": "^16.13.0"
1616
},
1717
"dependencies": {
18-
"@draftbox-co/gatsby-wordpress-theme-libre": "^1.0.27",
18+
"@draftbox-co/gatsby-wordpress-theme-libre": "^1.0.28",
1919
"dotenv": "^8.2.0",
2020
"gatsby": "2.20.24",
2121
"gatsby-plugin-crisp-chat": "^3.2.2",

starters.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
- url: https://wp-libre-preview.draftbox.co
2+
repo: https://github.com/draftbox-co/gatsby-wordpress-libre-starter
3+
description: A Gatsby starter for creating blogs from headless WordPress CMS.
4+
tags:
5+
* AMP
6+
* Blog
7+
* CMS:Headless
8+
* CMS:WordPress
9+
* Disqus
10+
* Netlify
11+
* Pagination
12+
* PWA
13+
* RSS
14+
* SEO
15+
* Styling:Other
16+
features:
17+
- Libre Skin by Draftbox
18+
- Data sourcing from headless WordPress
19+
- Responsive design
20+
- SEO optimized
21+
- OpenGraph structured data
22+
- Twitter Cards meta
23+
- Sitemap Generation
24+
- XML Sitemaps
25+
- Progressive Web App

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -958,10 +958,10 @@
958958
lodash "^4.17.13"
959959
to-fast-properties "^2.0.0"
960960

961-
"@draftbox-co/gatsby-wordpress-theme-libre@^1.0.27":
962-
version "1.0.27"
963-
resolved "https://registry.yarnpkg.com/@draftbox-co/gatsby-wordpress-theme-libre/-/gatsby-wordpress-theme-libre-1.0.27.tgz#aa0f0db24929332fd2da71e2288e3dd30ec50e38"
964-
integrity sha512-1XL/1HPQm65lIrIiZvFhVqaH/WSuC5Qoben0m83I3eMRzzx5/bNJUtEa5jN+uzW+T1rhQ3j1kbOhzjvIJQxkwQ==
961+
"@draftbox-co/gatsby-wordpress-theme-libre@^1.0.28":
962+
version "1.0.28"
963+
resolved "https://registry.yarnpkg.com/@draftbox-co/gatsby-wordpress-theme-libre/-/gatsby-wordpress-theme-libre-1.0.28.tgz#e8c6acbd9b575ae3fe2da5cf72ecf7bda05bd430"
964+
integrity sha512-ZK0QCTzqGuqLdKezperzyYiPB+Tst1SfI+LVtIBBwTV2YrSsO9rgaBXV5+GqfbJcUNVFrzU9kZ7d8hXIq2YlVQ==
965965
dependencies:
966966
"@armada-inc/gatsby-plugin-amp" "^0.2.3"
967967
"@reach/router" "^1.3.3"

0 commit comments

Comments
 (0)