Please enable Javascript to view the contents

m10c主题配置

 ·  ☕ 1 分钟

m10c 主题配置

主题地址:GitHub 仓库地址

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
title = "Vigilr的博客"

[params]
  description = "宁为玉碎,不为瓦全"
  avatar = "avatar.jpg"
  [[params.social]]
    name = "github"
    url = "https://github.com/eternidad33"
  [[params.social]]
    name = "mail"
    url = "mailto:3496655347@qq.com"
  [[params.social]]
    name = "link"
    url = "https://blog.csdn.net/qq_42907802"

主题仓库要下载到站点目录/themes

文章目录为:站点目录/content/posts

头像的路径:站点目录/static/avatar.jpg

只是简单地设计了几个链接,链接的图标在主题目录/data/m10c/icons.json文件中定义

博客启动:hugo server -t hugo-theme-m10c -D

浏览器访问:http://localhost:1313/

至此博客启动成功

m10c

分享
您的鼓励是我最大的动力
alipay QR Code
wechat QR Code

Vigilr
作者
Vigilr
大四学生