Skip to content

Commit 9a46709

Browse files
committed
GitHub flavored markdown for pages
1 parent 094d3f3 commit 9a46709

File tree

5 files changed

+419
-105
lines changed

5 files changed

+419
-105
lines changed

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,6 @@ exclude:
135135
collections:
136136
pages:
137137
output: true
138+
139+
# Markdown rendering
140+
markdown: kramdown

_layouts/page.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1+
---
2+
# Front matter comment to ensure Jekyll properly reads file.
3+
---
4+
15
<!DOCTYPE html>
26
<html lang="en-us">
37

48
{% include head.html %}
9+
<link rel="stylesheet" href="../githubmarkdown.css">
510

611
<body>
712
<div class="headerBackground subPageHeaderBackground">
813
<div class="container">
914
{% include header.html %}
10-
<article class="page markdownStyling">
11-
{{ content }}
15+
<article class="page">
16+
{{ content | markdownify }}
1217
</article>
1318
</div>
1419
{% include appstoreimages.html %}

_sass/base.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ a:active {
4646
// Shadows
4747
$drop-shadow: drop-shadow(0px 5px 10px rgba(#000, 0.1)) drop-shadow(0px 1px 1px rgba(#000, 0.2));
4848

49-
5049
// Various resets
5150
*,
5251
*::before,

_sass/layout.scss

Lines changed: 0 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -540,106 +540,4 @@ footer {
540540

541541
.hidden {
542542
display: none;
543-
}
544-
545-
/* Markdown Styling */
546-
.markdownStyling {
547-
margin-top: 30px;
548-
margin-bottom: 30px;
549-
}
550-
551-
.markdownStyling > *:first-child {
552-
margin-top: 0 !important;
553-
}
554-
555-
.markdownStyling > *:last-child {
556-
margin-bottom: 0 !important;
557-
}
558-
559-
.markdownStyling strong {
560-
color: rgba(#000, 1)
561-
}
562-
563-
.markdownStyling p {
564-
line-height: 150%;
565-
padding-bottom: 40px;
566-
color: rgba(#000, 0.6)
567-
}
568-
569-
.markdownStyling p:last-child {
570-
padding-bottom: 0px;
571-
}
572-
573-
.markdownStyling h1 {
574-
padding-top: 0px;
575-
padding-bottom: 20px;
576-
font-size: 4rem;
577-
}
578-
579-
.markdownStyling h2 {
580-
padding-top: 30px;
581-
padding-bottom: 10px;
582-
font-size: 2.5rem;
583-
}
584-
585-
.markdownStyling h3 {
586-
padding-top: 0px;
587-
padding-bottom: 10px;
588-
font-size: 1.8rem;
589-
}
590-
591-
.markdownStyling h4 {
592-
padding-top: 0px;
593-
padding-bottom: 8px;
594-
font-size: 1.5rem;
595-
font-weight: bold;
596-
}
597-
598-
.markdownStyling h5 {
599-
font-size: 1.2rem;
600-
font-weight: bold;
601-
}
602-
603-
.markdownStyling p {
604-
font-size: 1.8rem;
605-
}
606-
607-
.markdownStyling ul {
608-
line-height: 150%;
609-
padding-left: 20px;
610-
color: rgba(#000, 0.6);
611-
margin-bottom: 40px;
612-
}
613-
614-
.markdownStyling ol {
615-
font-size: 1.8rem;
616-
line-height: 150%;
617-
padding-left: 30px;
618-
color: rgba(#000, 0.6);
619-
margin-bottom: 40px;
620-
}
621-
622-
.markdownStyling li {
623-
font-size: 1.8rem;
624-
line-height: 150%;
625-
}
626-
627-
.markdownStyling ul li {
628-
padding-left: 0px;
629-
margin-left: 30px;
630-
margin-top: 10px;
631-
}
632-
633-
.markdownStyling ul li:first-child {
634-
margin-top: 0px;
635-
}
636-
637-
.markdownStyling ul li:before{
638-
padding-right: 10px;
639-
}
640-
641-
.markdownStyling li:last-child {
642-
line-height: 150%;
643-
margin-bottom: 0 !important;
644-
padding-bottom: 0 !important;
645543
}

0 commit comments

Comments
 (0)