CodeNewbie Community 🌱

Discussion on: Three nifty shortcuts on the Command Line

Collapse
 
aaron profile image
Aaron McCollum

@terabytetiger Hey there, me again! I haven't figured out how to use the canonical URL. I posted the command in the parenthesis, however instead of having it go to my sight, it went to a 404 error. Would you happen to know where I can include the canonical URL?

Collapse
 
terabytetiger profile image
Tyler V. (he/him)

The Canonical URL has to get set in the frontmatter - if you're using the v2 editor it'll look something like this:

Version 2 editor for forem with the settings cog opened showing a spot for canonical url

If you're using the v1 editor it'll look more like this:

V1 editor for DEV showing a canonical url in the frontmatter

Then you can remove your line linking back to your post since there will be an auto generated link at the top of the article:

A Post on DEV with a canonical url linkback to the originally posted site.

Thread Thread
 
aaron profile image
Aaron McCollum

Mind officially blown! I have the V2 editor it looks like. That's incredible, thanks so much!

Thread Thread
 
terabytetiger profile image
Tyler V. (he/him)

I forgot that the V2 editor didn't use frontmatter the same way, which probably induced the initial confusion 😅 I'm glad I could clear it up though! 🥳