Skip to content

Commit

Permalink
Merge pull request #44 from kentnek/kent-raw-html
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewies authored Jun 23, 2020
2 parents 7eb26ab + 8e032ad commit 081033d
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 2 deletions.
16 changes: 16 additions & 0 deletions assets/scss/pages/post.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import '../main';
@import '../partials/github-syntax-highlighting';
@import '../partials/colors';

.post {
width: 100%;
Expand Down Expand Up @@ -236,3 +237,18 @@ footer {
margin: 1.5rem auto !important;
width: 375px !important;
}

table {
max-width: 100%;
border-spacing: 0;

thead {
background: $lightGrey;
}

th,
td {
padding: 0.5em 1em;
border: 1px double $greyTableBorder;
}
}
2 changes: 2 additions & 0 deletions assets/scss/partials/_colors.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
$black: #111;
$lightGrey: #F7F7F7;
$greyTableBorder: #EEEEEE;
$grey: #9B9B9B;
$darkGrey: #717171;
$white: #fff;
Expand Down
31 changes: 29 additions & 2 deletions assets/scss/partials/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,34 @@ ol {
}

blockquote {
&::before {
position: absolute;
content: '\201C';

font-size: 6em;
font-family: 'Roboto', serif;
margin-top: 0.10em;;
margin-left: -0.2em;

z-index: -1;
color: darken($white, 7%);
}

margin-top: $leading;
margin-bottom: $leading;
line-height: $leading;
color: $darkGrey;
font-style: italic;
color: $black;

cite {
&::before {
content: ""
}

font-style: italic;
font-size: .95em;
color: $darkGrey;
}

}

pre {
Expand Down Expand Up @@ -117,3 +140,7 @@ pre code {
.lead {
font-size: $scale * 1rem;
}

abbr[title] {
text-decoration: underline double;
}
4 changes: 4 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ themesDir = "../../"
[markup]
[markup.highlight]
codeFences = false

# Set to false to disallow raw HTML in markdown files
[markup.goldmark.renderer]
unsafe = true

# Controls the navigation
[[menu.main]]
Expand Down
8 changes: 8 additions & 0 deletions exampleSite/content/blog/markdown-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ The blockquote element represents content that is quoted from another source, op
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
> **Note** that you can use *Markdown syntax* within a blockquote.
#### Blockquote with attribution

> Simplicity is the ultimate sophistication.
> <cite>Leonardo da Vinci[^1]</cite>
[^1]: The above quote is often attributed to Leonardo da Vinci but there is no concrete evidence to support this.


## Tables

Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
Expand Down

0 comments on commit 081033d

Please sign in to comment.