MOxFIVE / hexo-theme-yelee

简而不减 Hexo 双栏博客主题; Another simple and elegant theme for Hexo.
http://moxfive.xyz/
1.38k stars 328 forks source link

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

Closed Arondight closed 8 years ago

Arondight commented 8 years ago

问题源于文件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 commented 8 years ago

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

MOxFIVE commented 8 years ago

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