Commit a978f044 by Luc Didry

Add "merge toots" and "customize toots' content" abilities

This commit is dedicated to Liandri, who is supporting me with food.
Many thanks :-)
parent 57f19533
Pipeline #41685 passed with stages
in 1 minute 0 seconds
......@@ -14,6 +14,7 @@ pages:
- cp last.conf last/
- if [[ -d local ]]; then mv local last; fi
- if [[ -d cache ]]; then mv cache last; fi
- if [[ -e LastCustom.pm ]]; then cp LastCustom.pm last; fi
- cd last
- carton install
- carton exec ./build.pl
......
Revision history for Last
0.6.0 2018-03-07
- Allow to merge multiple toots
- Allow to modify the content of the toot through a custom module
0.5.0 2017-12-31
- Change CI to use the latest upstream version of Last
......
# vim:set sw=4 ts=4 sts=4 ft=perl expandtab:
package LastCustom;
use Mojo::Base -strict;
sub custom_filter {
my $content = shift;
my $id = shift;
# Exemple of modification:
# $content =~ s/Onoyo/Anoyo/g if $id == 2583066;
return $content;
}
1;
......@@ -14,12 +14,18 @@ The [logo](https://openclipart.org/detail/267534/viking-hat) comes from [Carolem
Fork this project, modify `last.conf`, then commit and push. Enjoy.
To add new toots, add them in `urls` and then commit and push.
To add new toots, add them in `urls` and then commit and push. You can merge multiple toots by adding them like this:
```
[ 'https://framapiaf.org/@framasky/99445908349445234', 'https://framapiaf.org/@framasky/99445923365976338' ],
```
If you want to change the aspect of the generated web page and epub, copy the default theme to a new directory in `themes/`, modify it and choose this new theme in the configuration file.
If you want to handle [Markdown syntax](https://daringfireball.net/projects/markdown/syntax) in your toots, you'll need to install pandoc.
If you want to modify the content of the toots, modify `LastCustom.pm` file.
## Example
Please, go to <https://luc.frama.io/last/> to see how it looks.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment