diff options
| author | Volpeon <git@volpeon.ink> | 2021-11-16 19:31:14 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2021-11-16 19:31:14 +0100 |
| commit | 3becba020712e78a8a81e11ce4e0bfcc30f631d2 (patch) | |
| tree | 2ec4eada525d882ba502a766c3d191020d7d2618 /scripts/metadata_filter.lua | |
| parent | Make variables accessible from content files (diff) | |
| download | volpeon.ink-3becba020712e78a8a81e11ce4e0bfcc30f631d2.tar.gz volpeon.ink-3becba020712e78a8a81e11ce4e0bfcc30f631d2.tar.bz2 volpeon.ink-3becba020712e78a8a81e11ce4e0bfcc30f631d2.zip | |
Fix full url generation
Diffstat (limited to 'scripts/metadata_filter.lua')
| -rw-r--r-- | scripts/metadata_filter.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua index ef4f44e..5a547ee 100644 --- a/scripts/metadata_filter.lua +++ b/scripts/metadata_filter.lua | |||
| @@ -52,7 +52,7 @@ function resolve_url(site_url, ref_file, target_file) | |||
| 52 | local ref_base_dir = path.directory(ref_file) | 52 | local ref_base_dir = path.directory(ref_file) |
| 53 | local abs = target_file | 53 | local abs = target_file |
| 54 | local rel = path.make_relative(abs, ref_base_dir, true) | 54 | local rel = path.make_relative(abs, ref_base_dir, true) |
| 55 | local full = (abs[1] == "/" and (site_url .. abs)) or abs | 55 | local full = (abs:sub(1, 1) == "/" and (site_url .. abs)) or abs |
| 56 | 56 | ||
| 57 | return { abs = abs, rel = rel, full = full } | 57 | return { abs = abs, rel = rel, full = full } |
| 58 | end | 58 | end |
