My blog's code
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
archetypes
content first commit Feb 18, 2019
node_modules first commit Jan 25, 2018
public first commit Feb 18, 2019
themes/beautifulhugo first commit Feb 18, 2019
CNAME first commit Jan 25, 2018
Dockerfile first commit Jan 25, 2018
README.md first commit Jan 25, 2018
avatar-icon.jpg first commit Oct 11, 2018
config.toml first commit Nov 30, 2018
config.yaml first commit May 10, 2018
deploy.sh
docker-compose-monitor.yml first commit Feb 14, 2019
docker-compose-olaindex.yml first commit Feb 14, 2019
docker-compose-olaindex.yml.bak first commit Dec 28, 2018
docker-compose-oneindex.yml first commit Oct 9, 2018
docker-compose-tuchuang.yml first commit Dec 18, 2018
docker-compose-you2php.yml first commit Oct 9, 2018
docker-compose.yml first commit Dec 24, 2018
front-envoy.yaml first commit Jan 25, 2019
hugo_0.54.0_Linux-64bit.tar.gz first commit Feb 13, 2019
nohup.out first commit Jan 25, 2018
npm-debug.log first commit Jan 25, 2018
oneindex-envoy.yaml first commit Oct 9, 2018
package.json
publish_hugo.sh first commit Jul 3, 2018
restart_hugo.sh first commit Sep 26, 2018
service-envoy-grafana.yaml
service-envoy-prometheus.yaml first commit Dec 25, 2018
service-envoy.yaml first commit Dec 24, 2018
service-envoy.yaml.bak first commit Nov 24, 2018
start_hugo.sh
webhook-envoy.yaml first commit Oct 7, 2018
wordcount.sh first commit Jan 25, 2018
yarn.lock first commit Jan 25, 2018

README.md

My blog's source code

Jimmy Song's blog source code

Proudly powered by Hugo ❤️, Theme by Beautiful Jekyll adapted to Beautiful Hugo

Usage

Let me show you how to add and debug a new post and push it to Github pages and building a new searching index.

1. Add a new post

Use this command to create a new post:

hugo add posts/new.md

After the new post created, it is located at ./content/posts/new.md.

2. Post head matters

Classic example:

date: "2017-06-01T20:18:57+08:00"
draft: false
title: "微服务管理框架service mesh——istio安装笔记"
subtitle: "手把手教你安装Istio service mesh"
categories: "cloud-native"
tags: ["kubernetes","istio","service-mesh"]
description: "对文章的简要描述 SEO used for description"
bigimg: [{src: "https://res.cloudinary.com/jimmysong/image/upload/images/20170528033.jpg", desc: "威海东部海湾 May 28,2017"}]
nocomment: true
postmeta: false

bigimg:an array, you can specify multiple images in map lists.

postmeta:whether show the post meta data below a post title/subtitle

nocomment: whether show the comment box

3. Preview and debug

Execute this command the build a preview:

hugo server

Visit http://localhost:1313 for the website preview.

4. Update algolia index

Execute this command to build a new algolia index at the project's base path:

hugo-alogolia
grep -v '"content":' algolia.json>rootsongjc-hugo.json
rm -f algolia.json

As the new post created there should be a new record added to this file public/rootongjc-hugo.json.

Acknowledgements