mirror of https://github.com/jkjoy/hugoblog.git
Create 63.md
This commit is contained in:
parent
bc17016080
commit
3557998189
|
@ -0,0 +1,88 @@
|
|||
---
|
||||
title: "Stack - 一个新的typecho主题"
|
||||
date: 2024-07-11T13:46:56+08:00
|
||||
|
||||
---
|
||||
## 前言
|
||||
|
||||
本主题 从Hugo主题`Stack`移植而来.
|
||||
|
||||
原项目
|
||||
https://github.com/CaiJimmy/hugo-theme-stack
|
||||
|
||||
## 使用
|
||||
|
||||
### 站点 LOGO 地址
|
||||
|
||||
为左侧边栏头像
|
||||
|
||||
### 站点 Favicon 地址
|
||||
|
||||
Favicon
|
||||
|
||||
### 归档页面地址
|
||||
|
||||
创建归档页面后,在此填入
|
||||
|
||||
### 链接页面地址
|
||||
|
||||
使用`links`插件
|
||||
|
||||
创建链接页面后,在此填入
|
||||
|
||||
### 关于页面地址
|
||||
|
||||
创建关于页面后,在此填入
|
||||
|
||||
### 自定义菜单
|
||||
|
||||
```
|
||||
<li >
|
||||
<a href='/' >
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-home" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><polyline points="5 12 3 12 12 3 21 12 19 12" /><path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" /><path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" /></svg>
|
||||
<span>首页</span>
|
||||
</a>
|
||||
</li>
|
||||
```
|
||||
按照此格式填入
|
||||
|
||||
### 是否在侧边栏显示按日期归档
|
||||
|
||||
由于日期归档过多,可以选择是否显示
|
||||
|
||||
### 是否使用魔改风格
|
||||
|
||||
mod风格来自其他`Stack`用户
|
||||
|
||||
### 分类图片目录
|
||||
|
||||
按照分类的 mid 以jpg的格式 存放的目录
|
||||
譬如本地目录 或者 CDN 等,用于匹配归档页面的分类图片
|
||||
|
||||
### 使用第三方评论
|
||||
|
||||
可以选择使用第三方的评论系统 如 twikoo 等
|
||||
类似
|
||||
```html
|
||||
<div id="tcomment"></div>
|
||||
<script src="https://cdn.staticfile.org/twikoo/1.6.31/twikoo.all.min.js"></script>
|
||||
<script>
|
||||
twikoo.init({
|
||||
envId: 'https://api.sgcd.net/twikoo/',
|
||||
el: '#tcomment',
|
||||
})
|
||||
</script>
|
||||
```
|
||||
|
||||
|
||||
### Header代码
|
||||
|
||||
用于DIY CSS 或 身份验证 等
|
||||
|
||||
### Footer代码
|
||||
|
||||
用于插入备案号码 或者 统计代码等
|
||||
|
||||
|
||||
## 下载地址
|
||||
https://github.com/jkjoy/Typecho-Theme-Stack
|
Loading…
Reference in New Issue