导航栏未显示在永久链接 Jekyll 网站上
Nav bar not showing up on permalink Jekyll site
我一直在研究 GH Pages Jekyll 网站。我使用了一个 HTML 静态站点并更改了样式表和 text/CSS.
的位置
我的 index.html 页面上一切正常。但是,在其他页面上,mobile/half-sized 桌面导航栏不会出现。不同之处在于我使用永久链接导航到其他页面(/categories/ 而不是 /categories.html)。
我尝试更改配置文件
permalink: /:categories/:title/
到
permalink: /:categories/:title.html
它给出了正确的文件名,但没有指向导航栏。
我可以修复类别登录页面的唯一方法是更改 default.html 中的链接。在此示例中,列表中的第二项有效,而另一项无效。
<nav id="nav">
<a href="/TITLENAME/">Doesn't work</a>
<a href="/test.html">Does work</a>
</nav>
我的目标是拥有永久链接。这样我就可以从登录页面无缝导航到类别和博客文章。
这是我的 GitHub 存储库:https://github.com/Thor-DraperJr/Thor-DraperJr.github.io
谢谢指教!
原来css只是为了申请www.baseurl.com/page
而写的
我更改了 _config.yml
中的永久链接
permalink: /:title
这意味着每个页面和 post 只会显示根 url 之后的一级。
我一直在研究 GH Pages Jekyll 网站。我使用了一个 HTML 静态站点并更改了样式表和 text/CSS.
的位置我的 index.html 页面上一切正常。但是,在其他页面上,mobile/half-sized 桌面导航栏不会出现。不同之处在于我使用永久链接导航到其他页面(/categories/ 而不是 /categories.html)。
我尝试更改配置文件
permalink: /:categories/:title/
到
permalink: /:categories/:title.html
它给出了正确的文件名,但没有指向导航栏。
我可以修复类别登录页面的唯一方法是更改 default.html 中的链接。在此示例中,列表中的第二项有效,而另一项无效。
<nav id="nav">
<a href="/TITLENAME/">Doesn't work</a>
<a href="/test.html">Does work</a>
</nav>
我的目标是拥有永久链接。这样我就可以从登录页面无缝导航到类别和博客文章。
这是我的 GitHub 存储库:https://github.com/Thor-DraperJr/Thor-DraperJr.github.io
谢谢指教!
原来css只是为了申请www.baseurl.com/page
而写的我更改了 _config.yml
中的永久链接permalink: /:title
这意味着每个页面和 post 只会显示根 url 之后的一级。