While carrying on in the Hacktoberfest pull request "race", I present another update on the journey to reach 5 pull requests on GitHub. This time, I decided to improve the template for the weekly Top of Utopian, that is usually published on Wednesdays by @utopian-io.
The weekly Top of Utopian is a regular post that includes all so-called staff picks, which are the significant contributions in the Utopian.io's categories. Staff picks are usually rewarded with higher incentives than other submissions. Furthermore, Top of Utopian contains a basic overview of the number of submissions and the rewards given to the contributors.
@amosbastian is the creator and maintainer of https://utopian.rocks that contains data about contributions. Besides, he implemented a page with the weekly (last 7 days) statistics that were used in the weekly posts. You can find the page at https://utopian.rocks/weekly.
Although the template was reusable from previous posts, it always meant the author had to add most of the content. Thus, the update includes adding the basic text for the template. For sure it can be improved more, but the aim was to make it simpler for the team when preparing a new post and define the sections in the post.
Thus, the template contains generated title with the beginning and end of the week. Remember, it follows the implementation behind the scenes, so it covers the last 7 days. I added sections for each of the contributions too.
I followed the separation of the text as it was already in place. Thus, I kept the introduction (title and text placeholder) and footer (video and image) separately too. I would say it is easier for extension and edits when needed. The final text is created by concatenating all parts.
Links
- Extending the template: https://github.com/amosbastian/utopian.rocks/pull/27
- Changing footer text order: https://github.com/amosbastian/utopian.rocks/pull/29