Skip to content

Commit bf147d8

Browse files
Merge pull request #27 from melledijkstra/develop
New article, styling is now done with Sass + redesign of story page!!!
2 parents a774325 + 0624b56 commit bf147d8

30 files changed

+1545
-1363
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ source "https://rubygems.org"
1111
# Happy Jekylling!
1212

1313
gem 'jekyll', '~> 3.5'
14+
gem 'kramdown', '>= 2.3.0'
1415

1516
# This is the default theme for new Jekyll sites. You may change this to anything you like.
1617

Gemfile.lock

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (6.0.3.1)
4+
activesupport (6.0.3.2)
55
concurrent-ruby (~> 1.0, >= 1.0.2)
66
i18n (>= 0.7, < 2)
77
minitest (~> 5.1)
@@ -16,24 +16,26 @@ GEM
1616
colorator (1.1.0)
1717
commonmarker (0.17.13)
1818
ruby-enum (~> 0.5)
19-
concurrent-ruby (1.1.6)
20-
dnsruby (1.61.3)
21-
addressable (~> 2.5)
19+
concurrent-ruby (1.1.7)
20+
dnsruby (1.61.4)
21+
simpleidn (~> 0.1)
2222
em-websocket (0.5.1)
2323
eventmachine (>= 0.12.9)
2424
http_parser.rb (~> 0.6.0)
2525
ethon (0.12.0)
2626
ffi (>= 1.3.0)
2727
eventmachine (1.2.7)
28+
eventmachine (1.2.7-x64-mingw32)
2829
execjs (2.7.0)
2930
faraday (1.0.1)
3031
multipart-post (>= 1.2, < 3)
31-
ffi (1.13.0)
32+
ffi (1.13.1)
33+
ffi (1.13.1-x64-mingw32)
3234
forwardable-extended (2.6.0)
3335
gemoji (3.0.1)
34-
github-pages (206)
36+
github-pages (207)
3537
github-pages-health-check (= 1.16.1)
36-
jekyll (= 3.8.7)
38+
jekyll (= 3.9.0)
3739
jekyll-avatar (= 0.7.0)
3840
jekyll-coffeescript (= 1.1.1)
3941
jekyll-commonmark-ghpages (= 0.1.6)
@@ -67,7 +69,8 @@ GEM
6769
jekyll-theme-time-machine (= 0.1.1)
6870
jekyll-titles-from-headings (= 0.5.3)
6971
jemoji (= 0.11.1)
70-
kramdown (= 1.17.0)
72+
kramdown (= 2.3.0)
73+
kramdown-parser-gfm (= 1.1.0)
7174
liquid (= 4.0.3)
7275
mercenary (~> 0.3)
7376
minima (= 2.5.1)
@@ -86,14 +89,14 @@ GEM
8689
http_parser.rb (0.6.0)
8790
i18n (0.9.5)
8891
concurrent-ruby (~> 1.0)
89-
jekyll (3.8.7)
92+
jekyll (3.9.0)
9093
addressable (~> 2.4)
9194
colorator (~> 1.0)
9295
em-websocket (~> 0.5)
9396
i18n (~> 0.7)
9497
jekyll-sass-converter (~> 1.0)
9598
jekyll-watch (~> 2.0)
96-
kramdown (~> 1.14)
99+
kramdown (>= 1.17, < 3)
97100
liquid (~> 4.0)
98101
mercenary (~> 0.3.3)
99102
pathutil (~> 0.9)
@@ -191,7 +194,10 @@ GEM
191194
gemoji (~> 3.0)
192195
html-pipeline (~> 2.2)
193196
jekyll (>= 3.0, < 5.0)
194-
kramdown (1.17.0)
197+
kramdown (2.3.0)
198+
rexml
199+
kramdown-parser-gfm (1.1.0)
200+
kramdown (~> 2.0)
195201
liquid (4.0.3)
196202
listen (3.2.1)
197203
rb-fsevent (~> 0.10, >= 0.10.3)
@@ -204,7 +210,9 @@ GEM
204210
jekyll-seo-tag (~> 2.1)
205211
minitest (5.14.1)
206212
multipart-post (2.1.1)
207-
nokogiri (1.10.9)
213+
nokogiri (1.10.10)
214+
mini_portile2 (~> 2.4.0)
215+
nokogiri (1.10.10-x64-mingw32)
208216
mini_portile2 (~> 2.4.0)
209217
octokit (4.18.0)
210218
faraday (>= 0.9)
@@ -215,6 +223,7 @@ GEM
215223
rb-fsevent (0.10.4)
216224
rb-inotify (0.10.1)
217225
ffi (~> 1.0)
226+
rexml (3.2.4)
218227
rouge (3.19.0)
219228
ruby-enum (0.8.0)
220229
i18n
@@ -228,25 +237,33 @@ GEM
228237
sawyer (0.8.2)
229238
addressable (>= 2.3.5)
230239
faraday (> 0.8, < 2.0)
240+
simpleidn (0.1.1)
241+
unf (~> 0.1.4)
231242
terminal-table (1.8.0)
232243
unicode-display_width (~> 1.1, >= 1.1.1)
233244
thread_safe (0.3.6)
234245
typhoeus (1.4.0)
235246
ethon (>= 0.9.0)
236247
tzinfo (1.2.7)
237248
thread_safe (~> 0.1)
249+
unf (0.1.4)
250+
unf_ext
251+
unf_ext (0.0.7.7)
252+
unf_ext (0.0.7.7-x64-mingw32)
238253
unicode-display_width (1.7.0)
239-
zeitwerk (2.3.0)
254+
zeitwerk (2.4.0)
240255

241256
PLATFORMS
242257
ruby
258+
x64-mingw32
243259

244260
DEPENDENCIES
245261
github-pages
246262
jekyll (~> 3.5)
247263
jekyll-feed
248264
jekyll-seo-tag
249265
jekyll-sitemap
266+
kramdown (>= 2.3.0)
250267

251268
BUNDLED WITH
252269
2.1.4

_config.yml

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ collections:
3838
science:
3939
output: true
4040
permalink: /:collection/:title
41-
# travel:
42-
# output: true
43-
# permalink: /:collection/:title
41+
lifestyle:
42+
output: true
43+
permalink: /:collection/:title
4444
# thoughts:
4545
# output: true
4646
# permalink: /:collection/:title
@@ -53,12 +53,7 @@ defaults:
5353
layout: "story"
5454
- scope:
5555
path: ""
56-
type: "thoughts"
57-
values:
58-
layout: "story"
59-
- scope:
60-
path: ""
61-
type: "travel"
56+
type: "lifestyle"
6257
values:
6358
layout: "story"
6459
- scope:
@@ -121,6 +116,7 @@ social:
121116
#
122117
exclude:
123118
- project-files/
119+
- .idea/
124120
# - .sass-cache/
125121
# - .jekyll-cache/
126122
# - gemfiles/
@@ -131,3 +127,41 @@ exclude:
131127
# - vendor/cache/
132128
# - vendor/gems/
133129
# - vendor/ruby/
130+
131+
# KramdownPermalink
132+
#Kramdown is the default Markdown renderer for Jekyll. Below is a list of the currently supported options:
133+
#
134+
kramdown:
135+
# Prefix used for automatically generated header IDs
136+
# auto_id_prefix: ''
137+
# auto_id_stripping - Strip all formatting from header text for automatic ID generation
138+
# auto_ids - Use automatic header ID generation
139+
# coderay_bold_every - Defines how often a line number should be made bold
140+
# coderay_css - Defines how the highlighted code gets styled
141+
# coderay_default_lang - Sets the default language for highlighting code blocks
142+
# coderay_line_number_start - The start value for the line numbers
143+
# coderay_line_numbers - Defines how and if line numbers should be shown
144+
# coderay_tab_width - The tab width used in highlighted code
145+
# coderay_wrap - Defines how the highlighted code should be wrapped
146+
# enable_coderay - Use coderay for syntax highlighting
147+
# entity_output - Defines how entities are output
148+
# footnote_backlink - Defines the text that should be used for the footnote backlinks
149+
# footnote_backlink_inline - Specifies whether the footnote backlink should always be inline
150+
# footnote_nr - The number of the first footnote
151+
# gfm_quirks - Enables a set of GFM specific quirks
152+
# hard_wrap - Interprets line breaks literally
153+
# header_offset - Sets the output offset for headers
154+
# html_to_native - Convert HTML elements to native elements
155+
# line_width - Defines the line width to be used when outputting a document
156+
# link_defs - Pre-defines link definitions
157+
# math_engine - Set the math engine
158+
# math_engine_opts - Set the math engine options
159+
# parse_block_html: true # - Process kramdown syntax in block HTML tags
160+
# parse_span_html - Process kramdown syntax in span HTML tags
161+
# smart_quotes - Defines the HTML entity names or code points for smart quote output
162+
# syntax_highlighter - Set the syntax highlighter
163+
# syntax_highlighter_opts - Set the syntax highlighter options
164+
# toc_levels - Defines the levels that are used for the table of contents
165+
# transliterated_header_ids - Transliterate the header text before generating the ID
166+
# typographic_symbols - Defines a mapping from typographical symbol to output characters
167+

_data/images.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
morgan-housel-unsplash.jpg:
2+
owner: Morgan Housel
3+
url: https://unsplash.com/@morganhousel?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText
4+
joshua-hoehne-1UDjq8s8cy0-unsplash.jpg:
5+
owner: Joshua Hoehne
6+
url: https://unsplash.com/@mrthetrain?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText
7+
martin-brechtl-sEkTsMYTqY0-unsplash.jpg:
8+
owner: Martin Brechtl
9+
url: https://unsplash.com/@majc0?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText
10+
daniel-ruyter-JFA2vSpEUMY-unsplash.jpg:
11+
owner: Danier Ruyter
12+
url: https://unsplash.com/@dbruyter?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText

_drafts/money-time-energy.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: "The effective utilization of Money, Time, and Energy"
3+
date: 2020-07-31 20:10:19 +0200
4+
tags:
5+
image: /assets/images/stories/morgan-housel-unsplash.jpg
6+
---
7+
8+
What is the most important thing in life? Is it the money, or the idea that you can buy anything with that money? Or is it spending holidays with your family? Maybe the most important thing is to have the time to do whatever you want yourself. What about traveling to all those places you wanted to go.
9+
<!--more-->
10+
11+
Its all of these things. All of these things make us happy in some way. And that is what we all want in the end right? Just to be happy.
12+
13+
I am still young, but when I was even younger I started to think about my first travel trip that I wanted to realize. The best time to do it was during summer vacation, because, that is when I had the most time. The accommodation and way of transportation had to be cheap, because as a student you don't have a big budget.
14+
15+
The triangle of **money**, **time**, and **energy** actually governs among all of us in life. The *rich*, the *poor*, the *intelligent*, the *dumb*, everyone is included and every individual has his own triangle.
16+
17+
The impact of this triangle in our life is large on a long-term scale and so important that I needed to write about it. Because I want people to understand how it works and more importantly on how to make your triangle work more effectively for you.
18+
19+
Every single person on earth probably asked themselves the question of "How do I get rich?" at one point in their life.
20+
Did you find the answer? If yes, good for you, you are probably richer now. However I wanted to dive a bit deeper into the idea of "rich". After a while I got to the conclusion does not mean to "have a lot of money". Rich for me is to make the triangle work in the most effective way for you.
21+
22+
> "There are two ways to become rich, work hard or take enough with less"
23+
24+
And I think the majority of people like the second answer more than the first. So why are we working more than we have to? Don't get me wrong, working is important in life. But when I read in the news that there are more adults of 25 years old that have a burnout then ever before [source], I really start to question if we are actually "improving" our status of wealth.
25+
26+
In this example these 25 year old adults probably have a lack in energy and time, but probably (and hopefully) are earning a lot of money. The question is what are they earning this money for? For this amazing car, clothes, phone? Are they really going to enjoy it when they don't have any time to even enjoy it?
27+
28+
If I would was them, I would have **bought time!** You are thinking, buying time? What do I mean with buying time.
29+
30+
Once you worked hard and you have spend a lot of work into receiving a bunch of money, you should also make sure that you buy time to regenerate that energy that you "spend". Isn't it funny that we use the same verb in English for spending "money" and "energy". It indicates that it is closely related.
31+
32+
How can you buy time?
33+
34+

_includes/sidebar.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<div id="sidebar-wrapper">
2-
<h1 class="text-center"><a class="no-link petit-formal-script" href="/">Dijkstra<span class="brand-dot">.</span></a><br/>
3-
<small>{{ site.tagline }}</small>
2+
<h1 class="text-center"><a class="no-link petit" href="/">Dijkstra<span class="brand-dot">.</span></a><br/>
3+
<small id="subtitle">{{ site.tagline }}</small>
44
</h1>
55
<ul class="sidebar-nav">
66
<li>
7-
<a href="/writing/science"><i class="mdi mdi-pencil"></i> <span
8-
class="text-right">Writing</span></a>
7+
<a href="/writing/science"><i class="mdi mdi-atom"></i> <span
8+
class="text-right">Science</span></a>
99
</li>
1010
<li>
11-
<a href="/projects"><i class="mdi mdi-book-open-page-variant"></i> <span
12-
class="text-right">Projects</span></a>
11+
<a href="/writing/lifestyle"><i class="mdi mdi-yin-yang"></i> <span
12+
class="text-right">Lifestyle</span></a>
1313
</li>
1414
<li>
1515
<a href="/"><i class="mdi mdi-account-card-details"></i> <span
16-
class="text-right">Resume</span></a>
16+
class="text-right">About</span></a>
1717
</li>
1818
</ul>
1919

_includes/story_item.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
style="background-color: #ad9977;"
1919
>{{ include.story.language.name }}</small>
2020
{% endif %}
21-
<h2 class="title">
21+
<h2 class="title sans">
2222
<a href="{{ include.story.url }}">{{ include.story.title }}</a>
2323
</h2>
2424
<div class="info">
2525
<div class="time">
26-
<span class="mdi mdi-clock"></span> {{ include.story.date | date: '%e %b %Y %R' }}
26+
<span class="mdi mdi-clock"></span> {{ include.story.date | date: '%e %b %Y' }}
2727
</div>
2828
{% if include.story.tags %}
2929
<div class="categories">
@@ -34,7 +34,9 @@ <h2 class="title">
3434
</div>
3535
{% endif %}
3636
</div>
37-
<p class="sneak-peek">{{ include.story.excerpt }}</p>
37+
<p class="sneak-peek serif softcolor">
38+
{{ include.story.excerpt | strip_html }}
39+
</p>
3840
</div>
3941
</div>
4042
</div>

_layouts/default.html

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,18 @@
3232
})(window,document,'script','dataLayer','GTM-KPKS5SL');</script>
3333
<!-- End Google Tag Manager -->
3434

35-
<link rel="stylesheet" href="/assets/css/bootstrap.min.css"/>
36-
<link rel="stylesheet" href="/assets/css/site.css"/>
3735
<link rel="stylesheet" href="/assets/css/main.css"/>
3836
<link rel="stylesheet" href="/assets/css/materialdesignicons.min.css"/>
3937

4038
{% if layout.head_css %}
41-
{% for css_file in layout.head_css %}
42-
<link rel="stylesheet" href="{{ css_file }}" />
43-
{% endfor %}
39+
{% for css_file in layout.head_css %}
40+
<link rel="stylesheet" href="{{ css_file }}" />
41+
{% endfor %}
42+
{% endif %}
43+
{% if page.head_css %}
44+
{% for css_file in page.head_css %}
45+
<link rel="stylesheet" href="{{ css_file }}" />
46+
{% endfor %}
4447
{% endif %}
4548

4649
<!-- Global site tag (gtag.js) - Google Analytics -->
@@ -60,14 +63,14 @@
6063
crossorigin="anonymous"></script>
6164
<!-- todo: mix this together -->
6265
{% if layout.head_js %}
63-
{% for js in layout.head_js %}
64-
<script src="{{ js }}"></script>
65-
{% endfor %}
66+
{% for js in layout.head_js %}
67+
<script src="{{ js }}"></script>
68+
{% endfor %}
6669
{% endif %}
6770
{% if page.head_js %}
68-
{% for js in page.head_js %}
69-
<script src="{{ js }}"></script>
70-
{% endfor %}
71+
{% for js in page.head_js %}
72+
<script src="{{ js }}"></script>
73+
{% endfor %}
7174
{% endif %}
7275

7376
<!-- !Plugins! -->

0 commit comments

Comments
 (0)