Added theme «tormund»

This commit is contained in:
zeldaroot 2020-09-14 04:31:25 +03:00
parent e236a72180
commit 152c2684ba
2 changed files with 24 additions and 0 deletions

View file

@ -200,6 +200,16 @@
[![Template «daenerys»](https://raw.githubusercontent.com/CinemaPress/Theme-Daenerys/master/screenshot.png)](https://Daenerys.CinemaPress.io)
## Theme «tormund»
> Install via FTP: [GitHub](https://github.com/CinemaPress/Theme-Tormund/) / [GitLab](https://gitlab.com/CinemaPress/Theme-Tormund/) / [BitBucket](https://bitbucket.org/cinemapress/theme-tormund/)
> Install via CLI: `cinemapress theme example.com tormund`
> **DEMO:** [Tormund.CinemaPress.io](https://Tormund.CinemaPress.io)
[![Template «tormund»](https://raw.githubusercontent.com/CinemaPress/Theme-Tormund/master/screenshot.png)](https://Tormund.CinemaPress.io)
## Options and modules CinemaPress
Detailed information on all options and system modules can be found in the [documentation](https://CInemaPress.io/admin).

View file

@ -172,6 +172,20 @@ if (['dustin'].indexOf(theme) + 1) {
);
}
if (['tormund'].indexOf(theme) + 1) {
config.default.count = 12;
config.index.year.count = 12;
modules.content.data.index.count = 12;
modules.episode.data.index.count = 32;
modules.related.data.types.year.count = 10;
modules.content.data.news.count = 4;
modules.comments.data.fast.recent.display = ['index'];
modules.player.data.script = modules.player.data.script.replace(
/#[a-z0-9]{6}/i,
'#111216'
);
}
let mem = parseInt('' + os.totalmem() / 1000000);
let cpu = os.cpus() ? os.cpus().length : 1;
let max = parseInt('' + mem / (cpu > 1 ? cpu : 2));