MainPage Structure: Difference between revisions

From AbhiprayaVedi
Created page with "'''MainPage''' is what a reader gets when visiting the home page of the site https://abhiprayavedi.org/ It will have Four sections. * Featured * Top Stories * Recent Articles * Browse by Category"
 
No edit summary
 
Line 5: Line 5:
* Recent Articles
* Recent Articles
* Browse by Category
* Browse by Category
'''Templates and Styles''' used for MainPage
We’ll build a manually curated index page that lets us simply list article names. A helper template will fetch the details (title, image, introduction, author, date) from each article automatically, so we don’t have to retype anything. This approach uses one simple SMW function (<code>#show</code>)
<nowiki>*</nowiki>
* <code>Template:ArticleCard</code> – a reusable card that displays one article.
* <code>Template:IndexPage/styles.css</code> – the styles for the index page.
* Manually built MainPage Sections

Latest revision as of 14:00, 30 April 2026

MainPage is what a reader gets when visiting the home page of the site https://abhiprayavedi.org/ It will have Four sections.

  • Featured
  • Top Stories
  • Recent Articles
  • Browse by Category

Templates and Styles used for MainPage

We’ll build a manually curated index page that lets us simply list article names. A helper template will fetch the details (title, image, introduction, author, date) from each article automatically, so we don’t have to retype anything. This approach uses one simple SMW function (#show)

*

  • Template:ArticleCard – a reusable card that displays one article.
  • Template:IndexPage/styles.css – the styles for the index page.
  • Manually built MainPage Sections