修改配置

This commit is contained in:
cheney 2022-10-18 17:14:32 +08:00
parent 594cf56047
commit 95f09d0ad7
10 changed files with 24 additions and 49 deletions

View File

@ -34,11 +34,11 @@
- 增加了一言、和风天气的 API。
## 安装
关于 Windows/Linux 下详细的安装与使用说明,请参考文档:
[WebStack-Hugo | 一个简洁的静态导航主题](https://www.yuque.com/shenweiyan/cookbook/webstack-hugo) - [语雀](https://www.yuque.com/shenweiyan)
## hugo 安装
文档:
https://gohugo.io/getting-started/
安装包:
https://github.com/gohugoio/hugo/releases
## 本地启动

View File

@ -5,7 +5,7 @@ theme = "WebStack"
preserveTaxonomyNames = true
disablePathToLower = true
hasCJKLanguage = true
publishDir = "docs"
publishDir = "../www"
[params]
@ -14,7 +14,7 @@ publishDir = "docs"
siteurl = "./"
about = "./about" # 左侧导航栏的"关于导航"页面(./about)
enablePreLoad = true # 网站完全打开前预加载动画
textPreLoad = "Hugo 网址导航主题" # 预加载的动画文字, 只有当enablePreLoad=true时生效
textPreLoad = "Fullstack Club" # 预加载的动画文字, 只有当enablePreLoad=true时生效
expandSidebar = false # 默认展开左侧边导航栏
logosPath = "assets/images/logos" # 网站每个导航地址logo存放地址
defaultLogo = "assets/images/logos/default.webp" # logo图片资源不存在或者错误时, 默认显示的logo; 该参数如为空,将会一直加载对应的logo,直至成功
@ -24,13 +24,13 @@ publishDir = "docs"
key = "085791e805a24491b43b06cf58ab31e7"
[params.images]
favicon = "assets/images/favicon.png"
favicon = "assets/images/favicon.ico"
searchImageL = "assets/images/bg-dna.jpg" #搜索部分浅色背景图
searchImageD = "assets/images/bg-dna.jpg" #搜索部分深色背景图
logoExpandLight = "assets/images/bt8-expand-light.png"
logoExpandDark = "assets/images/bt8-expand-dark.png"
logoCollapseLight = "assets/images/bt.png"
logoCollapseDark = "assets/images/bt.png"
logoCollapseLight = "assets/images/favicon-128x128.png"
logoCollapseDark = "assets/images/favicon-128x128.png"
[markup.goldmark.renderer]
unsafe = true

View File

@ -1,33 +1,7 @@
---
title: "关于网站"
date: 2020-07-28T19:27:08+08:00
date: 2022-10-01T12:00:08+08:00
draft: false
---
#### 这是 Hugo 版 WebStack 主题
本项目是基于**纯静态**的网址导航网站 [webstack.cc](https://github.com/WebStackPage/WebStackPage.github.io) 制作的 [Hugo](https://gohugo.io/) 主题,其中部分代码参考了以下几个开源项目:<br/><br/>
- [https://github.com/liutongxu/liutongxu.github.io](https://github.com/liutongxu/liutongxu.github.io)
- [https://github.com/iplaycode/webstack-hugo](https://github.com/iplaycode/webstack-hugo)
<br/>
主题安装后,将 exampleSite 目录下的文件复制到 hugo 站点根目录,根据需要把 config.toml 的一些信息改成自己的,导航的网址信息可通过 data 目录下 webstack.yml 修改。
这是一个开源的公益项目,你可以拿来制作自己的网址导航,也可以做与导航无关的网站。
WebStack 有非常多的魔改版本,这是其中一个。如果你对本主题进行了一些个性化调整,欢迎来本项目中 issue 分享一下!
<br/>
#### 主题开源地址
[https://github.com/shenweiyan/webstack-hugo](https://github.com/shenweiyan/webstack-hugo)
<br/>
#### 主题演示地址
- [https://nav.bioitee.com](https://nav.bioitee.com)
- [https://shenweiyan.github.io/webstack-hugo](https://shenweiyan.github.io/webstack-hugo)
本项目是 fullstack.club 的官网,主要是一些导航和在线工具。

View File

@ -9,7 +9,7 @@
<title>{{ .Site.Title }}</title>
<meta name="keywords" content="Webstack Hugo theme">
<meta name="description" content="Webstack Hugo theme">
<link rel="shortcut icon" href="../assets/images/favicon.png">
<link rel="shortcut icon" href="../assets/images/favicon.ico">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Arimo:400,700,400italic">
<link rel="stylesheet" href="../assets/css/fonts/linecons/css/linecons.css">
<link rel="stylesheet" href="../assets/css/fonts/fontawesome/css/font-awesome.min.css">
@ -37,15 +37,6 @@
<meta name="twitter:title" content="">
<meta name="twitter:description" content="">
<meta name="twitter:image" content="">
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?86cead3bcab6a1417189e6138d69262";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body class="page-body boxed-container">
@ -86,7 +77,7 @@
<footer class="main-footer sticky footer-type-1 fixed">
<div class="footer-inner">
<div class="footer-text">
<strong>{{ if $.Site.Params.footer.copyright }}{{ replace $.Site.Params.footer.copyright "{year}" now.Year | markdownify }}{{ else }}BioIT 爱好者{{ end }}</strong> Design by <a href="http://viggoz.com" target="_blank"><strong>Viggo</strong></a> themes by <a href="{{ $.Site.Params.repository }}" target="_blank"><strong>shenweiyan</strong></a>
<strong>{{ replace $.Site.Params.footer.copyright "{year}" now.Year | markdownify }}</strong>
</div>
<div class="go-up">
<a href="#" rel="go-top">

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB