fssnippets / fssnip-website

Source code for the F# Snippets web site
http://fssnip.net
103 stars 36 forks source link

Google search engine optimization #66

Closed Thorium closed 8 years ago

Thorium commented 8 years ago

Currently Google doesn't find fssnip.net snippets well. I think this would be easy to improve:

tpetricek commented 8 years ago

Merged the first one!

Perhaps the default link could use cleaned-up version of the snippet title? e.g. http://fssnip.net/sA/concurrent-memoization?

Thorium commented 8 years ago

Now the 2 of 3 is done. After merge you can use: http://fssnip.net/c4/title/concurrent-memoization

Part 3 of 3 would be actually calling this in the tags page. There is now a helper function generateCleanTitle. But the problem for part 3 is that currently the link to item is ID (int) and we don't want to make changes to the data schema. What is this format_id -function that is called in item.html:

<h3><a href="/{{ item.ID | format_id }}">{{ item.Title }}</a></h3>