Section Break #
As you can see, the authors and link are just includes #
In other words, I can actually move them wherever I want, or place them here again. The data is provided by the front matter. Let’s try flipping the order.
There is quite a bit of flexibility to how you structure the text too. Here, I’m going to make a justified grey content block with the heading outside.
Content #
some text
Try clicking this heading, this shows the manually defined header anchor, but if you do this, you should do it for all headings.
I made this look right by adding the no-pre
class.
If you don’t include markdown="1"
it will fail to render any markdown inside.
You can also make fullwidth embeds (this doesn’t actually link to any video)
Topic inside of the content block #
Lorem ipsum dolor sit amet Consectetur adipiscing elit Integer molestie lorem at massa.
Topic outside of content block #
Lorem ipsum dolor sit amet Consectetur adipiscing elit Integer molestie lorem at massa.
This is how we can get the image at 100% #
And this is how we can get the image closer #
Lorem ipsum dolor sit amet Consectetur adipiscing elit Integer molestie lorem at massa.
It’s also possible to specify a new font for a specific section
See? 1 #
And you can also change it in the middle, though that’s a bit more problematic for other reasons.
To specify fonts, just use Google Fonts and update _data/fonts.yml
.
Any fonts you add as extra fonts at the bottom become usable fonts in the body of the post.
There are also tools to grab icons from other repos. Just use the following: , and you’ll be able to add icons from any library you have enabled that is supported.
This uses the liquid template engine for importing. If you include the - at the start of end of such a line, it say to discard all whitespace before or after. In order to keep the comma there, we added the -. This is what happens: , when you don’t have it (notice the space).
And if you have mathjax enabled in _config.yml
or in the Front Matter as it is here, you can even add latex:
You can also treat a section of text as a block, and use kramdown’s block attribution methods to change fonts. You can see at the end of this section in the markdown that I do just that
This is a really long heading block so I can see if justify breaks the heading, and make sure that headings don’t get justify unless they are explicitly classed with justify like the following heading #
This is the following really long heading block so I can see if justify breaks the heading, and make sure that only this heading is justified because it has the explicit tag #
Citation #
Insert whatever message
@article{nash51,
author = "Nash, John",
title = "Non-cooperative Games",
journal = "Annals of Mathematics",
year = 1951,
volume = "54",
number = "2",
pages = "286--295"
}