Remove image path prefix

This commit is contained in:
Alex Kotov 2024-02-24 10:37:44 +04:00
parent 90dae92c30
commit 37af17d870
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
5 changed files with 5 additions and 1 deletions

View file

@ -3,4 +3,5 @@ format: gemtext
base_url: 'gemini://causa-arcana.com'
current_path: '/xx/blog/xxxx/xx/xx/xxxxx.xxx'
images_prefix: '/assets/images/blog'
relative_urls: true

View file

@ -3,6 +3,7 @@ format: html
base_url: 'https://causa-arcana.com'
current_path: '/xx/blog/xxxx/xx/xx/xxxxx.xxx'
images_prefix: '/assets/images/blog'
relative_urls: true
css_class_annotation: 'nice-annotation'

View file

@ -3,6 +3,7 @@ format: html
base_url: 'https://causa-arcana.com'
current_path: '/xx/blog/xxxx/xx/xx/xxxxx.xxx'
images_prefix: '/assets/images/blog'
relative_urls: false
css_class_annotation: 'nice-annotation'

View file

@ -15,6 +15,7 @@ module Repubmark
css_class_figures_wrap
css_class_iframe_wrap
current_path
images_prefix
relative_urls
].freeze

View file

@ -58,7 +58,7 @@ module Repubmark
private
def src
@src ||= own_url "/assets/images/blog/#@name"
@src ||= own_url "#{config[:images_prefix]}/#@name"
end
def caption_html