One Page template feasable? #1723
-
Hello, been experimenting with Publii with Simple and Massivly templates, and I like it.
Would it be possible to develop a One Page theme like that for Publii? My friend does not want to delve into html (let alone css..), so maybe the segments of the page could be separate posts ? (by #id ?) Or is this just a bad fit for Publii (or any CMS...)? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It's not, Publii requires at least two pages (files): index (homepage) and the post page. |
Beta Was this translation helpful? Give feedback.
-
Scrolling to an anchor is definitely possible. Here's a quick demo I put together: Essentially, here's what I did using the Simple Theme:
This could probably work with the "Internal link" type too, but I haven't been able to get it working (and I'm not 100% how that's meant to work anyway... couldn't find much in the docs)
Based on the examples you sent, it looks like some JavaScript was used to toggle an "active" class: I'm sure tons of code examples using plain JS + CSS exist on Codepen, though. Shouldn't be too difficult to implement by someone who knows what they're doing.
Would you be helping your friend develop the theme? I'm just not sure how it would be possible to create a custom theme like that without touching some html and css... |
Beta Was this translation helpful? Give feedback.
It's not, Publii requires at least two pages (files): index (homepage) and the post page.