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

如何修改favicon.ico #32

Closed
yufengwang opened this issue Oct 19, 2017 · 3 comments
Closed

如何修改favicon.ico #32

yufengwang opened this issue Oct 19, 2017 · 3 comments

Comments

@yufengwang
Copy link

弱弱的问一下,如何修改homeland的favicon.ico....

@huacnlee
Copy link
Member

huacnlee commented Oct 19, 2017

  1. 图片在社区里面用附件的方式上传,获得 URL;
  2. 打开管理后台增加 "全局设置" -> custom_head_html 里面增加 <link> 标签

例如:

<link rel="icon" href="//ruby-china-files.b0.upaiyun.com/photo/2016/c309db0b49cab85a32f756541ea0e2b0.png" />

同时你还可以在这里自定义 CSS

以下是 Ruby China 定制的内容:

<meta name="apple-itunes-app" content="app-id=1072028763" />
<meta name="google-site-verification" content="YRy3qLejfhrOT_FxPRQn2p5h_ykCLOmhpP3Q5QUWdHU" />
<link rel="icon" href="//ruby-china-files.b0.upaiyun.com/photo/2016/c309db0b49cab85a32f756541ea0e2b0.png" />
<link rel="mask-icon" href="//ruby-china-files.b0.upaiyun.com/photo/2016/8c03593544987c35a95d5f2e83e86e61.svg!large" />
<link rel="apple-touch-icon" href="//ruby-china-files.b0.upaiyun.com/photo/2017/689eac2db74b87236f371e2898580746.png!large" />

<style>
body { background: #e5e5e5; }
.header .navbar-brand b { color: #EB5424; }
.header #main-nav-menu .navbar-nav li a:hover, .header #main-nav-menu .navbar-nav li.active a, .header #main-nav-menu .navbar-nav li.active a:focus, .header #main-nav-menu .navbar-nav li.active a:hover { color: #EB5424; border-color: #EB5424; }
.header .navbar-inverse .navbar-nav .open .dropdown-menu li.active a { color: #EB5424; }
.turbolinks-progress-bar { color: #EB5424 !important; }
abbr {  text-decoration: none; }
</style>

@yufengwang
Copy link
Author

yufengwang commented Oct 19, 2017

那我是要把图片放到homeland-docker的哪个文件夹里了...

@huacnlee
Copy link
Member

图片在社区里面用附件的方式上传,获得 URL;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants