среда, 23 декабря 2015 г.

Creating Custom Short URLs in Perch Runway

One of the nice little features we’ve had in the 24 ways site for a few years is custom short URLs. As full article URLs contain a sometimes lengthy slug based on the article title, it’s useful to have a shorter version to use in tweets and our ebooks.



Our publishing schedule dictates that we post once per day, and only 24 articles a year, so the short URLs are based on the date alone. For example, today’s article is the following:



https://24ways.org/201523


That’s the year 2015, followed by the day number, 23. Tomorrow will be 201524 and...

Комментариев нет:

Отправить комментарий