当前位置:网站首页>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: 相册- 此时效果
边栏推荐
- leetcode: 253. How many meeting rooms are required at least
- 企业级优化
- Theory 1: Deep Learning - Detailed Explanation of the LetNet Model
- CloudCompare&PCL 点云按网格划分(点云分幅)
- Almost all known protein structures in the world are open sourced by DeepMind
- 基于 Next.js实现在线Excel
- License server system does not support this version of this feature
- 【硬件架构的艺术】学习笔记(1)亚稳态的世界
- leetcode:250. 统计同值子树
- 【HMS core】【Media】【视频编辑服务】 在线素材无法展示,一直Loading状态或是网络异常
猜你喜欢

Technology sharing | Description of the electronic fence function in the integrated dispatching system

Crawler - basic use of selenium, no interface browser, other uses of selenium, cookies of selenium, crawler cases

JCMsuite Application: Oblique Plane Wave Propagation Transmission Through Aperture

Lixia Action | Kyushu Yunzhang Jinnan: Open source is not a movement for a few people, popularization is the source

理论篇1:深度学习之----LetNet模型详解

基本介绍PLSQL

爬虫——selenium基本使用、无界面浏览器、selenium的其他用法、selenium的cookie、爬虫案例

Cisco-小型网络拓扑(DNS、DHCP、网站服务器、无线路由器)

Phasecraft连下两城,助力英国量子技术商业化加速!

X射线掠入射聚焦反射镜
随机推荐
【剑指offer33】二叉搜索树的后序遍历序列
leetcode:254. 因子的组合
FRED Application: Capillary Electrophoresis System
《分布式云最佳实践》分论坛,8月11日深圳见
爬虫——动作链、xpath、打码平台使用
RS|哨兵二号(.SAFE格式)转tif格式
【HMS core】【Media】【视频编辑服务】 在线素材无法展示,一直Loading状态或是网络异常
【硬件架构的艺术】学习笔记(1)亚稳态的世界
并发程序的隐藏杀手——假共享(False Sharing)
如何在ubuntu环境下安装postgresql并配置远程访问
leetcode: 259. Smaller sum of three numbers
idea removes spark logs
How to automatically renew the token after it expires?
【Today in History】August 4: First female Turing Award winner; NVIDIA acquires MediaQ; first Cybersecurity Challenge completed
Makefile 语法及使用笔记
7 天找个 Go 工作,Gopher 要学的条件语句,循环语句 ,第3篇
Problem solving-->Online OJ (18)
F.金玉其外矩阵(构造)
Theory 1: Deep Learning - Detailed Explanation of the LetNet Model
利用决策树找出最优特征组合