Skip to content

Commit 4fe5bc4

Browse files
committed
initial commit
0 parents  commit 4fe5bc4

26 files changed

+28797
-0
lines changed

.gitignore

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (http://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# Typescript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# dotenv environment variables file
55+
.env
56+
57+
# gatsby files
58+
.cache/
59+
public
60+
61+
# Mac files
62+
.DS_Store
63+
64+
# Yarn
65+
yarn-error.log
66+
.pnp/
67+
.pnp.js
68+
# Yarn Integrity file
69+
.yarn-integrity

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"endOfLine": "lf",
3+
"semi": false,
4+
"singleQuote": false,
5+
"tabWidth": 2,
6+
"trailingComma": "es5"
7+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Gatsbyjs
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Beanloop Tech Blog
2+
3+
## Deploy
67.5 KB
Loading

content/assets/gatsby-icon.png

20.7 KB
Loading

content/assets/profile-pic.jpg

21.2 KB
Loading

content/blog/hello-world/index.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Hello World
3+
date: "2015-05-01T22:12:03.284Z"
4+
---
5+
6+
This is my first post on my new fake blog! How exciting!
7+
8+
I'm sure I'll write a lot more interesting things in the future.
9+
10+
Oh, and here's a great quote from this Wikipedia on
11+
[salted duck eggs](http://en.wikipedia.org/wiki/Salted_duck_egg).
12+
13+
> A salted duck egg is a Chinese preserved food product made by soaking duck
14+
> eggs in brine, or packing each egg in damp, salted charcoal. In Asian
15+
> supermarkets, these eggs are sometimes sold covered in a thick layer of salted
16+
> charcoal paste. The eggs may also be sold with the salted paste removed,
17+
> wrapped in plastic, and vacuum packed. From the salt curing process, the
18+
> salted duck eggs have a briny aroma, a gelatin-like egg white and a
19+
> firm-textured, round yolk that is bright orange-red in color.
20+
21+
![Chinese Salty Egg](./salty_egg.jpg)
668 KB
Loading

content/blog/hi-folks/index.md

+108
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
---
2+
title: New Beginnings
3+
date: "2015-05-28T22:40:32.169Z"
4+
description: This is a custom description for SEO and Open Graph purposes, rather than the default generated excerpt. Simply add a description field to the frontmatter.
5+
---
6+
7+
Far far away, behind the word mountains, far from the countries Vokalia and
8+
Consonantia, there live the blind texts. Separated they live in Bookmarksgrove
9+
right at the coast of the Semantics, a large language ocean. A small river named
10+
Duden flows by their place and supplies it with the necessary regelialia.
11+
12+
## On deer horse aboard tritely yikes and much
13+
14+
The Big Oxmox advised her not to do so, because there were thousands of bad
15+
Commas, wild Question Marks and devious Semikoli, but the Little Blind Text
16+
didn’t listen. She packed her seven versalia, put her initial into the belt and
17+
made herself on the way.
18+
19+
- This however showed weasel
20+
- Well uncritical so misled
21+
- this is very interesting
22+
- Goodness much until that fluid owl
23+
24+
When she reached the first hills of the **Italic Mountains**, she had a last
25+
view back on the skyline of her hometown _Bookmarksgrove_, the headline of
26+
[Alphabet Village](http://google.com) and the subline of her own road, the Line
27+
Lane. Pityful a rethoric question ran over her cheek, then she continued her
28+
way. On her way she met a copy.
29+
30+
### Overlaid the jeepers uselessly much excluding
31+
32+
But nothing the copy said could convince her and so it didn’t take long until a
33+
few insidious Copy Writers ambushed her, made her drunk with
34+
[Longe and Parole](http://google.com) and dragged her into their agency, where
35+
they abused her for their projects again and again. And if she hasn’t been
36+
rewritten, then they are still using her.
37+
38+
> Far far away, behind the word mountains, far from the countries Vokalia and
39+
> Consonantia, there live the blind texts. Separated they live in Bookmarksgrove
40+
> right at the coast of the Semantics, a large language ocean.
41+
42+
It is a paradisematic country, in which roasted parts of sentences fly into your
43+
mouth. Even the all-powerful Pointing has no control about the blind texts it is
44+
an almost unorthographic life One day however a small line of blind text by the
45+
name of Lorem Ipsum decided to leave for the far World of Grammar.
46+
47+
### According a funnily until pre-set or arrogant well cheerful
48+
49+
The Big Oxmox advised her not to do so, because there were thousands of bad
50+
Commas, wild Question Marks and devious Semikoli, but the Little Blind Text
51+
didn’t listen. She packed her seven versalia, put her initial into the belt and
52+
made herself on the way.
53+
54+
1. So baboon this
55+
2. Mounted militant weasel gregariously admonishingly straightly hey
56+
3. Dear foresaw hungry and much some overhung
57+
4. Rash opossum less because less some amid besides yikes jeepers frenetic
58+
impassive fruitlessly shut
59+
60+
When she reached the first hills of the Italic Mountains, she had a last view
61+
back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet
62+
Village and the subline of her own road, the Line Lane. Pityful a rethoric
63+
question ran over her cheek, then she continued her way. On her way she met a
64+
copy.
65+
66+
> The copy warned the Little Blind Text, that where it came from it would have
67+
> been rewritten a thousand times and everything that was left from its origin
68+
> would be the word "and" and the Little Blind Text should turn around and
69+
> return to its own, safe country.
70+
71+
But nothing the copy said could convince her and so it didn’t take long until a
72+
few insidious Copy Writers ambushed her, made her drunk with Longe and Parole
73+
and dragged her into their agency, where they abused her for their projects
74+
again and again. And if she hasn’t been rewritten, then they are still using
75+
her. Far far away, behind the word mountains, far from the countries Vokalia and
76+
Consonantia, there live the blind texts.
77+
78+
#### Silent delightfully including because before one up barring chameleon
79+
80+
Separated they live in Bookmarksgrove right at the coast of the Semantics, a
81+
large language ocean. A small river named Duden flows by their place and
82+
supplies it with the necessary regelialia. It is a paradisematic country, in
83+
which roasted parts of sentences fly into your mouth.
84+
85+
Even the all-powerful Pointing has no control about the blind texts it is an
86+
almost unorthographic life One day however a small line of blind text by the
87+
name of Lorem Ipsum decided to leave for the far World of Grammar. The Big Oxmox
88+
advised her not to do so, because there were thousands of bad Commas, wild
89+
Question Marks and devious Semikoli, but the Little Blind Text didn’t listen.
90+
91+
##### Wherever far wow thus a squirrel raccoon jeez jaguar this from along
92+
93+
She packed her seven versalia, put her initial into the belt and made herself on
94+
the way. When she reached the first hills of the Italic Mountains, she had a
95+
last view back on the skyline of her hometown Bookmarksgrove, the headline of
96+
Alphabet Village and the subline of her own road, the Line Lane. Pityful a
97+
rethoric question ran over her cheek, then she continued her way. On her way she
98+
met a copy.
99+
100+
###### Slapped cozy a that lightheartedly and far
101+
102+
The copy warned the Little Blind Text, that where it came from it would have
103+
been rewritten a thousand times and everything that was left from its origin
104+
would be the word "and" and the Little Blind Text should turn around and return
105+
to its own, safe country. But nothing the copy said could convince her and so it
106+
didn’t take long until a few insidious Copy Writers ambushed her, made her drunk
107+
with Longe and Parole and dragged her into their agency, where they abused her
108+
for their projects again and again.

content/blog/my-second-post/index.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: My Second Post!
3+
date: "2015-05-06T23:46:37.121Z"
4+
---
5+
6+
Wow! I love blogging so much already.
7+
8+
Did you know that "despite its name, salted duck eggs can also be made from
9+
chicken eggs, though the taste and texture will be somewhat different, and the
10+
egg yolk will be less rich."?
11+
([Wikipedia Link](http://en.wikipedia.org/wiki/Salted_duck_egg))
12+
13+
Yeah, I didn't either.

gatsby-browser.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// custom typefaces
2+
import "typeface-montserrat"
3+
import "typeface-merriweather"

gatsby-config.js

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
module.exports = {
2+
siteMetadata: {
3+
title: `Beanloop Tech Blog`,
4+
author: `Beanloop`,
5+
description: `A starter blog demonstrating what Gatsby can do.`,
6+
siteUrl: `https://gatsby-starter-blog-demo.netlify.com/`,
7+
social: {
8+
twitter: `BeanloopDev`,
9+
},
10+
},
11+
plugins: [
12+
{
13+
resolve: `gatsby-source-filesystem`,
14+
options: {
15+
path: `${__dirname}/content/blog`,
16+
name: `blog`,
17+
},
18+
},
19+
{
20+
resolve: `gatsby-source-filesystem`,
21+
options: {
22+
path: `${__dirname}/content/assets`,
23+
name: `assets`,
24+
},
25+
},
26+
{
27+
resolve: `gatsby-transformer-remark`,
28+
options: {
29+
plugins: [
30+
{
31+
resolve: `gatsby-remark-images`,
32+
options: {
33+
maxWidth: 590,
34+
},
35+
},
36+
{
37+
resolve: `gatsby-remark-responsive-iframe`,
38+
options: {
39+
wrapperStyle: `margin-bottom: 1.0725rem`,
40+
},
41+
},
42+
`gatsby-remark-prismjs`,
43+
`gatsby-remark-copy-linked-files`,
44+
`gatsby-remark-smartypants`,
45+
],
46+
},
47+
},
48+
`gatsby-transformer-sharp`,
49+
`gatsby-plugin-sharp`,
50+
{
51+
resolve: `gatsby-plugin-google-analytics`,
52+
options: {
53+
//trackingId: `ADD YOUR TRACKING ID HERE`,
54+
},
55+
},
56+
`gatsby-plugin-feed`,
57+
{
58+
resolve: `gatsby-plugin-manifest`,
59+
options: {
60+
name: `Gatsby Starter Blog`,
61+
short_name: `GatsbyJS`,
62+
start_url: `/`,
63+
background_color: `#ffffff`,
64+
theme_color: `#663399`,
65+
display: `minimal-ui`,
66+
icon: `content/assets/gatsby-icon.png`,
67+
},
68+
},
69+
`gatsby-plugin-offline`,
70+
`gatsby-plugin-react-helmet`,
71+
{
72+
resolve: `gatsby-plugin-typography`,
73+
options: {
74+
pathToConfigModule: `src/utils/typography`,
75+
},
76+
},
77+
],
78+
}

gatsby-node.js

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
const path = require(`path`)
2+
const { createFilePath } = require(`gatsby-source-filesystem`)
3+
4+
exports.createPages = ({ graphql, actions }) => {
5+
const { createPage } = actions
6+
7+
const blogPost = path.resolve(`./src/templates/blog-post.js`)
8+
return graphql(
9+
`
10+
{
11+
allMarkdownRemark(
12+
sort: { fields: [frontmatter___date], order: DESC }
13+
limit: 1000
14+
) {
15+
edges {
16+
node {
17+
fields {
18+
slug
19+
}
20+
frontmatter {
21+
title
22+
}
23+
}
24+
}
25+
}
26+
}
27+
`
28+
).then(result => {
29+
if (result.errors) {
30+
throw result.errors
31+
}
32+
33+
// Create blog posts pages.
34+
const posts = result.data.allMarkdownRemark.edges
35+
36+
posts.forEach((post, index) => {
37+
const previous = index === posts.length - 1 ? null : posts[index + 1].node
38+
const next = index === 0 ? null : posts[index - 1].node
39+
40+
createPage({
41+
path: post.node.fields.slug,
42+
component: blogPost,
43+
context: {
44+
slug: post.node.fields.slug,
45+
previous,
46+
next,
47+
},
48+
})
49+
})
50+
51+
return null
52+
})
53+
}
54+
55+
exports.onCreateNode = ({ node, actions, getNode }) => {
56+
const { createNodeField } = actions
57+
58+
if (node.internal.type === `MarkdownRemark`) {
59+
const value = createFilePath({ node, getNode })
60+
createNodeField({
61+
name: `slug`,
62+
node,
63+
value,
64+
})
65+
}
66+
}

0 commit comments

Comments
 (0)