gpt4 book ai didi

html - octopress 索引页

转载 作者:搜寻专家 更新时间:2023-10-31 08:03:28 25 4
gpt4 key购买 nike

我创建了一个 Octopress 博客。我的博客页面一个接一个地包含我所有的帖子,我想更改它。
我看到了这些页面:http://linuxmoz.com/ , http://codingpraxis.com/它们包含每个帖子的一段和“继续阅读”按钮。我在其他博客上看到了这种索引页面的特定模板。
我怎样才能创建这个索引页?另外,有没有什么地方可以找到不同页面的"template"(比如关于我或联系我)?

最佳答案

1。仅使用 <!-- more -->在您的帖子中,Octopress 将自动生成“Read On”按钮。
2。在 Octopress 中添加“关于”页面需要 2 个步骤:
1.创建“关于”页面

rake new_page["about"]

2.添加链接
通过编辑下面的第 3 行来编辑文件“source/_includes/custom/navigation.html”:

<ul class="main-navigation">
<li><a href="/">Blog</a></li>
<li><a href="/blog/archives">Archives</a></li>
<li><a href="/about">About</a></li>
</ul>

“rake generate”后,“source/about/index.markdown”会生成“public/about/index.html”,也就是将内容展示给浏览器的文件。
More Info

关于html - octopress 索引页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13538047/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com