相册使用文档


相册使用文档

在博客中source文件夹的_data文件夹下创建galleries.json文件

格式

[
  {
    "name": "2021",
    "cover": "https://cdn.staticaly.com/gh/DragonLanQAQ/blog-img-cdn@main/VRChat/VRChat_1920x1080_2021-12-18_21-48-18.589.png",
    "description": "2021纪念",
    "contents": [
      "/medias/video/nianbao.mp4",
      "https://cdn.staticaly.com/gh/DragonLanQAQ/blog-img-cdn@main/VRChat/xxx.png",
      "https://cdn.staticaly.com/gh/DragonLanQAQ/blog-img-cdn@main/VRChat/xxx.png",
      "https://cdn.staticaly.com/gh/DragonLanQAQ/blog-img-cdn@main/VRChat/xxx.png"
    ],
    "tinies": [
      "",
      "https://cdn.staticaly.com/gh/DragonLanQAQ/blog-img-cdn@main/VRChat/xxx-tiny.png",
      "https://cdn.staticaly.com/gh/DragonLanQAQ/blog-img-cdn@main/VRChat/xxx-tiny.png",
      "https://cdn.staticaly.com/gh/DragonLanQAQ/blog-img-cdn@main/VRChat/xxx-tiny.png"
    ],
    "descriptions": [
      "不填的内容用空字符串表示,请一一对应",
      "contents代表点击后跳转的图片连接 2021/8/29",
      "tinies代表页面上显示的缩略图 2021/8/29",
      "descriptions代表视频格式文件点击后显示的描述 2021/8/20"
    ]
  },
  {
    "name": "2022",
    "cover": "https://cdn.staticaly.com/gh/DragonLanQAQ/blog-img-cdn@main/VRChat/VRChat_1920x1080_2021-12-18_21-48-18.589.png",
    "description": "2022纪念",
    "contents": [
      "https://cdn.staticaly.com/gh/DragonLanQAQ/blog-img-cdn@main/VRChat/xxx.png",
      "https://cdn.staticaly.com/gh/DragonLanQAQ/blog-img-cdn@main/VRChat/xxx.png",
      "https://cdn.staticaly.com/gh/DragonLanQAQ/blog-img-cdn@main/VRChat/xxx.png"
    ],
    "tinies": [
      "https://cdn.staticaly.com/gh/DragonLanQAQ/blog-img-cdn@main/VRChat/xxx-tiny.png",
      "https://cdn.staticaly.com/gh/DragonLanQAQ/blog-img-cdn@main/VRChat/xxx-tiny.png",
      "https://cdn.staticaly.com/gh/DragonLanQAQ/blog-img-cdn@main/VRChat/xxx-tiny.png",
    ],
    "descriptions": [
      "1 2021/8/29",
      "2 2021/8/29",
      "3 2021/8/20"
    ]
  }
]

在URL里使用转义

殊字符 说明 16进制值
+ URL 中+号表示空格 %2B
空格 URL中的空格可以用+号或者编码 %20
( 左括号 %28
) 右括号 %29
/ 分隔目录和子目录 %2F
? 分隔实际的URL和参数 %3F
% 指定特殊字符 %25
# 表示书签 %23
& URL中指定的参数间的分隔符 %26
= URL中指定参数的值 %3D

文章作者: 斓龙
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 斓龙 !
  目录