diff --git a/README.md b/README.md index a8998f6..7c7a52a 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,3 @@ -# Vue Blogify +# 中文 Diary -Vue CLI-based static blogging platform - -## How to use - -- Edit `config.yaml` -- Edit layouts (using `*.vue`) in `src/layouts/` -- Add posts in `public/posts`, preferrably in `public/posts//`. HTML, Pug and Markdown are supported. - -## Installation - -- I use NPM, and Vue CLI 3, so `npm install` -- Run using `npm run dev` - -## Building and deploying - -- Build using `npm run build` -- Deploy as static website, maybe using [gh-pages](https://www.npmjs.com/package/gh-pages). -- To deploy to most static websites, set `publicPath` in `vue.config.js` to `/`. - - For non-user GitHub Pages, set `publicPath` to `/`. - - For Cordova, Electron, or local, set `publicPath` to `""`. - - Note that, if `publicPath` is not `/`, [Vue router's History Mode](https://router.vuejs.org/guide/essentials/history-mode.html) might not work. - - For instructions, see - -## Example - -See +Originally intended to post about 千字文. diff --git a/src/App.vue b/src/App.vue index d941c76..36bcaf7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,7 +9,7 @@ div b-navbar-nav.ml-auto b-nav-form(@submit.stop.prevent) b-form-input.mr-sm-2(size="sm" placeholder="Type to search" style="min-width: 200px" v-model="g.q") - b-nav-item(to="/about") About + b-nav-item(v-if="g.config.about" to="/about") About b-container.mt-3 b-row b-col(sm=12 lg=8)