gityll icon indicating copy to clipboard operation
gityll copied to clipboard

Remove 'magic' html strings, use config files instead

Open AranScope opened this issue 8 years ago • 3 comments

AranScope avatar Sep 07 '16 21:09 AranScope

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>

AranScope avatar Sep 08 '16 11:09 AranScope

Leaning towards the second option, as adding optional values such as {{post-modified-time}} would be much neater.

AranScope avatar Sep 08 '16 12:09 AranScope

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.

AranScope avatar Sep 09 '16 13:09 AranScope