Skip to content

Instantly share code, notes, and snippets.

@kvnol
Created September 1, 2017 20:09
Show Gist options
  • Save kvnol/735272b0aa8fffc33b6696389680077e to your computer and use it in GitHub Desktop.
Save kvnol/735272b0aa8fffc33b6696389680077e to your computer and use it in GitHub Desktop.
Jekyll: Split title to url
{% assign
url = question.title |
downcase |
replace: ' ', '-' |
replace: '?', '' |
replace: ',', '' |
replace: 'á', 'a' |
replace: 'à', 'a' |
replace: 'é', 'e' |
replace: 'í', 'i' |
replace: 'ó', 'o' |
replace: 'ú', 'u' %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment