tlienart / FranklinTemplates.jl

Simple website templates for Franklin.jl

Home Page:https://tlienart.github.io/FranklinTemplates.jl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Just the docs" template different than the preview

logankilpatrick opened this issue · comments

Preview: https://tlienart.github.io/FranklinTemplates.jl/templates/just-the-docs/index.html

my code:

julia> newsite("JuliaClimate", template="just-the-docs")
✓ Website folder generated at "JuliaClimate" (now the current directory).
 Use serve() from Franklin to see the website in your browser.

What renders:

Screen Shot 2021-07-04 at 8 10 50 AM

This is just a question of width right? The template comes with some basic @media directives so that you have a different layout in "wide" display vs "narrow" display. It's the default taken from the corresponding "Just The Docs" Jekyll theme and is not ideal (there's a range of medium-narrow width for which the layout for the top bar will not work well) but for narrow (e.g. phone) and wide (e.g. laptop) it should work fine. Specifically the screenshot you posted is what it's supposed to look like for narrow display?

Or is it that in your case it's fixed to that layout even when you increase the width of the window in your browser?

PS: maintaining templates is super hard work... it's unrelated to Franklin and is purely a question of CSS, it'd be great to have a collaborator help out on the web-dev stuff to help polish the base templates and add a few more but 🤷... the themes in Hugo and Jekyll etc all have issues at some point apart from the few super common ones that are have been actively collaborated on

It stayed the same even when I changed the width

That's odd... and it doesn't happen on the website? did you try with a couple of browsers? I tested both and the behaviour is the same (made me realise there's an unfortunate width for which the top bar is ugly but that's a separate issue).

Can you report your version of FT?