Skip to content

Commit

Permalink
Merge branch 'node' of https://github.com/Auxtal/Website into node
Browse files Browse the repository at this point in the history
  • Loading branch information
Auxtal committed Aug 31, 2023
2 parents 9cc37e3 + ee3a5b2 commit ecedbb3
Show file tree
Hide file tree
Showing 107 changed files with 6,910 additions and 7,644 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.unlighthouse
.gitignore
.github
security.md
Expand Down
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.unlighthouse
/.svelte-kit
/.netlify
/package
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.unlighthouse
/.svelte-kit
/explorer
/.netlify
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/.unlighthouse
/.svelte-kit
/.netlify
/package
/build

tailwind.config.cjs
!.env.example
node_modules
.DS_Store
Expand Down
34 changes: 28 additions & 6 deletions mdsvex.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,34 @@
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import rehypeExternalLinks from "rehype-external-links";
import rehypeSlug from "rehype-slug";

import { defineMDSveXConfig as defineConfig } from "mdsvex";

const config = defineConfig({
extensions: [".svelte.md", ".md", ".svx"],
layout: {
blog: "./src/lib/components/BlogLayout.svelte"
},
remarkPlugins: [],
rehypePlugins: [],
extensions: [".md"],
rehypePlugins: [
rehypeExternalLinks,
rehypeSlug,
[
rehypeAutolinkHeadings,
{
behavior: "prepend",
properties: { className: ["heading-link"], title: "Permalink", ariaHidden: "true" },
content: {
type: "element",
tagName: "span",
properties: {},
children: [
{
type: "text",
value:
'<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 448 512"><path fill="currentColor" d="M181.3 32.4c17.4 2.9 29.2 19.4 26.3 36.8l-9.8 58.8h95.1l11.5-69.3c2.9-17.4 19.4-29.2 36.8-26.3s29.2 19.4 26.3 36.8l-9.7 58.8H416c17.7 0 32 14.3 32 32s-14.3 32-32 32h-68.9l-21.3 128H384c17.7 0 32 14.3 32 32s-14.3 32-32 32h-68.9l-11.5 69.3c-2.9 17.4-19.4 29.2-36.8 26.3s-29.2-19.4-26.3-36.8l9.8-58.7h-95.2l-11.5 69.3c-2.9 17.4-19.4 29.2-36.8 26.3s-29.2-19.4-26.3-36.8l9.7-58.9H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h68.9l21.3-128H64c-17.7 0-32-14.3-32-32s14.3-32 32-32h68.9l11.5-69.3c2.9-17.4 19.4-29.2 36.8-26.3zm5.8 159.6l-21.3 128h95.1l21.3-128h-95.1z"/></svg>'
}
]
}
}
]
],
smartypants: {
dashes: "oldschool"
}
Expand Down
Loading

0 comments on commit ecedbb3

Please sign in to comment.