5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-02 09:04:17 +00:00

usar la ruta absoluta también

en producción usamos links simbólicos entre directorios y sin resolver
la ubicación real de los sitios estábamos generando rutas erróneas.
This commit is contained in:
f 2022-03-08 13:10:34 -03:00
parent a4eade946f
commit 7de96a4581

View file

@ -119,7 +119,7 @@ class MetadataFile < MetadataTemplate
end
def relative_destination_path_with_filename
destination_path_with_filename.relative_path_from(site.path)
destination_path_with_filename.relative_path_from(Pathname.new(site.path).realpath)
end
def static_file_path