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

修复png 文件和social-icon.styl 中路径生成算法不匹配导致两个社交图标无法显示的问题 #38

Merged
merged 1 commit into from Feb 18, 2016

Conversation

Projects
None yet
2 participants
@Arondight

Arondight commented Feb 18, 2016

问题源于文件social-icon.styl,其中生成的路径和文件的实际路径不符,导致Github 和V2EXX 两个Icon 无法显示。

    img-logo = {
        "新浪微博": #ecc260
        "知乎": #0078d8
        "豆瓣": #06c611
        GitHub: white
        V2EX: #e4cdb4
        TiddlyWiki: #6283dd
        "简书": #e99888
        SegmentFault: #018f56
        "网易云音乐": #e51e02
        "虾米音乐": #ff6a00
    }

    for name, color in img-logo
        .{name}:before
            content '\f18a'
            color transparent
        #{name}
            background: url('/img/' + name + '.png') center no-repeat color

而这两个文件的实际路径为:
/img/github.png
/img/v2ex.png

从而导致不匹配。

@Arondight

This comment has been minimized.

Show comment
Hide comment
@Arondight

Arondight Feb 18, 2016

本地fetch 后在自己的blog 本地测试通过

Arondight commented Feb 18, 2016

本地fetch 后在自己的blog 本地测试通过

MOxFIVE added a commit that referenced this pull request Feb 18, 2016

Merge pull request #38 from Arondight/master
修复png 文件和social-icon.styl 中路径生成算法不匹配导致两个社交图标无法显示的问题

@MOxFIVE MOxFIVE merged commit 443f457 into MOxFIVE:master Feb 18, 2016

@MOxFIVE

This comment has been minimized.

Show comment
Hide comment
@MOxFIVE

MOxFIVE Feb 18, 2016

Owner

我没注意同步修改,谢谢修复

Owner

MOxFIVE commented Feb 18, 2016

我没注意同步修改,谢谢修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment