Theme and questions
-
August 17, 2020 at 2:20 pm #3556[anonymous]
I discovered Publii a few days ago, and as a learning exercise, I wanted to reproduce a theme I made for another cms.
It is not quite finished, there are a few things to do on the administration. You can see it here:
Publii is a really interesting tool and I’m very happy to have discovered it!
While the doc is easy to read and understand even for a beginner like me, there are a couple of things I failed to reproduce:
- I would like, when clicking on one of the projects from the index for example, when the popup of the project is open, display a different image or a video.
The image displayed in the foreground is the featured image, Is it possible to load a second featured image? or a media (I can post the link to the original theme on which we can see this option).
- The second thing I failed to do is about the Hero image on the index page.
It’s loaded in the same way as on the Simple theme (used as base of work) but uses CSS background rather than a figure.
Is it possible to choose different thumbnails sizes the same way as featured images do? I could use it with mediaqueries for small screen
Thank you a lot, and sorry for my english, thx to Google translate 🙁
NB: If someone is interested by the theme, I’ll put it on github when it’s finished.
August 17, 2020 at 2:45 pm #3557BobHi Constantin,
First of all: great work, really. It’s cool to see something new done by someone other than our team.
In terms of your questions:
- Publii generates only one featured image; the post config options also do not offer the image type (https://getpublii.com/dev/post-config-options/), so it’s not easy to import here any other images than featured.
- All you can do is provide only one image (in head.hbs), for example:
<style> body { background-image: url({{@website.assetsUrl}}/images/overlay.png), linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url({{@config.custom.uploadHero}}); } </style>
August 17, 2020 at 5:40 pm #3558[anonymous]Thank you Bob.
September 17, 2020 at 7:07 am #3798BobHello Constantin,
Do you have a plan to release your Publii theme?
September 17, 2020 at 9:20 am #3806[anonymous]Hi Bob,The theme is finished, but while continuing to work with Publii I realized that I went too fast and that I should have donethings differently by reading the documentation better 😉It is “usable” but not very clean, I have to redo a few things with the good “Publii” methods.As it stands, I wouldn’t dare share it publicly, but if you’re interested, I can put it on github or bitbucket.September 17, 2020 at 11:34 am #3810BobThat’s fine. It would be great if our community had access to this theme. So if you can please move it to the Github. Maybe in my spare time I will try to help you develop this theme.
September 17, 2020 at 12:03 pm #3811[anonymous]It is ok, I’ll move it to Github in the next days, probably this week-end.
Thank you for your interest.
Also, I built it in Onepage version (Not yet with Publii).
Is it possible to build Onepage sites with Publii (I think so, even if I know Publii is more a blog CMS system) but I’m interested in your opinion about this.
Thx
September 17, 2020 at 12:09 pm #3812Bob[anonymous] wrote:Is it possible to build Onepage sites with Publii
Yeap, it is, especially with the upcoming 37 version that comes with the Supported Features section where you will be able to disable for example generating the tags or authors pages.
September 17, 2020 at 1:17 pm #3813[anonymous]I look forward to discover V37!
I will let you know here when @512 theme is on github.
Cheers,
September 19, 2020 at 1:48 pm #3824[anonymous]Hello Bob,
Theme is Here
I’m not quite sure it’s a good idea to be shared publicly, but the readme file is clear.Please let me know, do not hesitate to contact me, even by email. - I would like, when clicking on one of the projects from the index for example, when the popup of the project is open, display a different image or a video.