Remove image path prefix
This commit is contained in:
parent
90dae92c30
commit
37af17d870
5 changed files with 5 additions and 1 deletions
|
@ -3,4 +3,5 @@ format: gemtext
|
||||||
|
|
||||||
base_url: 'gemini://causa-arcana.com'
|
base_url: 'gemini://causa-arcana.com'
|
||||||
current_path: '/xx/blog/xxxx/xx/xx/xxxxx.xxx'
|
current_path: '/xx/blog/xxxx/xx/xx/xxxxx.xxx'
|
||||||
|
images_prefix: '/assets/images/blog'
|
||||||
relative_urls: true
|
relative_urls: true
|
||||||
|
|
|
@ -3,6 +3,7 @@ format: html
|
||||||
|
|
||||||
base_url: 'https://causa-arcana.com'
|
base_url: 'https://causa-arcana.com'
|
||||||
current_path: '/xx/blog/xxxx/xx/xx/xxxxx.xxx'
|
current_path: '/xx/blog/xxxx/xx/xx/xxxxx.xxx'
|
||||||
|
images_prefix: '/assets/images/blog'
|
||||||
relative_urls: true
|
relative_urls: true
|
||||||
|
|
||||||
css_class_annotation: 'nice-annotation'
|
css_class_annotation: 'nice-annotation'
|
||||||
|
|
|
@ -3,6 +3,7 @@ format: html
|
||||||
|
|
||||||
base_url: 'https://causa-arcana.com'
|
base_url: 'https://causa-arcana.com'
|
||||||
current_path: '/xx/blog/xxxx/xx/xx/xxxxx.xxx'
|
current_path: '/xx/blog/xxxx/xx/xx/xxxxx.xxx'
|
||||||
|
images_prefix: '/assets/images/blog'
|
||||||
relative_urls: false
|
relative_urls: false
|
||||||
|
|
||||||
css_class_annotation: 'nice-annotation'
|
css_class_annotation: 'nice-annotation'
|
||||||
|
|
|
@ -15,6 +15,7 @@ module Repubmark
|
||||||
css_class_figures_wrap
|
css_class_figures_wrap
|
||||||
css_class_iframe_wrap
|
css_class_iframe_wrap
|
||||||
current_path
|
current_path
|
||||||
|
images_prefix
|
||||||
relative_urls
|
relative_urls
|
||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ module Repubmark
|
||||||
private
|
private
|
||||||
|
|
||||||
def src
|
def src
|
||||||
@src ||= own_url "/assets/images/blog/#@name"
|
@src ||= own_url "#{config[:images_prefix]}/#@name"
|
||||||
end
|
end
|
||||||
|
|
||||||
def caption_html
|
def caption_html
|
||||||
|
|
Loading…
Reference in a new issue