gpt4 book ai didi

jekyll - GitHub 页面 : Octopress in Subfolder (other pages in root)

转载 作者:行者123 更新时间:2023-12-02 08:14:33 25 4
gpt4 key购买 nike

我正在将我的博客从自托管 Wordpress 迁移过来。至 ( GitHub-pages powered ) Octopress .

到目前为止,我已成功设置并将我的博客复制到 myusername.github.com,其中具有 CNAME http://mydomain。 com。 (因此,浏览 http://mydomain.com 显示我的 Octopress 博客。Dandy。)

我想修改我的设置,如下所示:

  • http://mydomain.com → 简单的 html 登陆页面
  • http://mydomain.com/blog → Octopress 博客,尽显辉煌
  • http://mydomain.com/sdf → 我想托管的其他其他简单 html 网站
  • http://mydomain.com/sdfsdfdsf -> 同上
  • ...(任意数量的其他根级站点)

但是……我希望我的登陆页面(和其他杂项网站)从 GitHub-pages 存储库托管,并将源代码存储在 Octopress 旁边。

理想情况下,«octopress»/source/ 看起来像这样:

  • «octopress»/source/index.html → 我的登陆页面
  • «octopress»/source/blog/* → 普通 Octopress 源文件夹(包含 _postsassets_layouts等)
  • «octopress»/source/sdf/index.html → 其他杂项网站

到目前为止,我已经找到了关于 how to deploy Octopress to a subdirectory 的说明。但据我所知,这些说明不允许您在 «octopress»/source/ 下拥有其他杂项网站。

我希望得到有关如何实现我所追求的目标的建议。我有一种感觉,这并不难(也许只是在某个地方调整一些 Jekyll 文件)。

非常感谢,

最佳答案

您可以将博客索引页更改为 blog/index.html,例如 the document describes 。然后,将您的登陆页面和其他网站放入 /source 目录中。

关于jekyll - GitHub 页面 : Octopress in Subfolder (other pages in root),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13491790/

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