Skip to content

Commit

Permalink
精简部分导航地址
Browse files Browse the repository at this point in the history
  • Loading branch information
shenweiyan committed Feb 5, 2024
1 parent aa7106e commit b20a764
Show file tree
Hide file tree
Showing 25 changed files with 40 additions and 76 deletions.
4 changes: 2 additions & 2 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ theme = "WebStack-Hugo"
preserveTaxonomyNames = true
disablePathToLower = true
hasCJKLanguage = true
publishDir = "public" # 站点静态文件保存目录
publishDir = "public" # 站点静态文件保存目录


[params]
author = "shenweiyan"
description = "Webstack-Hugo 网址导航 | Hugo 主题 BY Bio IT 爱好者"
upload = "https://www.yuque.com/forms/share/1a1fee15-f7a9-4ee6-9dd4-b0ba9fef1871" # 左侧导航栏的"网站提交"
upload = "https://www.yuque.com/forms/share/1a1fee15-f7a9-4ee6-9dd4-b0ba9fef1871" # 左侧导航栏的"网站提交"
about = "https://github.com/shenweiyan/Knowledge-Garden/discussions/10" # 左侧导航栏的"关于导航"页面(./about)
repository = "https://github.com/shenweiyan/WebStack-Hugo"
enablePreLoad = true # 网站完全打开前预加载动画
Expand Down
4 changes: 2 additions & 2 deletions exampleSite/data/friendlinks.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- title: BioIT爱好者
url: https://bioitee.com/
description: Bio & IT 网址导航
- title: 个人博客
url: https://shen.bioitee.com/
- title: 维燕的知识花园
url: https://weiyan.cc/
description: 个人博客
10 changes: 5 additions & 5 deletions exampleSite/data/headers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

- item: 作者
icon: fa fa-book
link: https://www.yuque.com/shenweiyan
link: https://weiyan.cc/

- item: 配置
- item: 关于
icon: fa fa-cog
link: ""
list:
- name: 教程
url: https://github.com/shenweiyan/Knowledge-Garden/discussions/10
- name: 源码
url: "#"
- name: 图标
url: "#"
url: https://github.com/shenweiyan/WebStack-Hugo
76 changes: 15 additions & 61 deletions exampleSite/data/webstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@
- taxonomy: 常用推荐
icon: far fa-star
links:
- title: 关注我们
logo: ""
url: https://bioitee.com
qrcode: assets/images/logos/qrcode.jpg
description: BioIT 爱好者!
- title: 语雀
logo: 语雀.jpg
logo: 语雀.webp
url: https://www.yuque.com/
description: 专业的云端知识库。
- title: QQ 邮箱
Expand All @@ -24,18 +19,10 @@
logo: 微信公众号.png
url: https://mp.weixin.qq.com/
description: 再小的个体也有自己的品牌。
- title: CODING
logo: coding.png
url: https://shenweiyan.coding.net/user/projects
description: 个人 CODING 代码托管。
- title: GitHub
logo: github.jpg
logo: github.png
url: https://github.com/
description: GitHub 开源社区。
- title: Md2X 定制版
logo: mdx.png
url: https://mdx.ncbix.com/
description: Markdown 排版利器,Md2All 定制版。
- title: 搜狗微信
logo: 搜狗微信.jpg
url: https://weixin.sogou.com/
Expand All @@ -48,10 +35,11 @@
logo: v2ex.jpg
url: https://www.v2ex.com/
description: V2EX 创意工作者的社区。
- title: 语雀话题
logo: 语雀话题.png
url: https://www.yuque.com/shenweiyan/wow
description: 好看的皮囊千篇一律,有趣的灵魂万里挑一!
- title: 关注我们
logo: 关注.jpg
url: https://www.bioitee.com
qrcode: qrcode.jpg
description: 微信公众号:BioIT 爱好者!


- taxonomy: 科研办公
Expand All @@ -71,10 +59,10 @@
logo: cpan.jpg
url: https://metacpan.org/
description: Search the CPAN.
- title: Gitter Galaxy
logo: gitter.jpg
url: https://gitter.im/galaxyproject
description: Galaxy Gitter Community.
- title: Galaxy Project
logo: galaxy_project.png
url: https://galaxyproject.org/
description: Galaxy Community Hub.
- title: R Project
logo: r-project.jpg
url: https://www.r-project.org/
Expand All @@ -90,17 +78,17 @@
url: https://www.aliyun.com/
description: 上云就上阿里云。
- title: 腾讯云
logo: 腾讯云.jpg
logo: 腾讯云.webp
url: https://cloud.tencent.com/
description: 产业智变,云启未来。
- title: 华为云
logo: 华为云.png
url: https://www.huaweicloud.com/
description: 提供云计算服务+智能,见未来-华为云。
- title: 云筏科技
logo: ''
url: https://my.cloudraft.cn/
description: 云筏 - 科研云
logo: 云筏.png
url: https://www.cloudraft.cn/
description: 你的生信科研好选择
- title: 极云普惠云电脑
logo: 极云普惠云电脑.png
url: https://www.ji-cloud.cn/
Expand Down Expand Up @@ -158,14 +146,6 @@
logo: 网易云音乐.jpg
url: https://music.163.com/
description: 163 网易云音乐。
- title: 电影天堂(DYTT8)
logo: 电影天堂.png
url: https://www.dytt8.net/index.htm
description: 电影天堂(DYTT8),高清电影下载。
- title: 电影天堂(DYGOD)
logo: 电影天堂.png
url: https://www.dygod.net/
description: 电影天堂(DYGOD),高清电影下载。
- term: 游戏竞技
links:
- title: 百度贴吧
Expand Down Expand Up @@ -387,32 +367,6 @@
url: http://www.abstractfonts.com/
logo: abstractfonts.png
description: Abstract Fonts (13,866 free fonts).
- term: PPT资源
links:
- title: OfficePLUS
url: http://www.officeplus.cn/Template/Home.shtml
logo: officeplus.png
description: OfficePLUS,微软Office官方在线模板网站!
- title: 优品PPT
url: http://www.ypppt.com/
logo: ypppt.png
description: 高质量的模版,而且还有PPT图表,PPT背景图等资源。
- title: PPT+
url: http://www.pptplus.cn/
logo: pptplus.png
description: PPT加直播、录制和分享—PPT+语音内容分享平台。
- title: PPTMind
url: http://www.pptmind.com/
logo: pptmind.png
description: 分享高端 ppt 模板与 keynote 模板的数字作品交易平台。
- title: tretars
url: http://www.tretars.com/ppt-templates
logo: tretars.png
description: The best free Mockups from the Web.
- title: 5百丁
url: http://ppt.500d.me/
logo: 500d.png
description: 中国领先的PPT模板共享平台。


- taxonomy: 开发设计
Expand Down
22 changes: 16 additions & 6 deletions layouts/partials/content_main.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ <h4 class="text-gray text-lg mb-4">
<a href="{{ .url }}" target="_blank" data-id="" data-url="{{ .url }}" class="card no-c mb-4" title="{{ .title }}">
去除 Tooltip -->
{{ if .qrcode }}
<a href="javascript:" target=""
class="card no-c mb-4" data-toggle="tooltip" data-placement="bottom" data-html="true" title="<img src='{{ .qrcode }}' width='128'>">
{{ if findRE "http.*?(.|\n)*?" .qrcode }}
<a href="javascript:" target="" class="card no-c mb-4" data-toggle="tooltip" data-placement="bottom" data-html="true"
title="<img src='{{ .qrcode }}' width='128'>">
{{ else }}
<a href="javascript:" target="" class="card no-c mb-4" data-toggle="tooltip" data-placement="bottom" data-html="true"
title="<img src='{{ $.Site.Params.logosPath }}/{{ .qrcode }}' width='128'>">
{{ end }}
{{ else }}
<a href="{{ .url }}" target="_blank" data-id="" data-url="{{ .url }}"
<a href="{{ .url }}" target="_blank" data-id="" data-url="{{ .url }}"
class="card no-c mb-4" data-toggle="tooltip" data-placement="bottom" data-original-title="{{ .description }}">
{{ end }}
<div class="card-body">
Expand Down Expand Up @@ -88,10 +93,15 @@ <h4 class="text-gray text-lg mb-4">
<a href="{{ .url }}" target="_blank" data-id="" data-url="{{ .url }}" class="card no-c mb-4" title="{{ .title }}">
-->
{{ if .qrcode }}
<a href="javascript:" target=""
class="card no-c mb-4" data-toggle="tooltip" data-placement="bottom" data-html="true" title="<img src='{{ .qrcode }}' width='128'>">
{{ if findRE "http.*?(.|\n)*?" .qrcode }}
<a href="javascript:" target="" class="card no-c mb-4" data-toggle="tooltip" data-placement="bottom" data-html="true"
title="<img src='{{ .qrcode }}' width='128'>">
{{ else }}
<a href="javascript:" target="" class="card no-c mb-4" data-toggle="tooltip" data-placement="bottom" data-html="true"
title="<img src='{{ $.Site.Params.logosPath }}/{{ .qrcode }}' width='128'>">
{{ end }}
{{ else }}
<a href="{{ .url }}" target="_blank" data-id="" data-url="{{ .url }}"
<a href="{{ .url }}" target="_blank" data-id="" data-url="{{ .url }}"
class="card no-c mb-4" data-toggle="tooltip" data-placement="bottom" data-original-title="{{ .description }}">
{{ end }}
<div class="card-body">
Expand Down
Binary file removed static/assets/images/logos/500d.png
Binary file not shown.
Binary file removed static/assets/images/logos/coding.png
Binary file not shown.
Binary file added static/assets/images/logos/galaxy_project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/assets/images/logos/github.jpg
Binary file not shown.
Binary file added static/assets/images/logos/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/assets/images/logos/gitter.jpg
Binary file not shown.
Binary file removed static/assets/images/logos/mdx.png
Binary file not shown.
Binary file removed static/assets/images/logos/officeplus.png
Binary file not shown.
Binary file removed static/assets/images/logos/pptmind.png
Binary file not shown.
Binary file removed static/assets/images/logos/pptplus.png
Binary file not shown.
Binary file removed static/assets/images/logos/tretars.png
Binary file not shown.
Binary file removed static/assets/images/logos/ypppt.png
Binary file not shown.
Binary file added static/assets/images/logos/云筏.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/assets/images/logos/关注.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/assets/images/logos/电影天堂.png
Binary file not shown.
Binary file removed static/assets/images/logos/腾讯云.jpg
Binary file not shown.
Binary file added static/assets/images/logos/腾讯云.webp
Binary file not shown.
Binary file removed static/assets/images/logos/语雀.jpg
Binary file not shown.
Binary file added static/assets/images/logos/语雀.webp
Binary file not shown.
Binary file removed static/assets/images/logos/语雀话题.png
Binary file not shown.

0 comments on commit b20a764

Please sign in to comment.