Giter Club home page Giter Club logo

Comments (2)

Hifive55555 avatar Hifive55555 commented on July 21, 2024

菜单那个,在一个目录的 _index.md 里加入

[cascade]
  type = 'docs'

就可以在这个目录里包含的子目录渲染 sidebar。里面同级目录用 weight = 1 就可以更改页面顺序;用 next = "相对路径"prev = "相对路径" 就可以实现页面下方的下一页、上一页;用 linkTitle = "xxx" 就可以实现在 sidebar 显示的文章标题。

这个应该是在 layout/partials/ 里面可以改逻辑,也可以自己加几个模板,然后写自己的配置


至于那个主页展示效果,按他的 exampleSite,主页应该要加个 layout = "hextra-home" ,这样就是宽屏效果,而且这个模板不渲染 MarkDown。但是 hextra/hero-badge 和那些标题样式在里面渲染不成功是真的,只有 {{< hextra/feature-grid >}} {{< hextra/feature-card}} 可以成功渲染。我懒得改就干脆不用 hextra-home 了,不过我建议是看看 layout/ 里面的页面渲染逻辑,还是很好看懂的。
要是解决了记得踢我

from hextra.

whan1c avatar whan1c commented on July 21, 2024

菜单那个,在一个目录的 _index.md 里加入

[cascade]
  type = 'docs'

就可以在这个目录里包含的子目录渲染 sidebar。里面同级目录用 weight = 1 就可以更改页面顺序;用 next = "相对路径"prev = "相对路径" 就可以实现页面下方的下一页、上一页;用 linkTitle = "xxx" 就可以实现在 sidebar 显示的文章标题。

这个应该是在 layout/partials/ 里面可以改逻辑,也可以自己加几个模板,然后写自己的配置

至于那个主页展示效果,按他的 exampleSite,主页应该要加个 layout = "hextra-home" ,这样就是宽屏效果,而且这个模板不渲染 MarkDown。但是 hextra/hero-badge 和那些标题样式在里面渲染不成功是真的,只有 {{< hextra/feature-grid >}} {{< hextra/feature-card}} 可以成功渲染。我懒得改就干脆不用 hextra-home 了,不过我建议是看看 layout/ 里面的页面渲染逻辑,还是很好看懂的。 要是解决了记得踢我

照你提醒,不折腾了,把 exampleSite 翻了个遍,按照模板修改成自己需要的那样,基本差不多了。

感谢大佬提醒,谢谢你。

from hextra.

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.