GithubHelp home page GithubHelp logo

whoan / vuepress-theme-canvas Goto Github PK

View Code? Open in Web Editor NEW
22.0 3.0 3.0 1.59 MB

:pencil2: Vuepress custom theme for blogging

License: MIT License

Vue 53.77% Shell 4.51% JavaScript 1.27% Less 40.45%
vuepress-theme blog vuepress vue blog-theme

vuepress-theme-canvas's Introduction

Vuepress theme Canvas

Vuepress custom theme for blogging inspired on Canvas: a Simple, Powerful Blog Publishing Platform

You can see my own blog as an example.

Installation

As Easy as 1,2,3

First, create a docs folder if you don't have one yet:

mkdir docs && cd docs

Clone the repo:

git clone https://github.com/whoan/vuepress-theme-canvas.git .vuepress

See it run:

.vuepress/run.sh

You will see a README file in your docs folder and it's there to let vuepress render the Home page. See more information here.

Important note: The root README will be ignored by the theme and it won't be listed as a blog post. For the same reason, all its content (except for the front matter) will be ignored.

Building your brand new blog

IMPORTANT! You must always use .vuepress/node_modules/.bin/vuepress instead of the global vuepress for this project

Once you placed your fantastic posts in your docs folder, build your blog like this:

# cd $your_docs_dir
.vuepress/node_modules/.bin/vuepress build

Set the config file to your needs

Now it's time to personalize your blog's information. Go and change the congif.js file with your personal data.

Features

You can set the lastModified date of a blog post in the Front Matter like this:

lastModified: '2019-09-09'

And you can set prev and next posts in the footer of your posts adding something like this also in the Front Matter:

prev: /some-prev-blog
next: /some-next-blog

To set your personal links in the header of the pages, you have the array usefulLinks in the config file.
You can also set the icon you want to show in each link. Here an example:

[{
  href: 'https://github.com/whoan',
  cssIcon: 'fa fa-fw fa-github'
}]

Limitations

This project is meant to be simple and it has some limitations. Some of them can be addressed with the time, others will never be implemented to maintain its simplicity.

These are the current limitations, based on what you can expect for a blog:

  • It lists all the markdown files at the same level regardless the directory they are placed in.
  • It doesn't have tags.
  • It doesn't have a search bar.
  • It doesn't have a lot of other things you can find in other blogs; but it's beautiful, something you don't find in a lot of other blogs.

Troubleshooting

I get a 404 error

It's due to you need a README.md in the root of the project. See the installation section.

I can't see the posts titles in the main page

Each markdown file (your posts) need a h1 header, so here you have a suggestion to write:

# My Awesome Post

I get compiling template errors

You need to see which are the hurting files and modify them accordingly to make them markdown compliant. Don't know really which are the common reasons for this problem.

Now you will see the titles the Home page.

License

MIT

vuepress-theme-canvas's People

Contributors

dependabot[bot] avatar joni2back avatar whoan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.