Created
September 13, 2012 11:18
-
-
Save drakulavich/3713651 to your computer and use it in GitHub Desktop.
Edit post link with github on blogspot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. В настройках поста нужно поменять timestamp, как показано на рисунке: http://cl.ly/image/0c0Y1c2t3s1k | |
Файлы у меня называются по маске год-месяц-день.md (Пример: 2012-08-26.md). | |
2. После <data:post.body/> вставил конструкцию: | |
<div style='text-align:center; margin-bottom: 10px;'><a class='button icon edit' expr:href='"https://github.com/drakulavich/blogpost/blob/master/posts/" + data:post.dateHeader + ".md"'>Исправить статью</a></div> | |
data:post.dateHeader превращается в 2012-08-26 и ссылка ведёт, куда следует. Уличная магия. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment