change cover image link url.

This commit is contained in:
BoHung Chiu 2021-05-24 15:43:40 +08:00
parent 806f40fc26
commit 8f2e48cfb8
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class GalleriesController < ApplicationController
"album-name" => a.name, "album-name" => a.name,
"album-description" => a.description, "album-description" => a.description,
"alt_title" => alt_text, "alt_title" => alt_text,
"link_to_show" => OrbitHelper.widget_more_url + "/" + a.to_param, "link_to_show" => OrbitHelper.widget_more_url + "/" + a.to_param + "#" + (cover_image.id.to_s rescue ""),
"src" => thumb_src.gsub("thumb_",""), "src" => thumb_src.gsub("thumb_",""),
"thumb-src" => thumb_src, "thumb-src" => thumb_src,
"thumb-large-src" => thumb_src.gsub("thumb_","thumb_large_"), "thumb-large-src" => thumb_src.gsub("thumb_","thumb_large_"),