gmm
V2EX  ›  问与答

请问大家 Hugo 的 PaperMod 主题如何调整代码为等宽字体?

  •  
  •   gmm · Oct 10, 2021 · 1394 views
    This topic created in 1679 days ago, the information mentioned may be changed or developed.

    在配置中,只能更改 style,但是只是渲染的颜色变化,字体还是非等宽的。 ε=(´ο`*)))唉

    markup:
      highlight:
        lineNos: true
        codeFences: true
        guessSyntax: true
        style: solarized-dark
        # style: monokai
        tabWidth: 4
        noClasses: true
        lineNumbersInTable: true
    
    
    2 replies    2021-10-11 21:54:27 +08:00
    gmm
        1
    gmm  
    OP
       Oct 10, 2021
    非常抱歉,原来是我的浏览器问题,我的浏览器内置的等宽字体是不等宽的,我设置了一下,就好了。-_-||
    LeoJ
        2
    LeoJ  
       Oct 11, 2021   ❤️ 1
    css 里给 body 加个默认字体吧,避免兼容性问题~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2781 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 1053ms · UTC 11:32 · PVG 19:32 · LAX 04:32 · JFK 07:32
    ♥ Do have faith in what you're doing.