Skip to content

Static Pluto html file in Franklin site #833

Answered by kescobo
kescobo asked this question in Q&A
Discussion options

You must be logged in to vote

And the response from @tlienart :

the thing that you have to adjust is that your Introduction.html itself has a <head> etc. which you have to strip away. A franklin page will look like this:

head * content * foot

where content is usually the markdown -> html. Here you put inside content a div block with class test-post with HTML in it but

  1. you didn't escape the HTML, you should two println("~~~")
  2. the HTML from Pluto itself contains a head and a foot which you have to strip away so that you only just get the body of it which can get inserted
  3. Pluto needs a bunch of scripts which would then be stripped away but that you should add back in your _layout/head file.

I hope this makes sense, ot…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kescobo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant