当前位置: 首页 > 软件库 > Web应用开发 > >

jekyll-vue-template

授权协议 MIT License
开发语言 JavaScript
所属分类 Web应用开发
软件类型 开源软件
地区 不详
投 递 者 太叔灿
操作系统 未知
开源组织
适用人群 未知
 软件概览

jekyll-vue-template

A Jekyll project template that uses Vue.js single file components complete with webpack bundling and optimizations.

Overview

jekyll-vue-template is an opinionated, but minimal boilerplate for creating statically generated sites with Jekyll and Vue.js. It supports Vue single file components and webpack optimizations including code-splitting and cache-control.

Features

  • Support for Vue single file components
  • Vendor code-splitting with webpack 4
  • Cache control for bundled assets using webpack 4
  • Babel transpilation
  • Sass language support in Vue single file components
  • eslint with Vue style guide plugin
  • Hot-reloading via BrowserSync

Installation

The easiest way to use the jekyll-vue-template is to clone or fork this repo, then customize it to suit your needs.

Install npm Packages

npm i

Install Ruby Gems

bundle

Usage

The src directory contains the Vue application and its components. Create single file components and mount them anywhere in your Jekyll pages, including layouts, markdown pages, or includes.

Development

To run the jekyll-vue-template in a development environment, first compile assets with webpack:

npm run dev

Alternatively you can use the watch command to watch for changes in your webpack-managed assets and automatically recompile.

npm run watch

After assets have been built, spool up a development server with Jekyll:

bundle exec jekyll s

Production

To build for production, first compile webpack assets:

npm run build

After assets have been built, generate the static files with Jekyll:

bundle exec jekyll build

Technical

jekyll-vue-template uses the following projects as critical workflow components:

  • Jekyll v4.0.0
  • Vue v2.6.10
  • webpack v4.39.3

License

MIT © Christopher Murphy

Jekyll License Info

Vue.js License Info

  • 自从知道了bootstrap,就被他简介,大气美观的样式吸引,即使在vue框架中,仍旧想使用,下面给出了vue适配版和原版的代码,以飨读者 数据输出部分 export default { data() { return { pagestyle:'https://v4.bootcss.com/docs/4.3/dist/css/bootstr

 相关资料
  • Static, meet dynamic. Demo: https://vue-jekyll.surge.sh This Repo is a bare-bones template for building static sites that leverage a client-side JS framework for dynamic functionality. It uses NPM, We

  • Jekyll 是一个简单的免费的Blog生成工具,类似WordPress。但是和WordPress又有很大的不同,原因是jekyll只是一个生成静态网页的工具,不需要数据库支持。但是可以配合第三方服务,例如discuz。最关键的是jekyll可以免费部署在Github上,而且可以绑定自己的域名。 快速安装指令: gem install jekylljekyll new my-awesome-sit

  • Aperture Aperture template for Jekyll. Browse through a live demo. Aperture was made by CloudCannon, the Cloud CMS for Jekyll.Find more templates and themes at CloudCannon Academy. Learn Jekyll with s

  • Leia em Português Typing Introduction Typing, is a template for Jekyll created especially for those who want to have a blog and pages quickly and lightly. Keep things simple, my friend! Its interface

  • Fur E-commerce template for Jekyll. Browse through a live demo. Fur was made by CloudCannon, the Cloud CMS for Jekyll. Find more templates, themes and Jekyll tutorials at CloudCannon Academy. Features

  • Treat Food/baking blog template for Jekyll. Browse through a live demo. Treat was made by CloudCannon, the Cloud CMS for Jekyll. Find more templates, themes and step-by-step Jekyll tutorials at CloudC