Skip to content

Commit 3ae9ffc

Browse files
committed
Add post and render with mdx
1 parent bd688db commit 3ae9ffc

File tree

6 files changed

+45
-3
lines changed

6 files changed

+45
-3
lines changed

components/Thoughts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ export default () => (
3535
)
3636

3737
const Thoughts = ({ id, title }) => (
38-
<Link href={`/thoughts/${id}`}><Title>{ title }</Title></Link>
38+
<Link prefetch href={`/thoughts/${id}`}><Title>{ title }</Title></Link>
3939
)

data/thoughts.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"thoughts": [
33
{
4-
"id": "resources",
5-
"title": "Resources"
4+
"id": "why-programming",
5+
"title": "Why Programming"
66
},
77
{
88
"id": "how-I-built-this-website",

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"to-id": "^1.0.5"
1717
},
1818
"devDependencies": {
19+
"@mdx-js/loader": "^0.13.0-0",
1920
"@mdx-js/mdx": "^0.13.0-0",
2021
"standard": "^11.0.1"
2122
}

pages/thoughts/why-programming.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import Layout from '../../components/Layout'
2+
import Dot from '../../components/Dot'
3+
import Markdown from './why-programming.md'
4+
5+
export default () => (
6+
<Layout>
7+
<Dot to='/thoughts' />
8+
<Markdown />
9+
</Layout>
10+
)

pages/thoughts/why-programming.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Why Programming?
2+
3+
> Change is the only constant - Heraclitus (Philosopher)
4+
5+
As an architect with a very abstract definition of architecture, I believe that the combination of design and technical thinking prepares you with a set of tools that allow a pursuit in a number of different disciplines.
6+
7+
#### Always making things
8+
I started to learn software development by chance. After a few lines of HTML I was hooked. I believe programming is dynamic and iterative, technical and creative. Code gives you the ability to build beautiful things, to bring your ideas into fruition.
9+
10+
#### The joy of always learning
11+
For almost two years now, I have enjoyed the process of continuous learning while creating. Be it a simple method to count the words in a string, a command line application or a sinatra MVC web application.
12+
I have lost track of time trying to understand a problem to find a possible solution, asking myself: why does this not work? why does this work?! Curiosity has always driven me to keep asking questions and keep trying solutions. And it's been an absolutely rewarding journey.
13+
14+
#### A great community
15+
A community that thrives in sharing ideas and helping each other grow.
16+
Be it through sharing experiences, having discussions and debates, asking questions.
17+
18+
#### Endless possibilities
19+
Programming is the backbone to so many aspects of our daily lives and I am still fascinated by the endless possibilities it brings. There is no limit to this continuous learning. Languages, tools, algorithms, frameworks, patterns, always growing and evolving.

yarn.lock

+12
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,12 @@
584584
lodash "^4.2.0"
585585
to-fast-properties "^2.0.0"
586586

587+
"@mdx-js/loader@^0.13.0-0":
588+
version "0.13.0-0"
589+
resolved "https://registry.yarnpkg.com/@mdx-js/loader/-/loader-0.13.0-0.tgz#8240d06b46c8ac8d9006b501249ad40641940214"
590+
dependencies:
591+
"@mdx-js/tag" "^0.11.0"
592+
587593
"@mdx-js/loader@^0.7.0":
588594
version "0.7.4"
589595
resolved "https://registry.yarnpkg.com/@mdx-js/loader/-/loader-0.7.4.tgz#d673e628b4d9ffcafaa8f8079468d6fc87ac1a7b"
@@ -607,6 +613,12 @@
607613
dependencies:
608614
unist-util-visit "^1.3.0"
609615

616+
"@mdx-js/tag@^0.11.0":
617+
version "0.11.0"
618+
resolved "https://registry.yarnpkg.com/@mdx-js/tag/-/tag-0.11.0.tgz#d4e3f4e384e862302908e10c23dc1959da5ca91b"
619+
dependencies:
620+
prop-types "^15.6.1"
621+
610622
"@mdx-js/tag@^0.7.2":
611623
version "0.7.2"
612624
resolved "https://registry.yarnpkg.com/@mdx-js/tag/-/tag-0.7.2.tgz#a18d76644089b4a9bb6d489d205cb065051b7c9a"

0 commit comments

Comments
 (0)