Giter Club home page Giter Club logo

70-lines-of-vuepress-blog-theme's Introduction

70-lines-of-vuepress-blog-theme

A VuePress Blog Theme implemented in around 70 lines.

Motivation

In fact, this project is a classic use case for the official vuepress blog plugin. This project aims to minimize the cost of developing a vuepress blog theme, so that developers only care about the implementation of the theme style, without paying attention to the underlying details of the complex implementation.

Features

All of following features are out-of-box:

  • Blogging Convention
  • Blog-Styled Permalinks
  • Pagination
  • Frontmatter-Based Tag Classification

License

MIT · ULIVZ

70-lines-of-vuepress-blog-theme's People

Contributors

chenweigao avatar ulivz avatar

Stargazers

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

70-lines-of-vuepress-blog-theme's Issues

How use this project?

I make
git clone ...
npm i
npm run dev

after this I see in console:
Build 8d164d finished in 158 ms! (http://localhost:8080/)

but I have empty page in browser in http://localhost:8080/

UPD error in browser console:

./layouts/GlobalLayout.vue?vue&type=template&id=ee013cbe& (./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/@vuepress/core/node_modules/.cache/vuepress","cacheIdentifier":"8a9642b2-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./layouts/GlobalLayout.vue?vue&type=template&id=ee013cbe&)
Module Error (from ./node_modules/vue-loader/lib/loaders/templateLoader.js):
(Emitted value instead of an instance of Error)

Errors compiling template:

tag

has no matching end tag.

5 |

6 |

7 |

Github · Powered by VuePress


| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8 |
9 |

how resolve this issue?

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet.
We recommend using:

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet.
We recommend using:

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

[Unusable] Installation/usage missing

Description

This code base is unusable.

Steps to reproduce

  1. Follow readme
  2. Attempt the usage of yarn
  3. Attempt the usage of yarn dev
  4. Attempt the usage of yarn build

Setting up the project

Hi!

I've been trying to setup the project but so far I've only gotten as far as a 404 with the default layout and everything.

the steps ive taken:

  1. npm install
  2. vuepress build examples
  3. copy the layout files to /examples/.vuepress/theme/layouts
  4. copy _posts to examples

My folder structure looks like this right now:

70-lines...
|-- examples
|   |-- .vuepress
|   |   |-- dist
|   |   `-- theme
|   |       |-- layouts
|   |       |   |-- GlobalLayout.vue
|   |       |   |-- Layout.vue
|   |       |   |-- Post.vue
|   |       |   `-- Tag.vue
|   |       `-- config.js
|   `-- _posts
|-- node_modules
|-- index.js
|-- package.json
|-- package-lock.json
`-- Readme.md

I go to -> /examples and run vuepress dev to get my 404 page

I am confused as to what purpose some files serve and this all seems very half-assed to me or maybe i'm just missing something.

The confusion is set from firstly
config.js
this basically wants to require.resolve something out in the root folder id guess the Index.js?
why wouldn't you just put the configuration, into the configuration file, not have them separately.

But the main problem i think is is the GlobalLayout.vue, my 404 page shows neatly with the general styling and everything, but since there is no component folder, where should this component be coming from? how does this work?

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.