[英]How to set up project pages as subpages of GitHub personal webpage?
我的github个人网页是davidrpugh.github.io
。 我在davidrpugh.github.io/software
为我的软件项目设置了一个子页面,并为我的每个软件项目创建了存根子页面。 例如davidrpugh.io/software/pypwt
。
问题:如何设置项目网页,默认情况下会在davidrpugh.io/pypwt
,以便它生活在davidrpugh.io/software/pypwt
? 我还希望项目网页的任何更新都能在我的个人网页上自动呈现。
我猜这是一个已解决的问题,我没有使用正确的搜索词组。
我相信您发现当前的方法很困难,因为您使用的是页面 (http:// jekyllrb.com/docs/pages/),而不是帖子 (http:// jekyllrb.com/docs/posts/)。
你有2个解决方案:
您可以继续使用页面,只需在/software/<name of post>/index.md
编写每个新帖子
您可以使用帖子并在/_posts/<YEAR-MONTH-DAY-title>.md
写下每个新帖子, /_posts/<YEAR-MONTH-DAY-title>.md
Front Matter中的类别(http:// jekyllrb.com/docs/frontmatter/)设置为“软件” 。
根据您的_config.yml
它会将这些帖子保存在/:categories/:title/
(在本例中为/software/pypwt.html
)。
然后,您可以使用( https://stackoverflow.com/a/9195560/3158248 )链接到这些帖子,以确保在更新_config.yaml
链接不会中断
关于您在gh-pages分支中的https://github.com/davidrpugh/penn-world-tables上托管的项目网站。
#Jekyll config
url : http://davidrpugh.github.io
baseurl: /penn-world-tables
完整的网站网址为http://davidrpugh.github.io/penn-world-tables 。 你根本无法改变这一点。 如果您尝试在索引页面上设置permalink: software/pypwt/
,它将为您提供http://davidrpugh.github.io/penn-world-tables/software/pypwt/
为了获得http://davidrpugh.github.io/software/pypwt/ url,你可以
只需在所有存储库上使用相同的模板,这将使用户填充,就像导航时的同一站点一样。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.