Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2) updated opti-image and added transitions 3) tweaks to newsletter ui 4) markdown component
- Loading branch information
Daniel Kelly
committed
Jul 13, 2019
1 parent
23849e8
commit 405535f
Showing
21 changed files
with
225 additions
and
58 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 @@ | ||
../assets/modules/opti-image/dist/index.js |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@keyframes blurIn { | ||
@keyframes blurInGrayscale { | ||
0%{ | ||
filter:blur(40px) grayscale(0); | ||
} | ||
|
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
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
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
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,39 @@ | ||
<template> | ||
<component :is="tag" class="content" v-html="content" /> | ||
</template> | ||
|
||
<script> | ||
import MarkdownIt from 'markdown-it' | ||
import hljs from 'highlight.js' | ||
export default { | ||
name: 'Markdown', | ||
props: { | ||
tag: { type: String, default: 'article' }, | ||
markdown: { type: String, required: true } | ||
}, | ||
computed: { | ||
content() { | ||
const md = new MarkdownIt({ | ||
linkify: true, | ||
typographer: true, | ||
highlight: (str, lang) => { | ||
if (lang && hljs.getLanguage(lang)) { | ||
try { | ||
return hljs.highlight(lang, str).value | ||
} catch (__) {} | ||
} | ||
return '' // use external default escaping | ||
} | ||
}) | ||
.use(require('markdown-it-deflist')) | ||
.use(require('markdown-it-sub')) | ||
.use(require('markdown-it-sup')) | ||
.use(require('markdown-it-footnote')) | ||
return md.render(this.markdown) | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped></style> |
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
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
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
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
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,5 @@ | ||
--- | ||
title: About | ||
subtitle: This is the subtitle | ||
featureImage: https://picsum.photos/1800/900 | ||
--- |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
layout: blog | ||
title: "My Second Post" | ||
subtitle: "Hardy" | ||
title: My Second Post | ||
subtitle: Hardy | ||
date: 1999-12-31 11:59:59 -0800 | ||
featureImage: "https://picsum.photos/1800/900" | ||
featureImage: https://picsum.photos/1800/900 | ||
--- | ||
This is the post body, where I write about our last chance to party before the Y2K bug destroys us all. |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
layout: blog | ||
title: "My Third Post" | ||
subtitle: "Hardy" | ||
title: My Third Post | ||
subtitle: Hardy | ||
date: 1999-12-31 11:59:59 -0800 | ||
featureImage: "https://picsum.photos/1800/900" | ||
featureImage: https://picsum.photos/1800/900 | ||
--- | ||
This is the post body, where I write about our last chance to party before the Y2K bug destroys us all. |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.