mirror of
https://github.com/lmika/postlist-for-micro.blog.git
synced 2025-07-01 16:59:03 +00:00
Changed alpha ordering and updated Readme
This commit is contained in:
parent
3958da9c2e
commit
f1f0d2ae7a
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2025 lmika
|
||||
Copyright (c) 2025 Leon Mika
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
|
|
16
README.md
16
README.md
|
@ -1,3 +1,15 @@
|
|||
# postlist-for-micro.blog
|
||||
# Postlist for Micro.blog
|
||||
|
||||
A shortcode for post-list
|
||||
A Micro.blog plugin for adding a shortcode for displaying a dynamic list of posts, similar to [Bear Blog's post macro](https://docs.bearblog.dev/embedding-blog-post-lists/).
|
||||
|
||||
## Installing
|
||||
|
||||
To install on your Micro.blog site, go to the plugin directory and search for "postlist".
|
||||
|
||||
Once installed, you can add a post list to your site by using the `postlist` short-code:
|
||||
|
||||
```
|
||||
{{< postlist >}}
|
||||
```
|
||||
|
||||
See [the usage guide](https://postlist.micro.blog/) for how you can customise this post list, including filtering to posts matching a given category, or changing the sort order.
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{{- $pgr = (where $pgr "Params.categories" "intersect" (slice .)) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- if (eq (.Get "order") "link-title" ) -}}
|
||||
{{- if (eq (.Get "order") "alpha" ) -}}
|
||||
{{- $pgr = $pgr.ByLinkTitle -}}
|
||||
{{- end -}}
|
||||
<ul class="postlist">
|
||||
|
|
Loading…
Reference in a new issue