porl Posted January 15, 2020 Share Posted January 15, 2020 Hi all. Just thought I'd add the updated site I made for the Judo/BJJ club I run. For some odd reason I decided I wanted to try making a single-page website but still use ProcessWire's great page management tools. The site uses the excellent Template Engine Twig module (slightly modified to work with Twig 3) and dynamically builds itself using the page tree (no hard-coded sections). I'm no great designer, but using the above along with Bootstrap 4 and some probably-excessive animate-on-scroll effects I think it looks clean enough to differentiate itself from more standard martial arts websites. Anyways, you can visit the site at http://jkma.club and hopefully enjoy! 10 Link to comment Share on other sites More sharing options...
Nicolas Posted January 16, 2020 Share Posted January 16, 2020 Nice single page website. Any chance to send a pull request for Template Engine Twig module. I think many users will be interested in the Twig 3 compatibility. Link to comment Share on other sites More sharing options...
porl Posted January 19, 2020 Author Share Posted January 19, 2020 Hi Nicolas Thanks! I'm not usually one for single page sites but I thought it would be an interesting challenge. I sent a pull request just after I made the changes to work with Twig 3. Not sure how my changes would affect compatibility with earlier versions of Twig (I believe they added namespace support to at least Twig 2 but not sure) so I don't know if my changes could be accepted as-is. Having said that, using composer to install the module as is required anyway installs Twig alongside, so the module would essentially come with Twig 3 anyway. I have come across a bug but I don't know if that is related to my changes or not - disabling automatic template rendering made it so I could not have any '%' characters in my templates outside of the Twig tags themselves. Re-shuffling things to allow myself to re-enable automatic rendering works fine though, and I had a deadline so didn't investigate further. Link to comment Share on other sites More sharing options...
porl Posted January 25, 2020 Author Share Posted January 25, 2020 Just saw my site was featured in this week's newsletter! Thanks guys ? 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now