Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【问题】:边栏位置调整不起作用 #922

Open
2 of 3 tasks
EarendelH opened this issue Apr 23, 2024 · 0 comments
Open
2 of 3 tasks

【问题】:边栏位置调整不起作用 #922

EarendelH opened this issue Apr 23, 2024 · 0 comments
Labels
help 使用遇到问题(报错、样式与示例不一致等)

Comments

@EarendelH
Copy link

检查清单

  • 已经搜索过,没有发现类似 issue。
  • 已经搜索过主题文档,没有发现相关内容。
  • 已经尝试使用过最新版,问题依旧存在。

主题版本

5.x

复现地址

https://earendelh.github.io

问题描述

我在文件/EarendelH.github.io/_config.volantis.yml中修改sidebar的属性positionleft,执行hexo s后本地服务器成功修改为左侧,但在hexo d部署后通过https://earendelh.github.io链接访问博客时,边栏位置没有更改,我已尝试过清除浏览器缓存,并且通过同时修改shape,等待足够长时间的方法,确认不是部署时间过短的问题。
image

配置文件

站点配置文件

在这里粘贴替换 `blog/_config.yml` 中修改过的部分

主题配置文件

############################### Sidebar ############################### > start
sidebar:
  position: left # left right
  # 主页、分类、归档等独立页面
  for_page: [blogger, category, tagcloud, donate]
  # layout: docs/post 这类文章页面
  for_post: [toc]
  # 侧边栏组件库
  widget_library:
    # ---------------------------------------
    # blogger info widget
    blogger:
      class: blogger
      display: [desktop, mobile] # [desktop, mobile]
      avatar: /images/authoricon.jpg # https://gcore.jsdelivr.net/gh/volantis-x/cdn-org/blog/[email protected]
      shape: rectangle # circle, rectangle
      url: /about/
      title: Earendel
      subtitle: 一名大一小萌新
      jinrishici: true # Poetry Today. You can set a string, and it will be displayed when loading fails.
      social:
        - icon: fa-solid fa-envelope
          url: mailto:[email protected]
        - icon: fab fa-github
          url: https://github.com/EarendelH/
    # ---------------------------------------
    # toc widget (valid only in articles)
    toc:
      class: toc
      display: [desktop, mobile] # [desktop, mobile]
      sticky: true
      header:
        icon: fa-solid fa-list
        title: 本文目录
      list_number: false
      min_depth: 2
      max_depth: 5
    # ---------------------------------------
    # music
    music:
      class: music
      display: [desktop, mobile] # [desktop, mobile]
      pjaxReload: false
    # ---------------------------------------
    # category widget
    category:
      class: category
      display: [desktop] # [desktop, mobile]
      header:
        icon: fa-solid fa-folder-open
        title: 文章分类
        url: /blog/categories/
    # ---------------------------------------
    # tagcloud widget
    tagcloud:
      class: tagcloud
      display: [desktop, mobile] # [desktop, mobile]
      header:
        icon: fa-solid fa-tags
        title: 热门标签
        url: /blog/tags/
      min_font: 14
      max_font: 24
      color: true
      start_color: '#999'
      end_color: '#555'
    # ---------------------------------------
    # qrcode widget
    qrcode:
      class: qrcode
      display: [desktop, mobile] # [desktop, mobile]
      height: 64px  # Automatic height if not set
      images:
        - volantis-static/media/org.volantis/blog/qrcode/[email protected] # https://gcore.jsdelivr.net/gh/volantis-x/cdn-org/blog/qrcode/[email protected]
        - volantis-static/media/org.volantis/blog/qrcode/[email protected] # https://gcore.jsdelivr.net/gh/volantis-x/cdn-org/blog/qrcode/[email protected]
    # ---------------------------------------
    # webinfo widget
    webinfo:
      class: webinfo
      display: [desktop]
      header:
        icon: fa-solid fa-award
        title: 站点信息
      type:
        article:
          enable: true
          text: '文章数目:'
          unit: ''
        runtime:
          enable: true
          data: '2024/03/13'    # 填写建站日期
          text: '已运行时间:'
          unit: ''
        wordcount:
          enable: false
          text: '本站总字数:'   # 需要启用 wordcount
          unit: ''
        visitcounter:
          enable: true
          siteuv:
            text: '本站访客数:'
            unit: ''
          sitepv:
            text: '本站总访问量:'
            unit: ''
        lastupd:
          enable: true
          friendlyShow: true    # 更友好的时间显示
          text: '最后活动时间:'
          unit: ''
    # ---------------------------------------
    # lastupdate widget
    lastupdate:
      class: lastupdate
      display: [desktop, mobile]
      header:
        icon: fa-solid fa-clock WISTERIA
        title: 最近更新
############################### Sidebar ############################### > end

环境信息

node.js & npm

在这里粘贴替换 `node -v && npm -v` 输出的信息
v20.12.2
10.5.2

package.json

在这里粘贴替换 `npm ls --depth 0` 输出的信息

npm ERR! code ELSPROBLEMS
npm ERR! invalid: [email protected] /Users/earendelh/Blogs/EarendelH.github.io/node_modules/hexo-renderer-marked
npm ERR! invalid: [email protected] /Users/earendelh/Blogs/EarendelH.github.io/node_modules/hexo
[email protected] /Users/earendelh/Blogs/EarendelH.github.io
├── [email protected] (git+ssh://[email protected]/xcodebuild/hexo-asset-image.git#3c114cf0c0343ab28469635085b225fcae7fb9d3)
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] invalid: "^6.3.0" from the root project
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected] invalid: "^7.2.0" from the root project


npm ERR! A complete log of this run can be found in: /Users/earendelh/.npm/_logs/2024-04-23T07_29_27_514Z-debug-0.log

@EarendelH EarendelH added the help 使用遇到问题(报错、样式与示例不一致等) label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help 使用遇到问题(报错、样式与示例不一致等)
Projects
None yet
Development

No branches or pull requests

1 participant