XPoet / hexo-theme-keep

:rainbow: A simple and light theme for Hexo. It makes you more focused on writing.
https://xpoet.cn
GNU Affero General Public License v3.0
1.34k stars 180 forks source link

hexo deploy sftp 到线上服务器,很多文件的大小都是 0,还有就是图标显示不出来 #319

Closed whh1009 closed 6 months ago

whh1009 commented 6 months ago

Issue Checklist | Issue 检查清单

Expected behavior | 预期行为

hexo deploy 通过 sftp 发布到远程服务器上,public 目录下的全部文件上传到远程服务器上。

Actual behavior | 实际行为

Steps to reproduce the behavior | 重现步骤

  1. First step ... (第一步 ...)
  2. Second step ... (第二步 ...)
  3. Third step ... (第三步 ...)

Node.js and NPM Information | Node.js 和 NPM 信息

node -v && npm -v
v20.10.0
10.2.3

Hexo Configuration | Hexo 配置

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "build": "hexo generate",
    "clean": "hexo clean",
    "deploy": "hexo deploy",
    "server": "hexo server"
  },
  "hexo": {
    "version": "7.1.1"
  },
  "dependencies": {
    "hexo": "^7.0.0",
    "hexo-all-minifier": "^0.5.7",
    "hexo-deployer-sftp": "^0.4.1",
    "hexo-filter-mathjax": "^0.9.0",
    "hexo-generator-archive": "^2.0.0",
    "hexo-generator-category": "^2.0.0",
    "hexo-generator-index": "^3.0.0",
    "hexo-generator-searchdb": "^1.4.1",
    "hexo-generator-sitemap": "^3.0.1",
    "hexo-generator-tag": "^2.0.0",
    "hexo-migrator-rss": "^1.1.0",
    "hexo-renderer-ejs": "^2.0.0",
    "hexo-renderer-marked": "^6.2.0",
    "hexo-renderer-stylus": "^3.0.0",
    "hexo-server": "^3.0.0",
    "hexo-theme-keep": "^4.1.1",
    "hexo-theme-landscape": "^1.0.0",
    "hexo-url-submission": "^2.0.0",
    "hexo-wordcount": "^6.0.1"
  }
}

Keep Configuration | Keep 配置

menu:
  home: / || fa-solid fa-home
  archives: /archives || fa-solid fa-box-archive
  tags: /tags || fa-solid fa-tags
  分类: /categories || fa-solid fa-layer-group

# 文章目录配置
toc:
  enable: true # 是否启用 values: true | false
  number: false # 给 TOC 目录结构自动加上数字编号 values: true | false
  expand_all: true # 展开所有目录结构 values: true | false
  init_open: true # 打开文章页时是否自动打开 TOC 目录结构 values: true | false
  layout: right # 用于设置 TOC 目录结构模块的布局位置,默认为 right (右侧) values: left | right

# 用于配置网站的计数功能,内置不蒜子计数
website_count:
  busuanzi_count:
    enable: true # Option values: true | false
    site_uv: true # Option values: true | false
    site_pv: true # Option values: true | false
    page_pv: true # Option values: true | false

# 站内搜索功能
local_search:
  enable: true # Option values: true | false
  preload: true # 使用搜索功能前是否提前进行预加载搜索数据

# 图片懒加载
lazyload:
  enable: true # Option values: true | false

# 页脚配置
footer:
  since: 2021 # The starting year of your website, Can be null
  word_count: true # Option values: true | false

  icp:
    enable: true # Option values: true | false
    record_code: xxxxx # ICP record code of your website
    url: https://beian.miit.gov.cn # Your ICP link url, Can be null

  site_deploy:
    enable: true # Option values: true | false
    provider: aliyun # Option values: github | vercel | netlify | gitee | aliyun | tencent_cloud | upyun
    url: # Your deployment provider url, Can be null

# 自定义样式
inject:
  enable: true
  css:
    - /css/custom.css
    - /css/font.css

Other Information | 其它信息

No response

XPoet commented 6 months ago

请检查你的 public 目录里面是否有 Hexo 成功编译构建之后的静态文件?

XPoet commented 6 months ago

未提供有效信息,该 Issue 关闭