Skip to content

Instantly share code, notes, and snippets.

@drakulavich
Created September 13, 2012 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drakulavich/3713651 to your computer and use it in GitHub Desktop.
Save drakulavich/3713651 to your computer and use it in GitHub Desktop.
Edit post link with github on blogspot
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='&quot;https://github.com/drakulavich/blogpost/blob/master/posts/&quot; + data:post.dateHeader + &quot;.md&quot;'>Исправить статью</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