I do not follow,i lives is always all you wantAurora
快速开始
  • 问题及必读

    • Aurora主题问题解决
  • 所有配置

    • 所有配置
  • 主题样式配置

    • /style/code-style.md
    • 自定义图标
    • /style/live2d.md
    • 更改图标以及覆盖主题样式
    • 注册组件
  • 静态文件

    • /base/public.md
  • 插件使用

    • /base/plugin.md
  • docs目录结构

    • /base/docs.md
  • cmd管理员权限

    • /base/admin.md
  • npm常见命令

    • /base/command.md
  • node安装教程

    • /node.md
  • bug

    • Aurora主题bug记录和优化
  • 更新日志

    • 1.0.0 (2021-11-27)
  • 运行常见错误

    • /issue/common.md
  • home

    • 部署
  • 其他配置

    • 评论
    • 页面配置
  • webpack和vite切换

    • /base/vite-webpack.md
  • 时间轴

    • vuepress-plugin-archive
  • 浪漫气泡

    • vuepress-plugin-bubble
  • 说说

    • Vuepress-plugin-coze
  • 音乐播放器

    • vuepress-plugin-player
  • 看板娘

    • /style/live2d.md
  • 我?

    • Me
  • 说说

    • 说说1
    • 说说2
  • 相册

    • photo
  • 标签

    • tag
  • 时间轴

    • archive
友情链接
案例
Aurora

 
 
  • 程
  • 程
  • 程
  • 程
  • 程
  • 程
  • 程
  • 程
  • 圆角
    10
    透明度
    1
      总字数0
      时长0
      评论数
      总阅读数

    生成海报3 

    # 顶部图片

    顶部图片是一个全局组件,可以直接使用,位置docs/.vuepress/theme/lib/client/components/global/TopImage.vue

    # 设置图片地址

    从v1.3.2版本开始,便加入了定制顶部图片的选项,你可以使用随机图片接口,也可以使用自己的图片地址

    # 使用随机图片接口

    module.exports = {
    
        themeConfig: {
    		//首页文章列表封面图api接口
            homePageImgApi: "https://api.ixiaowai.cn/api/api.php",
        }
    }
    
    1
    2
    3
    4
    5
    6
    7

    TIP

    首页文章列表图片和文章,标签等顶部图片共同使用一个图片api接口

    # 使用自己的图片

    主题默认使用的是随机图片,如果你想改成自己的图片的话,那么需要开启此功能

    module.exports = {
    
        themeConfig: {
    		//自定义顶部图片
            customTopImg: {
                //是否启用定制顶部图片,控制全局,如果关闭,那么将使用随机图片,随机图片接口可以自己设置
                custom: true,
    
                //文章顶部图片,数组,每次从数组中随机选择一张
                page: [
                    "https://picoss.cco.vin/animate/wall/555260.png",
                    'https://picoss.cco.vin/animate/wall/404901.png',
                    'https://picoss.cco.vin/animate/wall/734386.png'
                ],
                //友情链接页面
                friend: [
                    "https://picoss.cco.vin/animate/wall/669.png",
                    'https://picoss.cco.vin/animate/wall/5332.png'
                ],
                //标签页面
                tag: [
                    "https://picoss.cco.vin/animate/wall/763311.png"
                ],
                //心情页面
                mood: [
                    "https://picoss.cco.vin/animate/wall/5849.png"
                ],
            },
        }
    }
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30

    # 组件

    # 代码

    <template>
      <div v-if="isShowTopImg" :style="setBackgroundUrl" id="page-top">
        <div v-if="isShowHeadLine">
          <h1>{{headLine}}</h1>
        </div>
      </div>
    </template>
    
    1
    2
    3
    4
    5
    6
    7

    # props

    props: {
        isShowTopImg: {
          type: Boolean,
          default() {
            return false
          }
        },
        isShowHeadLine: {
          type: Boolean,
          default() {
            return false
          }
        },
        headLine: {
          type: String,
          default() {
            return "";
          }
        }
      }
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    propsdes
    isShowTopImg是否展示顶部图片
    isShowHeadLine是否展示标题,针对于文章页面
    headLine标题名称

    # 额外使用组件

    如需在自己需要的地方使用,可以通过下面方式,传入对应值就行

    <top-image :is-show-top-img="..."
               :is-show-head-line="..."
               :head-line="."/>
    
    1
    2
    3

    # 海报功能配置

    海报功能配置

  • 奶茶
    $ 18
    全味奶茶
    ¥ 11
    初尘
    主题太棒了
    ¥ 7

    推荐阅读

    点击评论
    喜欢动漫,Coding目前是一名大三学生,CS专业,坐标西南边陲
    文章
    41
    标签
    31
    类别
    3
    Github
    文章目录
    最新文章
    公告
  • 该博客主题为Aurora,vuepress-theme-Aurora
  • 主题交流群: 681602026,欢迎各位大佬进群交流
  • 标签
    类别
    demo类别
    plugin
    Copyright © by qsyyke All Rights Reserved.

    滇公网安备 53060202000142号

    theme Aurora by qsyyke
    小破站已运行357天4小时27分25秒
    Your browser does not support this audio format.