Giter Site home page Giter Site logo

doc22940 / saber-theme-vuepress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alstormyk/saber-theme-vuepress

0.0 0.0 0.0 5.21 MB

Vuepress theme for Saber.

Home Page: https://saber-theme-vuepress.netlify.com/

License: MIT License

JavaScript 99.14% Vue 0.68% CSS 0.19%

saber-theme-vuepress's Introduction

saber-theme-vuepress

npm

A Saber Port of the Default Vuepress Theme.

Install

yarn add saber-theme-vuepress

In your saber-config.yml:

theme: vuepress

This theme works best with following plugins:

  • saber-plugin-query-posts: Inject posts to homepage's page prop, generate tag pages
yarn add saber-plugin-query-posts markdown-it-div
plugins:
  - resolve: saber-plugin-query-posts

and markdown-it-div

markdown:
  plugins:
    - resolve: markdown-it-div

Layouts

  • home: Setup just like the Vuepress home page. All fields are populated from saber-config.yml.
  • post: For individual blog posts.
  • blog: A page to show all your posts.
  • page: For normal pages with a sidebar.
  • default: For any other pages without a sidebar.

Site Config

Configure site title, description etc in your saber-config.yml:

siteConfig:
  title: My Site
  description: About this website.
  author: My Name
  email: [email protected]

Theme Config

Navbar

Configure nav to show a set of links in header and optional repository link:

themeConfig:
  nav:
    - text: Home
      link: /
    - text: About
      link: /about.html
repo:
    - site: github
      name: your name

Home Page

Configure a home page at ./pages/index.md:

---
layout: home
heroImage: logo.jpg
heroTitle: Hello
heroDescription: Welcome to saber-theme-vuepress
actionText: Get Started โ†’
actionLink: /about.html
features: 
  - title: Title One
    details: Details for title one.
  - title: Saber-Powered
    details: With Saber, static rendering with Vue.js is easier now than ever. 
  - title: Title Three
    details: Details for title three.
footer: Footer info goes here.
---

License

MIT.

saber-theme-vuepress's People

Contributors

arashigrey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.