Coder Social home page Coder Social logo

Comments (5)

nanxiaobei avatar nanxiaobei commented on June 15, 2024

这个 ... 代码块突出效果,是故意设计成这样的。

from hugo-paper.

dairongpeng avatar dairongpeng commented on June 15, 2024

正如我当前issues里面的提问,github的markdown渲染是,代码块和标题以及正文是对齐的,这样不会显得很突兀。这个好修复么,或者我应该修改哪里,可以改成左对齐的呢。我使用的是子模块,也比较方便修改源代码。非常感谢!

from hugo-paper.

dairongpeng avatar dairongpeng commented on June 15, 2024

这个 ... 代码块突出效果,是故意设计成这样的。

如果只改具体的博客对应的html文件,这个作用返回比较小,每篇博客可能都需要处理,而且技术博客这种代码块还挺多的。所以期望可以从生成器框架的的位置来修复,期待可以提供一个办法,谢啦

from hugo-paper.

nanxiaobei avatar nanxiaobei commented on June 15, 2024

hugo-paper/assets/main.css

Lines 1627 to 1628 in 0fdcdf3

margin-left: -2rem;
margin-right: -2rem;

article pre { } 下的 margin-left margin-right 这两行去掉。

from hugo-paper.

dairongpeng avatar dairongpeng commented on June 15, 2024

解决了,感谢!

from hugo-paper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.