Template:RecentBlogs: Difference between revisions

Dude of Wealth and Taste (talk | contribs)
Created page with "<div class="recent-blogs"> == 📰 Recent Blog Posts == {{#ask: Blog:+ | ?Creation date=Created | sort=Creation date | order=descending | limit=5 | format=ol | intro=<div class="blog-list"> | outro=</div> | default=No recent blog posts found. }} </div> <style> .recent-blogs { background: #fafafa; border: 1px solid #ddd; border-radius: 10px; padding: 1em; margin: 1em 0; box-shadow: 0 0 5px rgba(0,0,0,0.1); } .recent-blogs h2 { font-size: 1.2em;..."
 
Dude of Wealth and Taste (talk | contribs)
No edit summary
 
Line 1: Line 1:
<div class="recent-blogs">
<div class="recent-blogs">
== 📰 Recent Blog Posts ==
== 📰 Recent Blog Posts ==
{{#ask:
<ul>
[[Blog:+]]
{{#foreach:{{#recentchanges: | namespace=0 | count=50 }}|
| ?Creation date=Created
  {{#ifexpr: {{#sub:{{RC_TITLE}}|0|5}} = "Blog:" | <li>[[{{RC_TITLE}}]]</li> | }}
| sort=Creation date
| order=descending
| limit=5
| format=ol
| intro=<div class="blog-list">
| outro=</div>
| default=No recent blog posts found.
}}
}}
</ul>
</div>
</div>


Line 27: Line 21:
   margin-bottom: 0.5em;
   margin-bottom: 0.5em;
}
}
.blog-list ol {
.recent-blogs ul {
   margin: 0;
   margin: 0;
   padding-left: 1.5em;
   padding-left: 1.5em;
}
}
</style>
</style>