Skip to content

node_modules 里面的img如何跟随git更改 #168

@Gainlos

Description

@Gainlos
  • [ x] I am using the latest version of hexo-theme-ayer.
  • [x ] I have reviewed the latest Roadmap on GitHub and searched for current Ayer Issues, which does not help me.

Expected behavior

在_config-ayer.yml中会指定如alipay.img的文件路径;如果我想更换这个路径,我只能去node_modules里的img文件夹改。但是.gitignore会把node_modules里的文件忽略掉,这意味着我无法在远程仓库记录我的更改。我希望有一种方式能让我在远程仓库同步对如alipay.img的更改

# 打赏
# 打赏type设定:0-关闭打赏; 1-文章对应的md文件里有reward:true属性,才有打赏; 2-所有文章均有打赏
reward_type: 2
# 打赏wording
reward_wording: "请我喝杯咖啡吧~"
# 支付宝二维码图片地址,跟你设置logo的方式一样。比如:/images/alipay.jpg
alipay: /images/alipay.jpg  
# 微信二维码图片地址
weixin: /images/wechat.jpg

如上,/images/alipay.jpg定位在node_modules里面,这是我不愿看到的,我希望能在根目录对他重定义,但我不知道如何实现,请为我解惑。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions