博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
盖茨比乔布斯_盖茨比,如何更改图标
阅读量:2509 次
发布时间:2019-05-11

本文共 1210 字,大约阅读时间需要 4 分钟。

盖茨比乔布斯

I created a site using and I wanted to change the favicon.

我使用创建了一个网站,我想更改网站图标。

I quickly looked at how to change it, and the process was very simple.

我Swift研究了如何更改它,过程非常简单。

The favicon by default is the image static/favicon.ico. Just change that, and you’re set.

默认情况下,图标图标为static/favicon.ico图像。 只需更改它,就可以设置。

If you’re using the , the favicon by default is the image src/images/gatsby-icon.png.

如果您使用的是 ,则默认情况下,图标图标为src/images/gatsby-icon.png

You don’t have to use that path, or the same format - the image can also be an SVG image, for example: open the gatsby-config.js file and change the plugins.gatsby-plugin-sharp.options.icon property from src/images/gatsby-icon.png to the one you want.

您不必使用该路径或相同格式-该图像也可以是SVG图像,例如:打开gatsby-config.js文件并更改plugins.gatsby-plugin-sharp.options.icon属性从src/images/gatsby-icon.png到您想要的那个。

For example I put my new favicon image in src/images/logo-small.svg and I changed that configuration property to point to it.

例如,我将新src/images/logo-small.svg图像放在src/images/logo-small.svg并更改了该配置属性以指向它。

I ran gatsby develop and I could immediately see Gatsby updated all the favicon images, in different sizes:

我运行了gatsby develop ,我立即可以看到Gatsby更新了所有不同尺寸的favicon图像:

翻译自:

盖茨比乔布斯

转载地址:http://zamgb.baihongyu.com/

你可能感兴趣的文章
学习笔记_vnpy实战培训day03
查看>>
VNPY- VnTrader基本使用
查看>>
VNPY - CTA策略模块策略开发
查看>>
VNPY - 事件引擎
查看>>
MongoDB基本语法和操作入门
查看>>
学习笔记_vnpy实战培训day04_作业
查看>>
OCO订单(委托)
查看>>
学习笔记_vnpy实战培训day06
查看>>
回测引擎代码分析流程图
查看>>
Excel 如何制作时间轴
查看>>
matplotlib绘图跳过时间段的处理方案
查看>>
vnpy学习_04回测评价指标的缺陷
查看>>
iOS开发中遇到的问题整理 (一)
查看>>
Linux(SUSE 12)安装jboss4并实现远程访问
查看>>
Neutron在给虚拟机分配网络时,底层是如何实现的?
查看>>
netfilter/iptables全攻略
查看>>
Overlay之VXLAN架构
查看>>
Eclipse : An error occurred while filtering resources(Maven错误提示)
查看>>
在eclipse上用tomcat部署项目404解决方案
查看>>
web.xml 配置中classpath: 与classpath*:的区别
查看>>