forked from TryGhost/eleventy-starter-ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the need for css preprocessing, remove gulp entirely
- Loading branch information
1 parent
b195e8f
commit 64f5186
Showing
12 changed files
with
1,127 additions
and
1,639 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,26 @@ | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.hbs] | ||
insert_final_newline = false | ||
|
||
[*.json] | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.{yml,yaml}] | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_style = tab |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
GHOST_CONTENT_API_URL=https://eleventy.ghost.io | ||
GHOST_API_URL=https://eleventy.ghost.io | ||
GHOST_CONTENT_API_KEY=b28bdbe3d9799061a92b870bb4 | ||
SITE_URL=http://localhost:8080 |
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 |
---|---|---|
|
@@ -65,8 +65,6 @@ typings/ | |
|
||
# Eleventy Custom | ||
.cache/ | ||
public | ||
yarn-error.log | ||
.netlify/ | ||
/dist | ||
/src/_includes/css | ||
dist |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
const ghostContentAPI = require('@tryghost/content-api'); | ||
require('dotenv').config(); | ||
require("dotenv").config(); | ||
|
||
const ghostContentAPI = require("@tryghost/content-api"); | ||
|
||
// Init Ghost API | ||
const api = new ghostContentAPI({ | ||
url: process.env.GHOST_CONTENT_API_URL, | ||
url: process.env.GHOST_API_URL, | ||
key: process.env.GHOST_CONTENT_API_KEY, | ||
version: 'v2' | ||
version: "v2" | ||
}); | ||
|
||
// Get all site information | ||
module.exports = async function() { | ||
const siteData = await api.settings | ||
.browse({ | ||
include: 'icon' | ||
include: "icon,url" | ||
}) | ||
.catch(err => { | ||
console.error(err); | ||
}); | ||
|
||
if (process.env.SITE_URL) siteData.url = process.env.SITE_URL; | ||
|
||
return siteData; | ||
}; |
Oops, something went wrong.