Add gitignore; fixed URLs in path gen
This commit is contained in:
parent
17e95b6d99
commit
7905c2264b
|
@ -74,7 +74,7 @@ function uri_from_file($file) {
|
|||
return substr($file, 0, -strlen($name)-1);
|
||||
}
|
||||
|
||||
return substr($file, 0, strrpos($file, '.'));
|
||||
return "/".substr($file, 0, strrpos($file, '.'));
|
||||
}
|
||||
|
||||
function try_file($uri, $ext) {
|
||||
|
@ -285,7 +285,7 @@ function make_img($src, $opts="", $lossy=0) {
|
|||
|
||||
|
||||
function make_bkgd_img($src, $opts = "", $q=80) {
|
||||
$p = img_src($src);
|
||||
$p = $src;
|
||||
|
||||
gen_images($p, $opts);
|
||||
|
||||
|
|
Loading…
Reference in a new issue