课程: Building a Website with Statamic
今天就学习课程吧!
今天就开通帐号,24,100 门业界名师课程任您挑!
Challenge: Make the About page dynamic
(upbeat music) - [Narrator] Welcome to this challenge. Together we have created most pages except for one, the about page. For this challenge, I'm going to ask you to take the about page study markup, and make it dynamic. You can find a markup in the exercise files, make sure you use the correct handles to display your contents on the page. And if you don't remember what they are, you can see them either in the ortho file or in the author blueprint. Once you do this, go to the homepage and fetch the content from the about page, trim it and truncates it to 200 characters. Consider using the get content tag, to fetch the data from the about page, and you can read more about all the modifiers, that it comes with such as trim and truncate in this OMA documentation. Good luck, and if you struggle, watch me the next video, where I implement the solution to this challenge myself.
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。