当前位置:网站首页>Next -21- 添加相册系列 - 1- 框架设置
Next -21- 添加相册系列 - 1- 框架设置
2022-08-04 14:48:00 【为为为什么】
Next 主题原生没有相册功能,我又是摄影爱好者,不得不下点功夫在这了。本系列介绍添加相册的方法,本文是开篇,记录Next主题下开启相册按钮和开启相应页面,后面的一边研究一边发。
Next设置
- 新建hexo page
hexo new page photos
将会在
source/
下创建photos/index.md
- 在index.md中添加
type: photos
title: photos
date: 2020-03-22 23:03:55
type: photos
- 修改
主题配置文件
,在menu
字段中加入photos: /photos/ || image
# Usage: `Key: /link/ || icon`
# Key is the name of menu item. If the translation for this item is available, the translated text will be loaded, otherwise the Key name will be used. Key is case-senstive.
# Value before `||` delimiter is the target link, value after `||` delimiter is the name of Font Awesome icon.
# When running the site in a subdirectory (e.g. yoursite.com/blog), remove the leading slash from link value (/archives -> archives).
# External url should start with http:// or https://
menu:
home: / || home
about: /about/ || user
tags: /tags/ || tags
categories: /categories/ || th
archives: /archives/ || archive
photos: /photos/ || image
#schedule: /schedule/ || calendar
sitemap: /sitemap.xml || sitemap
#commonweal: /404/ || heartbeat
- 修改 themes/next/languages/zh-Hans.yml,添加photos字段
menu:
home: 首页
archives: 归档
categories: 分类
tags: 标签
about: 关于
search: 搜索
commonweal: 公益404
something: 有料
sitemap: 站点地图
photos: 相册
- 此时效果
边栏推荐
- 没有Project Facets的解决方法
- 7 天找个 Go 工作,Gopher 要学的条件语句,循环语句 ,第3篇
- CCF GLCC正式开营|九州云开源专家携丰厚奖金,助力高校开源推广
- AOSP built-in APP franchise rights white list
- 微软表示将向内部网络安全专家共享数据 为企业提供更安全保护
- Hangzhou Electric School Competition (Counter Attack Index)
- leetcode: 255 Verify preorder traversal sequence binary search tree
- [Beiya data recovery] IBM System Storage storage lvm information lost data recovery solution
- How to Identify Asynchronous I/O Bottlenecks
- 并发程序的隐藏杀手——假共享(False Sharing)
猜你喜欢
技术分享| 融合调度系统中的电子围栏功能说明
杭电校赛(逆袭指数)
Hangzhou Electric School Competition (Counter Attack Index)
在腾讯,我的试用期总结!
I/O stream summary
[LeetCode] 38. Appearance sequence
leetcode: 254. Combinations of factors
leetcode: 251. Expanding 2D Vectors
token 过期后,如何自动续期?
Bluetooth Technology|In the first half of the year, 1.3 million charging piles were added nationwide, and Bluetooth charging piles will become the mainstream of the market
随机推荐
JCMsuite Application: Oblique Plane Wave Propagation Transmission Through Aperture
F.金玉其外矩阵(构造)
如何在ubuntu环境下安装postgresql并配置远程访问
16、学习MySQL 正则表达式
[The Art of Hardware Architecture] Study Notes (1) The World of Metastability
CCF GLCC正式开营|九州云开源专家携丰厚奖金,助力高校开源推广
数据库恢复
【Web技术】1401- 图解 Canvas 入门
JCMsuite应用:倾斜平面波传播透过光阑的传输
Cisco-小型网络拓扑(DNS、DHCP、网站服务器、无线路由器)
How to write SQL statements: the usage of Update, Case, and Select together
Leetcode: 215 disorderly to find the first big k element in the array
leetcode: 212. Word Search II
蓝牙技术|上半年全国新增 130 万台充电桩,蓝牙充电桩将成为市场主流
理论篇1:深度学习之----LetNet模型详解
leetcode:241. 为运算表达式设计优先级
1403. 非递增顺序的最小子序列
leetcode:215无序数组中找第k大的元素
一看就会的Chromedriver(谷歌浏览器驱动)安装教程
代码随想录笔记_动态规划_1049最后一块石头的重量II