GitHub style permalinks #3535
Replies: 8 comments 11 replies
-
Thanks for sharing! |
Beta Was this translation helpful? Give feedback.
-
Updated it so it's mobile friendly, and reposition with flex instead of float on wider screens. |
Beta Was this translation helpful? Give feedback.
-
thank you so much for this, i was trying to figure out how to replace the weird icon to something better looking, need to get used to the option that the link is now before the title, but it's so much better looking then the default weird character |
Beta Was this translation helpful? Give feedback.
-
I found a simple workaround to use the built-in 🔗 icon (not sure if this is proper, but it works for me):
|
Beta Was this translation helpful? Give feedback.
-
Just to note, I've updated the main post with a fix for title spacing with font changes, such as keywords being highlighted when searching |
Beta Was this translation helpful? Give feedback.
-
If you don't mind it being on the right-side, it also seems you can just add something similar to this to
Might be worth updating the docs on permalinks? |
Beta Was this translation helpful? Give feedback.
-
I used that to put the links on the left side and it works great, however I noticed that when usinig abbreviations (the *[XXX]: thing) ]the display:flex seems to cause some issues removing any spacing between the text and the |
Beta Was this translation helpful? Give feedback.
-
Thanks so much @AshleighAdams! I was looking for a solution as I still needed to keep the permanent links for convenience but we needed to remove the additional character as it was bad for SEO. Google would show |
Beta Was this translation helpful? Give feedback.
-
So, I much prefer GitHub-style permalinks, where a chain icon floats to the left of the header, instead of the right.
I've looked for an easy solution over the months, hoping for a low hanging fruit, but unfortunately it looked too complex to invest time in, until, I discovered this site: https://facelessuser.github.io/pymdown-extensions/
They have some scss to append the chain from an SVG file, taking that as a base, and with a renewed resolve, I came up with this:
Here's how it looks:
Full disclosure, I'm not experienced with HTML5/CSS, so I'm probably doing something wrong, so I can only provide the works-on-my-machine guarantee, sorry!
Beta Was this translation helpful? Give feedback.
All reactions