initial commit
This commit is contained in:
18
src/main.js
Normal file
18
src/main.js
Normal file
@@ -0,0 +1,18 @@
|
||||
// This is the main.js file. Import global CSS and scripts here.
|
||||
// The Client API can be used here. Learn more: gridsome.org/docs/client-api
|
||||
|
||||
import 'prismjs/themes/prism-okaidia.css'
|
||||
|
||||
import DefaultLayout from '~/layouts/Default.vue'
|
||||
|
||||
import Prism from 'prismjs'
|
||||
|
||||
|
||||
export default function (Vue, { router, head, isClient }) {
|
||||
|
||||
Vue.filter('highlight', (code, lang = 'javascript') => {
|
||||
return Prism.highlight(code, Prism.languages[lang], lang)
|
||||
})
|
||||
|
||||
Vue.component('Layout', DefaultLayout)
|
||||
}
|
||||
Reference in New Issue
Block a user