Comments (2)
菜单那个,在一个目录的 _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.
菜单那个,在一个目录的 _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)
- Default Click-To-Zoom / Image-Zoom capability HOT 2
- CSS syntax error HOT 1
- The steps shortcode is not working HOT 5
- backslash in KaTeX is wrong HOT 3
- Pagination for blog listing page
- footnotes within callout shortcodes do not render correctly HOT 3
- Search bar in left sidebar menu (at top) HOT 1
- Show table of contents at top of content when there isn't enough width HOT 1
- Show "summary" and "last modified" under the title at the top of the page HOT 2
- Nested steps breaks the counter HOT 2
- Expanding the browser window keeps the footer hidden HOT 2
- Implement hextra/hero-container with optional front-page logo HOT 1
- Implement hextra/hero-section, defining a h2 heading on front-page HOT 9
- Make / page in docs mode visible in Menu HOT 1
- Make selected entry in sidebar always visible HOT 1
- Add Feature: Stats Overview Display HOT 2
- Usage of additional module breaks certain Hextra features HOT 5
- Images show in local, but not when deployed to GH pages HOT 3
- Html 5 validator issues on template HOT 3
- Enhanced Hover Animations for Feature Cards HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hextra.