Skip to content

Commit

Permalink
🎉 💄 Big change for upgrade to v4.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
elkan1788 committed Jul 22, 2024
1 parent 3851928 commit a988072
Show file tree
Hide file tree
Showing 24 changed files with 148 additions and 83 deletions.
42 changes: 14 additions & 28 deletions config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ toc:
footer:
# 启动谷歌翻译功能
# Enable google translate in footer
translate: true
translate: false
# 站点开始年份,默认为当下时间的年份
# Specify the year when the site was setup.
# If not defined, current year will be used.
Expand Down Expand Up @@ -295,8 +295,11 @@ footer:
url: /imgs/vendors/upyun.png
width: 43
link: https://upyun.com
- name: Webify
link: https://webify.cloudbase.net
- name: Github
link: https://github.com
image:
url: /imgs/vendors/github.svg
width: 14


# ---------------------------------------------------------------
Expand Down Expand Up @@ -856,7 +859,7 @@ chat:
# Gitter Support
# For more information: https://gitter.im
gitter:
enable: true
enable: false
room: hugo-next/community


Expand Down Expand Up @@ -950,30 +953,13 @@ canvasRibbon:


# ---------------------------------------------------------------
# CDN 服务(暂时只支持 unpkg 和 cndjs)
# CDN 服务
# CDN Settings
# ---------------------------------------------------------------

vendors:
# The CDN provider of NexT internal scripts.
# Available values: local | unpkg | cdnjs | qiniu | bootcdn | custom
# Warning: If you are using the latest master branch of NexT, please set `internal: local`
internal: local
# The default CDN provider of third-party plugins.
# Available values: local | unpkg | cdnjs| qiniu | bootcdn | custom
# Dependencies for `plugins: local`: https://github.com/next-theme/plugins
plugins: qiniu
# TODO
# Custom CDN URL
# For example:
# custom_cdn_url: https://cdn.jsdelivr.net/npm/${npm_name}@${version}/${minified}
# custom_cdn_url: https://cdnjs.cloudflare.com/ajax/libs/${cdnjs_name}/${version}/${cdnjs_file}
#custom_cdn_url:

# TODO
# Assets
# Accelerate delivery of static files using a CDN
# The js option is only valid when vendors.internal is local.
css: css
js: js
images: imgs
# The CDN provider of NexT internal scripts.
# Available values: local | cdn
internal: local
# The default CDN provider of third-party plugins.
# Available values: local | cdnjs | unpkg | jsdelivr | staticfile | bootcdn | 7ed | zstatic | zeyao | custom
plugins: local
6 changes: 6 additions & 0 deletions config/development/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
siteState:
views:
plugin: 51la

analytics:
laId: JiZkaipzkPyiCL8x
7 changes: 4 additions & 3 deletions content/post/custom-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ date: 2022-09-10T21:02:32+08:00
lastmod: 2022-09-10T21:02:32+08:00

categories:
- 示例
- 示例文章

tags:
- 自定义
- 个性化
- 布局

url: post/custom-files.html
url: "demo/custom-files.html"
toc: true
---

Expand All @@ -38,7 +39,7 @@ customFilePath:

{{< /note >}}

然后在站点的根目录下创建 `layouts/partials` 2个目录,用于存放自定布局设计文件,另外在站点根目录下创建 `statics/css` 2个目录,用于存放自定义 CSS 样式文件。一切就绪后,就可以参考如下的步骤,完成自己的设计想法。
然后在站点的根目录下创建 `layouts/partials` 2个目录,用于存放自定布局设计文件,另外在站点根目录下创建 `static/css` 2个目录,用于存放自定义 CSS 样式文件。一切就绪后,就可以参考如下的步骤,完成自己的设计想法。

## 侧边栏设计

Expand Down
6 changes: 4 additions & 2 deletions content/post/emoji-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ date: 2022-06-04T19:46:45+08:00
lastmod: 2022-06-04T19:46:45+08:00

categories:
- 示例
- 示例文章
- 语法

tags:
- 表情
- emoji

url: post/emoji-support.html
url: "demo/emoji-support.html"
---

Emoji 可以通过多种方式在 Hugo 项目中启用。
Expand Down
6 changes: 5 additions & 1 deletion content/post/external-link.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ date: 2022-06-01T15:59:41+08:00
lastmod: 2022-06-01T15:59:41+08:00

categories:
- 示例
- 示例文章
tags:
- Hugo
- NexT

expand: true
extlink: https://gitee.com/hugo-next/hugo-theme-next/
#comment:
# enable: false
#toc: false
#url: "external-link.html"
weight: 1
---

Expand Down
9 changes: 5 additions & 4 deletions content/post/hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ lastmod: 2022-06-03T16:43:23+08:00
date: 2022-06-02T11:52:03+08:00

categories:
- 博客
- 开始建站

tags:
- Hugo
- 开始
- Hugo
- 开始

url: post/hello-world.html
url: demo/hello-world.html
toc: true
weight: 2
---
Expand Down
40 changes: 40 additions & 0 deletions content/post/image-viewer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
title: "图像浏览工具 "
description: "默认会对文章内的图片, 进行图片浏览,点击图片可以查看大图,点击空白处可以关闭。"
keywords: "image,图像,浏览器,相册"

date: 2024-07-21T10:28:12+08:00
lastmod: 2024-07-21T10:28:12+08:00

categories:
- 示例文章

tags:
- 图像
- 相册
- 浏览

url: "demo/image-viewer.html"
toc: false
---

本主题自带图像浏览器功能,支持对文章区域内出现的图片进行浏览,点击图片可以查看大图,点击空白处可以关闭。不需要配置任何参数,只要在文章里面相应的位置添加图片信息即可 。

<!--more-->

图像浏览器引用了 [fengyuanchen](https://fengyuanchen.github.io/) 开发的 [viewerjs](https://fengyuanchen.github.io/viewerjs/),支持显示图像名称,尺寸,旋转,缩放,播放等功能。可点击如下的示例图像查看体验:

## 动物

![cute-scottish-fold-cat](/post/image-viewer/preview_cute-scottish-fold-cat.jpg)
![scottish-fold-kitten](/post/image-viewer/preview_scottish-fold-kitten.jpg)
![hourses](/post/image-viewer/preview_horses.jpg)
![owl-family-background](/post/image-viewer/preview_owl-family-background.jpg)

## 风景

![luxury-resort-in-maldives](/post/image-viewer/preview_luxury-resort-in-maldives.jpg)
![sea-shell](/post/image-viewer/preview_sea-shell.jpg)
![the-arch-sunset](/post/image-viewer/preview_the-arch-sunset.jpg)
![norway-autumn-landscape](/post/image-viewer/preview_norway-autumn-landscape.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 added content/post/image-viewer/preview_horses.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 content/post/image-viewer/preview_sea-shell.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 7 additions & 4 deletions content/post/markdown-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ lastmod: 2022-06-03T11:52:18+08:00
publishDate: 2022-06-03T11:52:18+08:00

author: Mainroad
originLink: https://mainroad-demo.netlify.app/post/basic-elements/
originLink: https://mainroad-demo.netlify.app/demo/basic-elements/

categories:
- 示例
- 示例文章
- Markdown语法

tags:
- Markdown
- 语法

toc: false
url: post/markdown-syntax.html
draft: false
url: demo/markdown-syntax.html
---

仅以此篇文章来测试下在 `NexT` 主题中在通过 `Hugo` 引擎来建站时,是否支持 `Markdown` 文件内容中所写的各种语法,并展示下实际的效果。
Expand Down Expand Up @@ -205,4 +208,4 @@ X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
<mark>比特作为信息论中的信息单位,也被称为 shannon </mark>,以信息论领域的创始人 Claude shannon 的名字命名。

参考:
- 来自 **Mainroad** 主题的 [Basic Elements](https://mainroad-demo.netlify.app/post/basic-elements/) 内容
- 来自 **Mainroad** 主题的 [Basic Elements](https://mainroad-demo.netlify.app/demo/basic-elements/) 内容
Loading

0 comments on commit a988072

Please sign in to comment.