generated from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
146c763
commit 0385ee1
Showing
27 changed files
with
1,091 additions
and
0 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,31 @@ | ||
--- | ||
layout: post | ||
title: a post with formatting and links | ||
date: 2015-03-15 16:40:16 | ||
description: march & april, looking forward to summer | ||
tags: formatting links | ||
categories: sample-posts | ||
|
||
--- | ||
Jean shorts raw denim Vice normcore, art party High Life PBR skateboard stumptown vinyl kitsch. Four loko meh 8-bit, tousled banh mi tilde forage Schlitz dreamcatcher twee 3 wolf moon. Chambray asymmetrical paleo salvia, sartorial umami four loko master cleanse drinking vinegar brunch. [Pinterest](https://www.pinterest.com) DIY authentic Schlitz, hoodie Intelligentsia butcher trust fund brunch shabby chic Kickstarter forage flexitarian. Direct trade <a href="https://en.wikipedia.org/wiki/Cold-pressed_juice">cold-pressed</a> meggings stumptown plaid, pop-up taxidermy. Hoodie XOXO fingerstache scenester Echo Park. Plaid ugh Wes Anderson, freegan pug selvage fanny pack leggings pickled food truck DIY irony Banksy. | ||
|
||
#### Hipster list | ||
<ul> | ||
<li>brunch</li> | ||
<li>fixie</li> | ||
<li>raybans</li> | ||
<li>messenger bag</li> | ||
</ul> | ||
|
||
Hoodie Thundercats retro, tote bag 8-bit Godard craft beer gastropub. Truffaut Tumblr taxidermy, raw denim Kickstarter sartorial dreamcatcher. Quinoa chambray slow-carb salvia readymade, bicycle rights 90's yr typewriter selfies letterpress cardigan vegan. | ||
|
||
<hr> | ||
|
||
Pug heirloom High Life vinyl swag, single-origin coffee four dollar toast taxidermy reprehenderit fap distillery master cleanse locavore. Est anim sapiente leggings Brooklyn ea. Thundercats locavore excepteur veniam eiusmod. Raw denim Truffaut Schlitz, migas sapiente Portland VHS twee Bushwick Marfa typewriter retro id keytar. | ||
|
||
<blockquote> | ||
We do not grow absolutely, chronologically. We grow sometimes in one dimension, and not in another, unevenly. We grow partially. We are relative. We are mature in one realm, childish in another. | ||
—Anais Nin | ||
</blockquote> | ||
|
||
Fap aliqua qui, scenester pug Echo Park polaroid irony shabby chic ex cardigan church-key Odd Future accusamus. Blog stumptown sartorial squid, gastropub duis aesthetic Truffaut vero. Pinterest tilde twee, odio mumblecore jean shorts lumbersexual. |
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,48 @@ | ||
--- | ||
layout: post | ||
title: a post with images | ||
date: 2015-05-15 21:01:00 | ||
description: this is what included images could look like | ||
tags: formatting images | ||
categories: sample-posts | ||
thumbnail: assets/img/9.jpg | ||
--- | ||
This is an example post with image galleries. | ||
|
||
<div class="row mt-3"> | ||
<div class="col-sm mt-3 mt-md-0"> | ||
{% include figure.html path="assets/img/9.jpg" class="img-fluid rounded z-depth-1" %} | ||
</div> | ||
<div class="col-sm mt-3 mt-md-0"> | ||
{% include figure.html path="assets/img/7.jpg" class="img-fluid rounded z-depth-1" %} | ||
</div> | ||
</div> | ||
<div class="caption"> | ||
A simple, elegant caption looks good between image rows, after each row, or doesn't have to be there at all. | ||
</div> | ||
|
||
Images can be made zoomable. | ||
Simply add `data-zoomable` to `<img>` tags that you want to make zoomable. | ||
|
||
<div class="row mt-3"> | ||
<div class="col-sm mt-3 mt-md-0"> | ||
{% include figure.html path="assets/img/8.jpg" class="img-fluid rounded z-depth-1" zoomable=true %} | ||
</div> | ||
<div class="col-sm mt-3 mt-md-0"> | ||
{% include figure.html path="assets/img/10.jpg" class="img-fluid rounded z-depth-1" zoomable=true %} | ||
</div> | ||
</div> | ||
|
||
The rest of the images in this post are all zoomable, arranged into different mini-galleries. | ||
|
||
<div class="row mt-3"> | ||
<div class="col-sm mt-3 mt-md-0"> | ||
{% include figure.html path="assets/img/11.jpg" class="img-fluid rounded z-depth-1" zoomable=true %} | ||
</div> | ||
<div class="col-sm mt-3 mt-md-0"> | ||
{% include figure.html path="assets/img/12.jpg" class="img-fluid rounded z-depth-1" zoomable=true %} | ||
</div> | ||
<div class="col-sm mt-3 mt-md-0"> | ||
{% include figure.html path="assets/img/7.jpg" class="img-fluid rounded z-depth-1" zoomable=true %} | ||
</div> | ||
</div> |
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,94 @@ | ||
--- | ||
layout: post | ||
title: a post with code | ||
date: 2015-07-15 15:09:00 | ||
description: an example of a blog post with some code | ||
tags: formatting code | ||
categories: sample-posts | ||
featured: true | ||
--- | ||
This theme implements a built-in Jekyll feature, the use of Rouge, for syntax highlighting. | ||
It supports more than 100 languages. | ||
This example is in C++. | ||
All you have to do is wrap your code in markdown code tags: | ||
|
||
````markdown | ||
```c++ | ||
code code code | ||
``` | ||
```` | ||
|
||
```c++ | ||
int main(int argc, char const \*argv[]) | ||
{ | ||
string myString; | ||
|
||
cout << "input a string: "; | ||
getline(cin, myString); | ||
int length = myString.length(); | ||
|
||
char charArray = new char * [length]; | ||
|
||
charArray = myString; | ||
for(int i = 0; i < length; ++i){ | ||
cout << charArray[i] << " "; | ||
} | ||
|
||
return 0; | ||
} | ||
``` | ||
For displaying code in a list item, you have to be aware of the indentation, as stated in this [Stackoverflow answer](https://stackoverflow.com/questions/34987908/embed-a-code-block-in-a-list-item-with-proper-indentation-in-kramdown/38090598#38090598). You must indent your code by **(3 * bullet_indent_level)** spaces. This is because kramdown (the markdown engine used by Jekyll) indentation for the code block in lists is determined by the column number of the first non-space character after the list item marker. For example: | ||
```markdown | ||
1. We can put fenced code blocks inside nested bullets, too. | ||
1. Like this: | ||
```c | ||
printf("Hello, World!"); | ||
``` | ||
|
||
2. The key is to indent your fenced block in the same line as the first character of the line. | ||
``` | ||
Which displays: | ||
1. We can put fenced code blocks inside nested bullets, too. | ||
1. Like this: | ||
```c | ||
printf("Hello, World!"); | ||
``` | ||
|
||
2. The key is to indent your fenced block in the same line as the first character of the line. | ||
|
||
By default, it does not display line numbers. If you want to display line numbers for every code block, you can set `kramdown.syntax_highlighter_opts.block.line_numbers` to true in your `_config.yml` file. | ||
|
||
If you want to display line numbers for a specific code block, all you have to do is wrap your code in a liquid tag: | ||
|
||
{% raw %} | ||
{% highlight c++ linenos %} <br/> code code code <br/> {% endhighlight %} | ||
{% endraw %} | ||
|
||
The keyword `linenos` triggers display of line numbers. | ||
Produces something like this: | ||
|
||
{% highlight c++ linenos %} | ||
|
||
int main(int argc, char const \*argv[]) | ||
{ | ||
string myString; | ||
|
||
cout << "input a string: "; | ||
getline(cin, myString); | ||
int length = myString.length(); | ||
|
||
char charArray = new char * [length]; | ||
|
||
charArray = myString; | ||
for(int i = 0; i < length; ++i){ | ||
cout << charArray[i] << " "; | ||
} | ||
|
||
return 0; | ||
} | ||
|
||
{% endhighlight %} |
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,11 @@ | ||
--- | ||
layout: post | ||
title: a post with disqus comments | ||
date: 2015-10-20 11:59:00-0400 | ||
description: an example of a blog post with disqus comments | ||
tags: comments | ||
categories: sample-posts external-services | ||
disqus_comments: true | ||
related_posts: false | ||
--- | ||
This post shows how to add DISQUS comments. |
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,28 @@ | ||
--- | ||
layout: post | ||
title: a post with math | ||
date: 2015-10-20 11:12:00-0400 | ||
description: an example of a blog post with some math | ||
tags: formatting math | ||
categories: sample-posts | ||
related_posts: false | ||
--- | ||
This theme supports rendering beautiful math in inline and display modes using [MathJax 3](https://www.mathjax.org/) engine. You just need to surround your math expression with `$$`, like `$$ E = mc^2 $$`. If you leave it inside a paragraph, it will produce an inline expression, just like $$ E = mc^2 $$. | ||
|
||
To use display mode, again surround your expression with `$$` and place it as a separate paragraph. Here is an example: | ||
|
||
$$ | ||
\sum_{k=1}^\infty |\langle x, e_k \rangle|^2 \leq \|x\|^2 | ||
$$ | ||
|
||
You can also use `\begin{equation}...\end{equation}` instead of `$$` for display mode math. | ||
MathJax will automatically number equations: | ||
|
||
\begin{equation} | ||
\label{eq:cauchy-schwarz} | ||
\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) | ||
\end{equation} | ||
|
||
and by adding `\label{...}` inside the equation environment, we can now refer to the equation using `\eqref`. | ||
|
||
Note that MathJax 3 is [a major re-write of MathJax](https://docs.mathjax.org/en/latest/upgrading/whats-new-3.0.html) that brought a significant improvement to the loading and rendering speed, which is now [on par with KaTeX](http://www.intmath.com/cg5/katex-mathjax-comparison.php). |
Oops, something went wrong.