This repository has been archived by the owner on Nov 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD: update with template and add favicon;
- Loading branch information
Showing
35 changed files
with
8,175 additions
and
70 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 |
---|---|---|
@@ -1,57 +1,108 @@ | ||
const container = require("markdown-it-container"); | ||
|
||
function createContainer(type, defaultTitle) { | ||
return [ | ||
container, | ||
type, | ||
{ | ||
render(tokens, idx) { | ||
const token = tokens[idx]; | ||
const info = token.info | ||
.trim() | ||
.slice(type.length) | ||
.trim(); | ||
const title = info || defaultTitle; | ||
if (token.nesting === 1) { | ||
return `<div class="${type} custom-block text-sm md:text-base"><p class="custom-block-title">${title}</p>\n`; | ||
} else { | ||
return `</div>\n`; | ||
} | ||
} | ||
} | ||
]; | ||
return [ | ||
container, | ||
type, | ||
{ | ||
render(tokens, idx) { | ||
const token = tokens[idx]; | ||
const info = token.info | ||
.trim() | ||
.slice(type.length) | ||
.trim(); | ||
const title = info || defaultTitle; | ||
if (token.nesting === 1) { | ||
return `<div class="${type} custom-block text-sm md:text-base"><p class="custom-block-title">${title}</p>\n`; | ||
} else { | ||
return `</div>\n`; | ||
} | ||
}, | ||
}, | ||
]; | ||
} | ||
|
||
module.exports = { | ||
base: "/", | ||
title: "Denis Tsoi", | ||
description: "Code to eat 🍞", | ||
postcss: { | ||
plugins: [ | ||
require("tailwindcss")("./tailwind.config.js"), | ||
require("autoprefixer") | ||
] | ||
}, | ||
themeConfig: { | ||
nav: [{ text: "cv", link: "/cv/" }, { text: "refugeek", link: "/rg/" }] | ||
}, | ||
markdown: { | ||
// options for markdown-it-anchor | ||
anchor: { permalink: false }, | ||
// options for markdown-it-toc | ||
toc: { includeLevel: [1, 2] }, | ||
extendMarkdown: md => { | ||
// use more markdown-it plugins! | ||
md.use(...createContainer("tip", "TIP")).use( | ||
...createContainer("job", "") | ||
); | ||
} | ||
}, | ||
configureWebpack: { | ||
resolve: { | ||
alias: { | ||
"@assets": "theme/assets/" | ||
} | ||
} | ||
} | ||
base: "/", | ||
title: "Denis Tsoi", | ||
description: "Code to eat 🍞", | ||
head: [ | ||
[ | ||
"link", | ||
{ | ||
rel: "apple-touch-icon", | ||
sizes: "180x180", | ||
href: "/assets/favicons/apple-touch-icon.png", | ||
}, | ||
], | ||
[ | ||
"link", | ||
{ | ||
rel: "icon", | ||
type: "image/png", | ||
sizes: "32x32", | ||
href: "/assets/favicons/favicon-32x32.png", | ||
}, | ||
], | ||
[ | ||
"link", | ||
{ | ||
rel: "icon", | ||
type: "image/png", | ||
sizes: "16x16", | ||
href: "/assets/favicons/favicon-16x16.png", | ||
}, | ||
], | ||
["link", { rel: "manifest", href: "/assets/favicons/site.webmanifest" }], | ||
[ | ||
"link", | ||
{ | ||
rel: "mask-icon", | ||
href: "/assets/favicons/safari-pinned-tab.svg", | ||
color: "#3a0839", | ||
}, | ||
], | ||
["link", { rel: "shortcut icon", href: "/assets/favicons/favicon.ico" }], | ||
["meta", { name: "msapplication-TileColor", content: "#3a0839" }], | ||
[ | ||
"meta", | ||
{ | ||
name: "msapplication-config", | ||
content: "/assets/favicons/browserconfig.xml", | ||
}, | ||
], | ||
["meta", { name: "theme-color", content: "#ffffff" }], | ||
], | ||
postcss: { | ||
plugins: [ | ||
require("tailwindcss")("./tailwind.config.js"), | ||
require("autoprefixer"), | ||
], | ||
}, | ||
themeConfig: { | ||
nav: [ | ||
{ text: "cv", link: "/cv/" }, | ||
{ text: "refugeek", link: "/rg/" }, | ||
{ text: "templates", link: "/templates/" }, | ||
], | ||
}, | ||
markdown: { | ||
// options for markdown-it-anchor | ||
anchor: { permalink: false }, | ||
// options for markdown-it-toc | ||
toc: { includeLevel: [1, 2] }, | ||
extendMarkdown: (md) => { | ||
// use more markdown-it plugins! | ||
md.use(...createContainer("tip", "TIP")).use( | ||
...createContainer("job", "") | ||
); | ||
}, | ||
}, | ||
configureWebpack: { | ||
resolve: { | ||
alias: { | ||
"@assets": "theme/assets/", | ||
}, | ||
}, | ||
}, | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<browserconfig><msapplication><tile><square70x70logo src="/ms-icon-70x70.png"/><square150x150logo src="/ms-icon-150x150.png"/><square310x310logo src="/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,41 @@ | ||
{ | ||
"name": "App", | ||
"icons": [ | ||
{ | ||
"src": "\/android-icon-36x36.png", | ||
"sizes": "36x36", | ||
"type": "image\/png", | ||
"density": "0.75" | ||
}, | ||
{ | ||
"src": "\/android-icon-48x48.png", | ||
"sizes": "48x48", | ||
"type": "image\/png", | ||
"density": "1.0" | ||
}, | ||
{ | ||
"src": "\/android-icon-72x72.png", | ||
"sizes": "72x72", | ||
"type": "image\/png", | ||
"density": "1.5" | ||
}, | ||
{ | ||
"src": "\/android-icon-96x96.png", | ||
"sizes": "96x96", | ||
"type": "image\/png", | ||
"density": "2.0" | ||
}, | ||
{ | ||
"src": "\/android-icon-144x144.png", | ||
"sizes": "144x144", | ||
"type": "image\/png", | ||
"density": "3.0" | ||
}, | ||
{ | ||
"src": "\/android-icon-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image\/png", | ||
"density": "4.0" | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,24 @@ | ||
<template> | ||
<div> | ||
<coreheader :showLinks="true" /> | ||
<div class="w-full md:w-4/5 text-gray m-auto p-4 md:p-8 max-w-2xl"> | ||
<Content /> | ||
</div> | ||
<corefooter /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import coreheader from "../core/header"; | ||
import corefooter from "../core/footer"; | ||
export default { | ||
components: { | ||
coreheader, | ||
corefooter | ||
} | ||
}; | ||
</script> | ||
|
||
<style lang="stylus"> | ||
@import '../styles/theme.styl'; | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: "refugeek" | ||
layout: "detail" | ||
layout: "Detail" | ||
--- | ||
|
||
# Contents | ||
|
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: "template" | ||
layout: "Template" | ||
--- | ||
|
Oops, something went wrong.