Skip to content

Commit e3070c1

Browse files
committed
Synchronize index example. Don't justify headers unless explicitly requested.
1 parent cd57dfa commit e3070c1

2 files changed

Lines changed: 29 additions & 9 deletions

File tree

_sass/layout/content.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,15 @@ $content-title-line-height: 1.2;
175175

176176
.justify {
177177
text-align: justify;
178+
h1, h2, h3, h4, h5, h6 {
179+
text-align: initial;
180+
}
181+
}
182+
183+
h1, h2, h3, h4, h5, h6{
184+
&.justify{
185+
text-align: justify;
186+
}
178187
}
179188

180189
.fullwidth {

index.markdown

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ description: >- # Supports markdown
77
This is the main project page and the page used to demonstrate how this works with all of the options for the Front Matter present
88
show-description: true
99

10-
# Add mathjax functionality
10+
# Add page-specifi mathjax functionality. Manage global setting in _config.yml
1111
mathjax: true
1212
# Automatically add permalinks to all headings
1313
# https://github.com/allejo/jekyll-anchor-headings
1414
autoanchor: true
1515

1616
# Preview image for social media cards
1717
image:
18-
path: /assets/img/twitter.png
18+
path: https://cdn.pixabay.com/photo/2019/09/05/01/11/mountainous-landscape-4452844_1280.jpg
1919
height: 100
20-
width: 100
21-
alt: Twitter Logo
20+
width: 256
21+
alt: Random Landscape
2222

2323
# Only the first author is supported by twitter metadata
2424
authors:
@@ -88,9 +88,9 @@ Try clicking this heading, this shows the manually defined header anchor, but if
8888
I made this look right by adding the `no-pre` class.
8989
If you don't include `markdown="1"` it will fail to render any markdown inside.
9090

91-
You can also make fullwidth embeds
91+
You can also make fullwidth embeds (this doesn't actually link to any video)
9292
<div class="fullwidth">
93-
<video controls="" width="100%" style="background-color:black;"></video>
93+
<video controls="" style="background-color:black;width:100%;height:auto;aspect-ratio:16/9;"></video>
9494
</div>
9595

9696
<div markdown="1" class="content-block grey justify">
@@ -144,9 +144,9 @@ If you include the - at the start of end of such a line, it say to discard all w
144144
In order to keep the comma there, we added the -.
145145
This is what happens:
146146
{% include util/icons icon='github' icon-library='simpleicons' %}
147-
, when you don't have it.
147+
, when you don't have it (notice the space).
148148

149-
And if you have mathjax enabled in `_config.yml`, you can even add latex:
149+
And if you have mathjax enabled in `_config.yml` or in the Front Matter as it is here, you can even add latex:
150150

151151
$$
152152
\begin{align*}
@@ -165,6 +165,17 @@ $$
165165
\end{align*}
166166
$$
167167

168+
You can also treat a section of text as a block, and use kramdown's block attribution methods to change fonts.
169+
You can see at the end of this section in the markdown that I do just that
170+
{: class="cabin"}
171+
172+
<div markdown="1" class="content-block grey justify">
173+
# 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
174+
175+
# 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
176+
{: class="justify"}
177+
</div>
178+
168179
<div markdown="1" class="content-block grey justify">
169180
# Citation
170181

@@ -181,4 +192,4 @@ $$
181192
pages = "286--295"
182193
}
183194
```
184-
</div>
195+
</div>

0 commit comments

Comments
 (0)