Skip to content

Conversation

@kmk3
Copy link
Contributor

@kmk3 kmk3 commented Apr 6, 2021

This reverts commit a4cd697.

That commit breaks the changed nav links on /blog, as the anchors are
specific to / (i.e.: the home page).


Link to the original PR: #145.

)"

This reverts commit a4cd697.

That commit breaks the changed nav links on /blog, as the anchors are
specific to / (i.e.: the home page).
@kmk3
Copy link
Contributor Author

kmk3 commented Apr 6, 2021

Sorry about that; I forgot that there are more pages and that the nav is global
at the same time.

@xuhdev
Copy link
Member

xuhdev commented Apr 6, 2021

Nice catch again! Thanks!

@xuhdev xuhdev merged commit 10a7c17 into editorconfig:master Apr 6, 2021
@kmk3 kmk3 deleted the revert-remove-baseurl-anchors branch April 6, 2021 21:46
@kmk3
Copy link
Contributor Author

kmk3 commented Apr 7, 2021

I recently noticed this: commit 67a887a ("Add a Jekyll-based blog (#57)").

$ git show --pretty='' 67a887aa -- _layouts/default.html | grep '#'
-      <li><a href="#overview">What is EditorConfig?</a></li>
-      <li><a href="#example-file">Example File</a></li>
-      <li><a href="#file-location">File Location</a></li>
-      <li><a href="#file-format-details">File Format Details</a></li>
-      <li><a href="#download">Download a Plugin</a></li>
-      <li><a href="#contributing">Contributing</a></li>
+      <li><a href="{{ site.baseurl }}/#overview">What is EditorConfig?</a></li>
+      <li><a href="{{ site.baseurl }}/#example-file">Example File</a></li>
+      <li><a href="{{ site.baseurl }}/#file-location">File Location</a></li>
+      <li><a href="{{ site.baseurl }}/#file-format-details">File Format Details</a></li>
+      <li><a href="{{ site.baseurl }}/#download">Download a Plugin</a></li>
+      <li><a href="{{ site.baseurl }}/#contributing">Contributing</a></li>

Wish I had seen that earlier hehe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants