gityll
gityll copied to clipboard
Remove 'magic' html strings, use config files instead
Potential implementation:
// gityll config file // // template strings shown between '{{' and '}}' // are auto-replaced with data from github issues.
// user details github-user:some_username github-repo:some_reponame
// html template links post-template-url:post-template.html contents-template-url:contents-template.html
// html post template config
post-author-attribution:<br><br><a href={{url}}>Written with <3 by @{{name}}</a>
......
Or, we could try to do this mostly within the existing html template using e.g.
<a href="{{author-url}}>{{author-name}}</a>
So the user could modify this as long as they keep these string tags e.g.
<a class="button" href="{{author-url}}" style="margin: 5px;">{{author-name}}</a>
Leaning towards the second option, as adding optional values such as {{post-modified-time}} would be much neater.
Working on the second option, completed for posts but now have an issue with the contents page.
We can not simply 'find and replace' a {{tag}} marker. Since there are multiple tags, we may want to style the tag and the tags container separately. For this I propose adding a config file where you can specify templates for items such as tags, authors etc.