The source code:

Blog address: Percywang.top

Front end: github.com/pppercyWang…

The backend: github.com/pppercyWang…

preface

About six months ago, because of the company’s technology stack. As a small front-end, I have also developed a great interest in Golang. Think of using Golang (iris) + vue.js to build a blog. This half year because of the reason of working overtime, leave oneself less time. Anyway, a few days ago, the record just came down, but also the preliminary construction completed.

Blog style

I’ve only been on the job for a little over a year, but the idea for a blog came to me as soon as I got to the front end. But I don’t know what my blog should look like and how to design it. One day while checking Twitter on the PC, I clicked a button and rolled the mouse. All right, that’s it.

Blog design

There are a few things I would like this blog to do

  1. Markdown can write articles and publish them
  2. You can log in to Github and leave messages
  3. To facilitate retrieving articles, you also need an archiving function
  4. Following the Twitter style, I’m going to write all the components by hand and practice writing them
  5. Build blog is just a personal preference, there is no one to visit it, so there is no writing background. When publishing an article, you need to provide an isHostKey to determine whether it is the owner of the site

package.json

  "dependencies": {
    "axios": "^ 0.19.0"."mavon-editor": "^ 2.7.5." "."vue": "^ 2.5.17"."vue-router": "^ 3.0.7"
  },
Copy the code

What you did badly:

SSR

In fact, as a blog, a single page application for SEO disadvantage, in fact, is fatal, it will make it difficult for others to find your site in the search engine. That’s something I didn’t think about when I started doing this.

Pending:

  1. Mobile adaptation
  2. Code specification optimization
  3. Write a background (mood) —