2
0
mirror of https://github.com/thumbsup/thumbsup synced 2024-11-15 18:12:46 +00:00
Commit Graph

33 Commits

Author SHA1 Message Date
Romain
19fe270946 chore: update to latest StandardJS 2023-11-26 23:37:00 +00:00
Romain
8cb7a3596b chore: upgrade to latest version of StandardJS 2023-03-21 21:39:52 +00:00
Lucien Van Elsen
b016498f98 Switch to Google Analytics 4 (global) tags for tracking. 2021-07-06 21:44:31 +02:00
Romain
df1c6a7073 fix: link prefix supports absolute path, file:// and http://
Fixes #185
2021-03-05 00:28:48 +01:00
Romain
293cbf8469 test: make all tests run on Linux + Windows 2021-03-03 23:19:36 +01:00
Romain
ef0ad4ee8e feat(core): support pagination with --album-page-size
Note: requires a compatible theme which renders pagination.
Fixes #209
2020-11-02 23:46:11 +01:00
Romain
31b85fc0e1 chore(core): refactor SEO into testable module 2020-11-01 23:51:13 +01:00
Romain
6886c262db chore(core): extract HTML page creation to a testable module 2020-11-01 23:51:13 +01:00
Andy Castille
064f36697b Generate SEO files (robots.txt and sitemap.xml) 2020-05-04 17:46:26 -05:00
Andy Castille
5ce7937f6f Generate SEO files (robots.txt and sitemap.xml) 2020-05-02 17:32:20 -05:00
Romain
1502e8be0d feat(themes): expose all program options to the theme templates
Fixes #174
2019-07-07 21:23:28 +02:00
Romain
a09ff03f2e [feat] new option to pass settings to a theme, from a JSON file
Fixes #168
2019-06-05 22:45:02 +02:00
Andrew McOlash
282713f273 Allow generating rectangular thumbnails (#146)
Add rectangular thumbnail
2019-02-25 19:06:03 +01:00
Romain
2e875e7448 test(theme): add tests for escaping of single and double quotes 2019-02-15 21:04:57 +01:00
Andrew McOlash
11da4850c8 Add in escaping of quotes for relative paths (#145)
* Add in escaping of quotes for relative paths

* Add double quote escaping

* Fix lint errors

* Always escape relative paths
2019-02-15 07:07:19 +01:00
Romain
9425604dd7 chore(dependencies): upgrade Standard from v11 to v12 which introduces a style change 2018-12-11 23:11:03 +01:00
hnizdil
7c0b87cbae
GA code fix in GA template 2018-10-24 22:30:30 +02:00
Andrew McOlash
cbbb067957 Change metadata to only have exif when needed, rename exif flag 2018-10-17 22:03:36 -07:00
Andrew McOlash
b14a255bc5 Pass exif data to template optionally 2018-10-14 19:30:13 -07:00
Romain
37ea6c6ba3 fix(themes): resolve built-in theme paths instead of hardcoding node_modules path
The previous method only worked locally inside the repo, but not once the package is published to npm.
Once published, built-in themes are flattened instead of nested.
2018-07-23 22:33:40 +02:00
Romain
83831274ff refactor(themes): remove themes from core + use the new extracted modules 2018-07-14 00:56:12 +02:00
Romain
39591c70a1 feat(theme): support for themes published within a subfolder
If a theme has a build process, it will likely publish a subfolder (e.g. “dist”) to npm.
It can simply set “thumbsup.themeRoot” in its package.json so thumbsup looks in the right place.
2018-06-30 14:18:13 +02:00
Romain
7dd714c957 refactor(tests): dynamically generate test folders to check more edge cases 2018-06-16 18:26:17 +02:00
Romain
bd86ab6535 test(themes): add integration tests using a mock file system
This replaces the basic unit tests that used private methods
and didn’t have a very clear intent
2018-06-12 00:54:53 +02:00
Romain
deee049650 refactor(themes): extract the {{relative}} helper to be standalone + add some tests 2018-06-12 00:37:44 +02:00
Felix Eckhofer
383f77e0d4 fix(core): Use correct base for calculating the relative path
Fixes #109
2018-06-10 21:34:38 +02:00
Romain
24790c075c chore(cleanup): remove old code and console.log() 2018-06-08 00:12:17 +02:00
Romain
9612ca0048 feat(core): load an external theme from a given path using --theme-path 2018-06-03 09:18:10 +02:00
Romain
03a9c9a319 refactor: themes are now standalone folders, to prepare for external loading
Every theme is made of { Handlebars + Less + Partials + Helpers + Public }
2018-06-01 23:49:53 +02:00
Romain
f66208e052 New options for the {{date}} helper: custom date format + how long ago 2017-11-29 21:11:12 +11:00
Romain
515ce3e8c1 Fix bug in #compare and #times Handlebars templates introduced in 3e0982e
When declared with () => instead of function (), the context is missing from child blocks.
2017-11-29 20:58:13 +11:00
Romain
3e098e2328 Extract Handlebars helpers to prepare for theme structure + add unit tests 2017-11-28 07:53:51 +11:00
Romain
30f203af4b Render progress using Listr + split the main process into "steps" which are easier to test 2017-11-06 00:02:42 +11:00