修改配置
10
README.md
@ -34,11 +34,11 @@
|
|||||||
- 增加了一言、和风天气的 API。
|
- 增加了一言、和风天气的 API。
|
||||||
|
|
||||||
|
|
||||||
## 安装
|
## hugo 安装
|
||||||
|
文档:
|
||||||
关于 Windows/Linux 下详细的安装与使用说明,请参考文档:
|
https://gohugo.io/getting-started/
|
||||||
|
安装包:
|
||||||
[WebStack-Hugo | 一个简洁的静态导航主题](https://www.yuque.com/shenweiyan/cookbook/webstack-hugo) - [语雀](https://www.yuque.com/shenweiyan)
|
https://github.com/gohugoio/hugo/releases
|
||||||
|
|
||||||
|
|
||||||
## 本地启动
|
## 本地启动
|
||||||
|
@ -5,7 +5,7 @@ theme = "WebStack"
|
|||||||
preserveTaxonomyNames = true
|
preserveTaxonomyNames = true
|
||||||
disablePathToLower = true
|
disablePathToLower = true
|
||||||
hasCJKLanguage = true
|
hasCJKLanguage = true
|
||||||
publishDir = "docs"
|
publishDir = "../www"
|
||||||
|
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
@ -14,7 +14,7 @@ publishDir = "docs"
|
|||||||
siteurl = "./"
|
siteurl = "./"
|
||||||
about = "./about" # 左侧导航栏的"关于导航"页面(./about)
|
about = "./about" # 左侧导航栏的"关于导航"页面(./about)
|
||||||
enablePreLoad = true # 网站完全打开前预加载动画
|
enablePreLoad = true # 网站完全打开前预加载动画
|
||||||
textPreLoad = "Hugo 网址导航主题" # 预加载的动画文字, 只有当enablePreLoad=true时生效
|
textPreLoad = "Fullstack Club" # 预加载的动画文字, 只有当enablePreLoad=true时生效
|
||||||
expandSidebar = false # 默认展开左侧边导航栏
|
expandSidebar = false # 默认展开左侧边导航栏
|
||||||
logosPath = "assets/images/logos" # 网站每个导航地址logo存放地址
|
logosPath = "assets/images/logos" # 网站每个导航地址logo存放地址
|
||||||
defaultLogo = "assets/images/logos/default.webp" # logo图片资源不存在或者错误时, 默认显示的logo; 该参数如为空,将会一直加载对应的logo,直至成功
|
defaultLogo = "assets/images/logos/default.webp" # logo图片资源不存在或者错误时, 默认显示的logo; 该参数如为空,将会一直加载对应的logo,直至成功
|
||||||
@ -24,13 +24,13 @@ publishDir = "docs"
|
|||||||
key = "085791e805a24491b43b06cf58ab31e7"
|
key = "085791e805a24491b43b06cf58ab31e7"
|
||||||
|
|
||||||
[params.images]
|
[params.images]
|
||||||
favicon = "assets/images/favicon.png"
|
favicon = "assets/images/favicon.ico"
|
||||||
searchImageL = "assets/images/bg-dna.jpg" #搜索部分浅色背景图
|
searchImageL = "assets/images/bg-dna.jpg" #搜索部分浅色背景图
|
||||||
searchImageD = "assets/images/bg-dna.jpg" #搜索部分深色背景图
|
searchImageD = "assets/images/bg-dna.jpg" #搜索部分深色背景图
|
||||||
logoExpandLight = "assets/images/bt8-expand-light.png"
|
logoExpandLight = "assets/images/bt8-expand-light.png"
|
||||||
logoExpandDark = "assets/images/bt8-expand-dark.png"
|
logoExpandDark = "assets/images/bt8-expand-dark.png"
|
||||||
logoCollapseLight = "assets/images/bt.png"
|
logoCollapseLight = "assets/images/favicon-128x128.png"
|
||||||
logoCollapseDark = "assets/images/bt.png"
|
logoCollapseDark = "assets/images/favicon-128x128.png"
|
||||||
|
|
||||||
[markup.goldmark.renderer]
|
[markup.goldmark.renderer]
|
||||||
unsafe = true
|
unsafe = true
|
||||||
|
@ -1,33 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: "关于网站"
|
title: "关于网站"
|
||||||
date: 2020-07-28T19:27:08+08:00
|
date: 2022-10-01T12:00:08+08:00
|
||||||
draft: false
|
draft: false
|
||||||
---
|
---
|
||||||
|
|
||||||
#### 这是 Hugo 版 WebStack 主题
|
本项目是 fullstack.club 的官网,主要是一些导航和在线工具。
|
||||||
|
|
||||||
本项目是基于**纯静态**的网址导航网站 [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)
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<title>{{ .Site.Title }}</title>
|
<title>{{ .Site.Title }}</title>
|
||||||
<meta name="keywords" content="Webstack Hugo theme">
|
<meta name="keywords" content="Webstack Hugo theme">
|
||||||
<meta name="description" 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="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/linecons/css/linecons.css">
|
||||||
<link rel="stylesheet" href="../assets/css/fonts/fontawesome/css/font-awesome.min.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:title" content="">
|
||||||
<meta name="twitter:description" content="">
|
<meta name="twitter:description" content="">
|
||||||
<meta name="twitter:image" 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>
|
</head>
|
||||||
|
|
||||||
<body class="page-body boxed-container">
|
<body class="page-body boxed-container">
|
||||||
@ -86,7 +77,7 @@
|
|||||||
<footer class="main-footer sticky footer-type-1 fixed">
|
<footer class="main-footer sticky footer-type-1 fixed">
|
||||||
<div class="footer-inner">
|
<div class="footer-inner">
|
||||||
<div class="footer-text">
|
<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>
|
||||||
<div class="go-up">
|
<div class="go-up">
|
||||||
<a href="#" rel="go-top">
|
<a href="#" rel="go-top">
|
||||||
|
10
src/themes/WebStack/layouts/swa.html
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Title</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 26 KiB |
BIN
src/themes/WebStack/static/assets/images/favicon-128x128.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
src/themes/WebStack/static/assets/images/favicon.ico
Normal file
After Width: | Height: | Size: 264 KiB |
BIN
src/themes/WebStack/static/assets/images/fullstack.web2.png
Normal file
After Width: | Height: | Size: 26 KiB |