Added header links to markdown files

This commit is contained in:
Corbin Crutchley
2019-06-29 03:52:33 -07:00
parent 0005a90cba
commit e77350b020
3 changed files with 25 additions and 51 deletions

View File

@@ -5,7 +5,7 @@ module.exports = {
siteUrl: `https://unicorn-utterances.com/`,
disqusShortname: "unicorn-utterances",
repoPath: "crutchcorn/unicorn-utterances",
relativeToPosts: "/content/blog",
relativeToPosts: "/content/blog"
},
plugins: [
{
@@ -67,9 +67,18 @@ module.exports = {
wrapperStyle: `margin-bottom: 1.0725rem`,
},
},
{
resolve: `gatsby-remark-autolink-headers`,
options: {
offsetY: `100`,
icon: `<svg aria-hidden="true" height="20" version="1.1" viewBox="0 0 16 16" width="20"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg>`,
maintainCase: true,
removeAccents: true,
enableCustomId: true
},
},
`gatsby-remark-prismjs`,
`gatsby-remark-copy-linked-files`,
`gatsby-remark-smartypants`,
`gatsby-remark-copy-linked-files`
],
},
},

59
package-lock.json generated
View File

@@ -12190,6 +12190,18 @@
"warning": "^3.0.0"
}
},
"gatsby-remark-autolink-headers": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/gatsby-remark-autolink-headers/-/gatsby-remark-autolink-headers-2.1.0.tgz",
"integrity": "sha512-18pwSTZ11GoL08hll8kaMEtcd/HLL3/WlxxBjQvxmN4YznONVsjCnLGtmSWQmg16jJYYekrQH1A2cNf9qg6Ogg==",
"requires": {
"@babel/runtime": "^7.0.0",
"github-slugger": "^1.1.1",
"lodash": "^4.17.11",
"mdast-util-to-string": "^1.0.2",
"unist-util-visit": "^1.3.0"
}
},
"gatsby-remark-copy-linked-files": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/gatsby-remark-copy-linked-files/-/gatsby-remark-copy-linked-files-2.1.0.tgz",
@@ -12273,17 +12285,6 @@
"unist-util-visit": "^1.3.0"
}
},
"gatsby-remark-smartypants": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/gatsby-remark-smartypants/-/gatsby-remark-smartypants-2.1.0.tgz",
"integrity": "sha512-lh4uIewueTtJ2D1CysbDxWMbv4R+k3/KQgs1/yHhOXrnCUQ+2YiUvQYFmyHTMS6k+ShBpDE4x0gqptkzvCgIhg==",
"requires": {
"@babel/runtime": "^7.0.0",
"retext": "^5.0.0",
"retext-smartypants": "^3.0.0",
"unist-util-visit": "^1.3.0"
}
},
"gatsby-source-filesystem": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/gatsby-source-filesystem/-/gatsby-source-filesystem-2.1.1.tgz",
@@ -20466,16 +20467,6 @@
"resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz",
"integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg=="
},
"retext": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/retext/-/retext-5.0.0.tgz",
"integrity": "sha1-XZAYxKZ31hA8FCNi129Q6x05i/Y=",
"requires": {
"retext-latin": "^2.0.0",
"retext-stringify": "^2.0.0",
"unified": "^6.0.0"
}
},
"retext-english": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/retext-english/-/retext-english-3.0.3.tgz",
@@ -20485,32 +20476,6 @@
"unherit": "^1.0.4"
}
},
"retext-latin": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/retext-latin/-/retext-latin-2.0.3.tgz",
"integrity": "sha512-YIOkXHopF4wmag2X3X0xC+H2hT3qzl24FyoGLVGXRUzT8qxOWPCOBiJO94FmXYofhZbiiNqjcU98xWXouxAcLw==",
"requires": {
"parse-latin": "^4.0.0",
"unherit": "^1.0.4"
}
},
"retext-smartypants": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/retext-smartypants/-/retext-smartypants-3.0.3.tgz",
"integrity": "sha512-/0fIipYayOvvucn3yjxvWwyT9P6p8gbpqdqUQNs1+L7av2hxatmiA9sk+fygJSDn5OXRyhBzcezvTbEmEabfIQ==",
"requires": {
"nlcst-to-string": "^2.0.0",
"unist-util-visit": "^1.0.0"
}
},
"retext-stringify": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/retext-stringify/-/retext-stringify-2.0.3.tgz",
"integrity": "sha512-VjOkvUI8MPILdJVwhJH74d+j0iCCbcR1M3fH7xJ0BGl/Ir7H6XEvS8cB9RS6zC/GfSXX+DDXyLmh7FnL0FL0Fw==",
"requires": {
"nlcst-to-string": "^2.0.0"
}
},
"retry": {
"version": "0.12.0",
"resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz",

View File

@@ -24,11 +24,11 @@
"gatsby-plugin-sass": "^2.1.0",
"gatsby-plugin-sharp": "^2.2.1",
"gatsby-plugin-transition-link": "^1.12.4",
"gatsby-remark-autolink-headers": "^2.1.0",
"gatsby-remark-copy-linked-files": "^2.1.0",
"gatsby-remark-images": "^3.1.2",
"gatsby-remark-prismjs": "^3.3.0",
"gatsby-remark-responsive-iframe": "^2.2.1",
"gatsby-remark-smartypants": "^2.1.0",
"gatsby-source-filesystem": "^2.1.1",
"gatsby-transformer-json": "^2.2.0",
"gatsby-transformer-remark": "^2.5.0",