ruby - Use Jekyll to generate 2 rendered versions of a post -


I know that this question has been asked before.

Target:

/ P>

I have a blog powered by Jakele I load my posts through AJAX I would like to be capable and use pushstate to speed things up. I'm not a Ruby developer, so I'm not sure what to do in the written queries (poorly written) plugins.

Status:

All of my posts are generated using the date, along with the previous slash (i.e., this is a Index.html generates the file):

  • / 2014/09/14 / post -title/(index.html)
  • / 2015/01 / 02 / other-post-title / (index.html)

I can not change this pattern for SEO reasons; My blog has been online for a few years and I want to write my URL without the rules of comprehensive redirection.

Question:

What I want now, for every post that has been presented as index.html , I have another version called raw.html .

Now the difficult part comes here (where other questions / answers fail):

I for both the index.html file and both I want to use a template for presentation to post body raw.html file. The reason for this is that I do not want any code repeat.

raw.html is basically the exact same as index.html , index.html , excluding one Footer, title etc. Currently, I'm getting it from the liquid template succession, but I want to change if necessary.

Any ideas or hints?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -