2 | {% assign hasSimilar = '' %}
3 | {% for post in site.posts %}
4 | {% assign postHasSimilar = false %}
5 | {% for tag in post.tags %}
6 | {% for thisTag in page.tags %}
7 | {% if postHasSimilar == false and hasSimilar.size < 5 and post != page and tag == thisTag %}
8 | {% if hasSimilar.size == 0 %}
9 |
7 |
8 | {% assign tags_list = site.tags %}
9 |
10 | {% if tags_list.first[0] == null %}
11 | {% for tag in tags_list %}
12 | {{ tag }}
13 | {% endfor %}
14 | {% else %}
15 | {% for tag in tags_list %}
16 | {{ tag[0] }}
17 | {% endfor %}
18 | {% endif %}
19 |
20 | {% assign tags_list = nil %}
21 |
22 |
23 |
24 |
25 |
26 | {% for tag in site.tags %}
27 |
#{{ tag[0] }}
28 |
29 |
30 | {% assign pages_list = tag[1] %}
31 | {% for post in pages_list reversed %}
32 | {% if post.title != null %}
33 | {% if group == null or group == post.group %}
34 |
Lorem Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
8 | tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
9 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
10 | consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
11 | cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
12 | proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
13 |
14 |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
15 | tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
16 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
17 | consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
18 | cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
19 | proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " ;; ;" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %}
Step
Bytes
raw
{{ content | size }}{% if _profile_endings %}
endings
{{ _profile_endings }}{% endif %}{% if _profile_startings %}
startings
{{ _profile_startings }}{% endif %}{% if _profile_comments %}
comments
{{ _profile_comments }}{% endif %}{% if _profile_collapse %}
collapse
{{ _profile_collapse }}{% endif %}{% if _profile_clippings %}
clippings
{{ _profile_clippings }}{% endif %}
{% endif %}{% endif %}
11 |
--------------------------------------------------------------------------------
/_posts/2016-02-24-markdown-common-elements.markdown:
--------------------------------------------------------------------------------
1 | ---
2 | title: "Markdown Common Elements"
3 | layout: post
4 | date: 2016-02-24 22:44
5 | image: /assets/images/markdown.jpg
6 | headerImage: false
7 | tag:
8 | - markdown
9 | - elements
10 | star: true
11 | category: blog
12 | author: johndoe
13 | description: Markdown summary with different options
14 | ---
15 |
16 | ## Basic formatting
17 |
18 | This note **demonstrates** some of what [Markdown][1] is *capable of doing*.
19 |
20 | And that's how to do it.
21 |
22 | {% highlight html %}
23 | This note **demonstrates** some of what [Markdown][some/link] is *capable of doing*.
24 | {% endhighlight %}
25 |
26 | ---
27 |
28 | ## Headings
29 |
30 | There are six levels of headings. They correspond with the six levels of HTML headings. You've probably noticed them already in the page. Each level down uses one more hash character. But we are using just 4 of them.
31 |
32 | # Headings can be small
33 |
34 | ## Headings can be small
35 |
36 | ### Headings can be small
37 |
38 | #### Headings can be small
39 |
40 | {% highlight raw %}
41 | # Heading
42 | ## Heading
43 | ### Heading
44 | #### Heading
45 | {% endhighlight %}
46 |
47 | ---
48 |
49 | ## Lists
50 |
51 | ### Ordered list
52 |
53 | 1. Item 1
54 | 2. A second item
55 | 3. Number 3
56 |
57 | {% highlight raw %}
58 | 1. Item 1
59 | 2. A second item
60 | 3. Number 3
61 | {% endhighlight %}
62 |
63 | ### Unordered list
64 |
65 | * An item
66 | * Another item
67 | * Yet another item
68 | * And there's more...
69 |
70 | {% highlight raw %}
71 | * An item
72 | * Another item
73 | * Yet another item
74 | * And there's more...
75 | {% endhighlight %}
76 |
77 | ---
78 |
79 | ## Paragraph modifiers
80 |
81 | ### Quote
82 |
83 | > Here is a quote. What this is should be self explanatory. Quotes are automatically indented when they are used.
84 |
85 | {% highlight raw %}
86 | > Here is a quote. What this is should be self explanatory.
87 | {% endhighlight raw %}
88 |
89 | ---
90 |
91 | ## URLs
92 |
93 | URLs can be made in a handful of ways:
94 |
95 | * A named link to [Mark It Down][3].
96 | * Another named link to [Mark It Down](https://google.com/)
97 | * Sometimes you just want a URL like .
98 |
99 | {% highlight raw %}
100 | * A named link to [MarkItDown][3].
101 | * Another named link to [MarkItDown](https://google.com/)
102 | * Sometimes you just want a URL like .
103 | {% endhighlight %}
104 |
105 | ---
106 |
107 | ## Horizontal rule
108 |
109 | A horizontal rule is a line that goes across the middle of the page.
110 | It's sometimes handy for breaking things up.
111 |
112 | {% highlight raw %}
113 | ---
114 | {% endhighlight %}
115 |
116 | ---
117 |
118 | ## Images
119 |
120 | Markdown can also contain images. I'll need to add something here sometime.
121 |
122 | {% highlight raw %}
123 | ![Markdowm Image][/image/url]
124 | {% endhighlight %}
125 |
126 | ![Markdowm Image][5]
127 |
128 | *Figure Caption*?
129 |
130 | {% highlight raw %}
131 | ![Markdowm Image][/image/url]
132 | Photo by John Doe
133 | {% endhighlight %}
134 |
135 | ![Markdowm Image][5]
136 | Photo by John Doe
137 |
138 | *Bigger Images*?
139 |
140 | {% highlight raw %}
141 | ![Markdowm Image][/image/url]{: class="bigger-image" }
142 | {% endhighlight %}
143 |
144 | ![Markdowm Image][5]{: class="bigger-image" }
145 |
146 | ---
147 |
148 | ## Code
149 |
150 | A HTML Example:
151 |
152 | {% highlight html %}
153 |
154 |
155 |
156 |
157 | Document
158 |
159 |
160 |
Just a test
161 |
162 |
163 | {% endhighlight %}
164 |
165 | A CSS Example:
166 |
167 | {% highlight css %}
168 | pre {
169 | padding: 10px;
170 | font-size: .8em;
171 | white-space: pre;
172 | }
173 |
174 | pre, table {
175 | width: 100%;
176 | }
177 |
178 | code, pre, tt {
179 | font-family: Monaco, Consolas, Inconsolata, monospace, sans-serif;
180 | background: rgba(0,0,0,.05);
181 | }
182 | {% endhighlight %}
183 |
184 | A JS Example:
185 |
186 | {% highlight js %}
187 | // Sticky Header
188 | $(window).scroll(function() {
189 |
190 | if ($(window).scrollTop() > 900 && !$("body").hasClass('show-menu')) {
191 | $('#hamburguer__open').fadeOut('fast');
192 | } else if (!$("body").hasClass('show-menu')) {
193 | $('#hamburguer__open').fadeIn('fast');
194 | }
195 |
196 | });
197 | {% endhighlight %}
198 |
199 | [1]: https://daringfireball.net/projects/markdown/
200 | [2]: https://www.fileformat.info/info/unicode/char/2163/index.htm
201 | [3]: https://daringfireball.net/projects/markdown/basics
202 | [4]: https://daringfireball.net/projects/markdown/syntax
203 | [5]: https://kune.fr/wp-content/uploads/2013/10/ghost-blog.jpg
204 |
--------------------------------------------------------------------------------
/_sass/base/normalize.scss:
--------------------------------------------------------------------------------
1 | /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2 |
3 | /* Document
4 | ========================================================================== */
5 |
6 | /**
7 | * 1. Correct the line height in all browsers.
8 | * 2. Prevent adjustments of font size after orientation changes in iOS.
9 | */
10 |
11 | html {
12 | line-height: 1.15; /* 1 */
13 | -webkit-text-size-adjust: 100%; /* 2 */
14 | }
15 |
16 | /* Sections
17 | ========================================================================== */
18 |
19 | /**
20 | * Remove the margin in all browsers.
21 | */
22 |
23 | body {
24 | margin: 0;
25 | }
26 |
27 | /**
28 | * Render the `main` element consistently in IE.
29 | */
30 |
31 | main {
32 | display: block;
33 | }
34 |
35 | /**
36 | * Correct the font size and margin on `h1` elements within `section` and
37 | * `article` contexts in Chrome, Firefox, and Safari.
38 | */
39 |
40 | h1 {
41 | font-size: 2em;
42 | margin: 0.67em 0;
43 | }
44 |
45 | /* Grouping content
46 | ========================================================================== */
47 |
48 | /**
49 | * 1. Add the correct box sizing in Firefox.
50 | * 2. Show the overflow in Edge and IE.
51 | */
52 |
53 | hr {
54 | box-sizing: content-box; /* 1 */
55 | height: 0; /* 1 */
56 | overflow: visible; /* 2 */
57 | }
58 |
59 | /**
60 | * 1. Correct the inheritance and scaling of font size in all browsers.
61 | * 2. Correct the odd `em` font sizing in all browsers.
62 | */
63 |
64 | pre {
65 | font-family: monospace, monospace; /* 1 */
66 | font-size: 1em; /* 2 */
67 | }
68 |
69 | /* Text-level semantics
70 | ========================================================================== */
71 |
72 | /**
73 | * Remove the gray background on active links in IE 10.
74 | */
75 |
76 | a {
77 | background-color: transparent;
78 | }
79 |
80 | /**
81 | * 1. Remove the bottom border in Chrome 57-
82 | * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
83 | */
84 |
85 | abbr[title] {
86 | border-bottom: none; /* 1 */
87 | text-decoration: underline; /* 2 */
88 | text-decoration: underline dotted; /* 2 */
89 | }
90 |
91 | /**
92 | * Add the correct font weight in Chrome, Edge, and Safari.
93 | */
94 |
95 | b,
96 | strong {
97 | font-weight: bolder;
98 | }
99 |
100 | /**
101 | * 1. Correct the inheritance and scaling of font size in all browsers.
102 | * 2. Correct the odd `em` font sizing in all browsers.
103 | */
104 |
105 | code,
106 | kbd,
107 | samp {
108 | font-family: monospace, monospace; /* 1 */
109 | font-size: 1em; /* 2 */
110 | }
111 |
112 | /**
113 | * Add the correct font size in all browsers.
114 | */
115 |
116 | small {
117 | font-size: 80%;
118 | }
119 |
120 | /**
121 | * Prevent `sub` and `sup` elements from affecting the line height in
122 | * all browsers.
123 | */
124 |
125 | sub,
126 | sup {
127 | font-size: 75%;
128 | line-height: 0;
129 | position: relative;
130 | vertical-align: baseline;
131 | }
132 |
133 | sub {
134 | bottom: -0.25em;
135 | }
136 |
137 | sup {
138 | top: -0.5em;
139 | }
140 |
141 | /* Embedded content
142 | ========================================================================== */
143 |
144 | /**
145 | * Remove the border on images inside links in IE 10.
146 | */
147 |
148 | img {
149 | border-style: none;
150 | }
151 |
152 | /* Forms
153 | ========================================================================== */
154 |
155 | /**
156 | * 1. Change the font styles in all browsers.
157 | * 2. Remove the margin in Firefox and Safari.
158 | */
159 |
160 | button,
161 | input,
162 | optgroup,
163 | select,
164 | textarea {
165 | font-family: inherit; /* 1 */
166 | font-size: 100%; /* 1 */
167 | line-height: 1.15; /* 1 */
168 | margin: 0; /* 2 */
169 | }
170 |
171 | /**
172 | * Show the overflow in IE.
173 | * 1. Show the overflow in Edge.
174 | */
175 |
176 | button,
177 | input { /* 1 */
178 | overflow: visible;
179 | }
180 |
181 | /**
182 | * Remove the inheritance of text transform in Edge, Firefox, and IE.
183 | * 1. Remove the inheritance of text transform in Firefox.
184 | */
185 |
186 | button,
187 | select { /* 1 */
188 | text-transform: none;
189 | }
190 |
191 | /**
192 | * Correct the inability to style clickable types in iOS and Safari.
193 | */
194 |
195 | button,
196 | [type="button"],
197 | [type="reset"],
198 | [type="submit"] {
199 | -webkit-appearance: button;
200 | }
201 |
202 | /**
203 | * Remove the inner border and padding in Firefox.
204 | */
205 |
206 | button::-moz-focus-inner,
207 | [type="button"]::-moz-focus-inner,
208 | [type="reset"]::-moz-focus-inner,
209 | [type="submit"]::-moz-focus-inner {
210 | border-style: none;
211 | padding: 0;
212 | }
213 |
214 | /**
215 | * Restore the focus styles unset by the previous rule.
216 | */
217 |
218 | button:-moz-focusring,
219 | [type="button"]:-moz-focusring,
220 | [type="reset"]:-moz-focusring,
221 | [type="submit"]:-moz-focusring {
222 | outline: 1px dotted ButtonText;
223 | }
224 |
225 | /**
226 | * Correct the padding in Firefox.
227 | */
228 |
229 | fieldset {
230 | padding: 0.35em 0.75em 0.625em;
231 | }
232 |
233 | /**
234 | * 1. Correct the text wrapping in Edge and IE.
235 | * 2. Correct the color inheritance from `fieldset` elements in IE.
236 | * 3. Remove the padding so developers are not caught out when they zero out
237 | * `fieldset` elements in all browsers.
238 | */
239 |
240 | legend {
241 | box-sizing: border-box; /* 1 */
242 | color: inherit; /* 2 */
243 | display: table; /* 1 */
244 | max-width: 100%; /* 1 */
245 | padding: 0; /* 3 */
246 | white-space: normal; /* 1 */
247 | }
248 |
249 | /**
250 | * Add the correct vertical alignment in Chrome, Firefox, and Opera.
251 | */
252 |
253 | progress {
254 | vertical-align: baseline;
255 | }
256 |
257 | /**
258 | * Remove the default vertical scrollbar in IE 10+.
259 | */
260 |
261 | textarea {
262 | overflow: auto;
263 | }
264 |
265 | /**
266 | * 1. Add the correct box sizing in IE 10.
267 | * 2. Remove the padding in IE 10.
268 | */
269 |
270 | [type="checkbox"],
271 | [type="radio"] {
272 | box-sizing: border-box; /* 1 */
273 | padding: 0; /* 2 */
274 | }
275 |
276 | /**
277 | * Correct the cursor style of increment and decrement buttons in Chrome.
278 | */
279 |
280 | [type="number"]::-webkit-inner-spin-button,
281 | [type="number"]::-webkit-outer-spin-button {
282 | height: auto;
283 | }
284 |
285 | /**
286 | * 1. Correct the odd appearance in Chrome and Safari.
287 | * 2. Correct the outline style in Safari.
288 | */
289 |
290 | [type="search"] {
291 | -webkit-appearance: textfield; /* 1 */
292 | outline-offset: -2px; /* 2 */
293 | }
294 |
295 | /**
296 | * Remove the inner padding in Chrome and Safari on macOS.
297 | */
298 |
299 | [type="search"]::-webkit-search-decoration {
300 | -webkit-appearance: none;
301 | }
302 |
303 | /**
304 | * 1. Correct the inability to style clickable types in iOS and Safari.
305 | * 2. Change font properties to `inherit` in Safari.
306 | */
307 |
308 | ::-webkit-file-upload-button {
309 | -webkit-appearance: button; /* 1 */
310 | font: inherit; /* 2 */
311 | }
312 |
313 | /* Interactive
314 | ========================================================================== */
315 |
316 | /*
317 | * Add the correct display in Edge, IE 10+, and Firefox.
318 | */
319 |
320 | details {
321 | display: block;
322 | }
323 |
324 | /*
325 | * Add the correct display in all browsers.
326 | */
327 |
328 | summary {
329 | display: list-item;
330 | }
331 |
332 | /* Misc
333 | ========================================================================== */
334 |
335 | /**
336 | * Add the correct display in IE 10+.
337 | */
338 |
339 | template {
340 | display: none;
341 | }
342 |
343 | /**
344 | * Add the correct display in IE 10.
345 | */
346 |
347 | [hidden] {
348 | display: none;
349 | }
350 |
--------------------------------------------------------------------------------
/_posts/2015-02-24-markdown-extra-components.markdown:
--------------------------------------------------------------------------------
1 | ---
2 | title: "Markdown Extra Components"
3 | layout: post
4 | date: 2016-02-24 22:48
5 | image: /assets/images/markdown.jpg
6 | headerImage: false
7 | tag:
8 | - markdown
9 | - components
10 | - extra
11 | category: blog
12 | author: jamesfoster
13 | description: Markdown summary with different options
14 | ---
15 |
16 | ## Summary:
17 |
18 | You can pick as item to see how to apply in markdown.
19 |
20 | #### Especial Elements
21 | - [Evidence](#evidence)
22 | - [Side-by-Side](#side-by-side)
23 | - [Star](#star)
24 | - [Especial Breaker](#especial-breaker)
25 | - [Spoiler](#spoiler)
26 |
27 | #### External Elements
28 | - [Gist](#gist)
29 | - [Codepen](#codepen)
30 | - [Slideshare](#slideshare)
31 | - [Videos](#videos)
32 |
33 | ---
34 |
35 | ## Evidence
36 |
37 | You can try the evidence!
38 |
39 | Paragraphs can be written like so. A paragraph is the basic block of Markdown. A paragraph is what text will turn into when there is no reason it should become anything else.
40 |
41 | {% highlight html %}
42 | Paragraphs can be written like so. A paragraph is the basic block of Markdown. A paragraph is what text will turn into when there is no reason it should become anything else.
43 | {% endhighlight %}
44 |
45 | ---
46 |
47 | ## Side-by-side
48 |
49 | Like the [Medium](https://medium.com/) component.
50 |
51 | **Image** on the left and **Text** on the right:
52 |
53 | {% highlight html %}
54 |
55 |
56 |
57 | Photo by John Doe
58 |
59 |
60 |
61 |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
62 |
63 |
64 | {% endhighlight %}
65 |
66 |
67 |
68 |
69 | Photo by John Doe
70 |
71 |
72 |
73 |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
74 |
75 |
76 |
77 | **Text** on the left and **Image** on the right:
78 |
79 | {% highlight html %}
80 |
81 |
82 |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
83 |
84 |
85 |
86 |
87 | Photo by John Doe
88 |
89 |
90 | {% endhighlight %}
91 |
92 |
93 |
94 |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
95 |
96 |
97 |
98 |
99 | Photo by John Doe
100 |
101 |
102 |
103 | ---
104 |
105 | ## Star
106 |
107 | You can give evidence to a post. Just add the tag to the markdown file.
108 |
109 | {% highlight raw %}
110 | star: true
111 | {% endhighlight %}
112 |
113 | ---
114 |
115 | ## Especial Breaker
116 |
117 | You can add a especial *hr* to your text.
118 |
119 | {% highlight html %}
120 |
121 | {% endhighlight %}
122 |
123 |
124 |
125 | ---
126 |
127 | ## Spoiler
128 |
129 | You can add an especial hidden content that appears on hover.
130 |
131 | {% highlight html %}
132 |
your content
133 | {% endhighlight %}
134 |
135 |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.