Commit e258b056 authored by Alex Gil's avatar Alex Gil

added method to the config file

parent 63c81f86
...@@ -380,6 +380,11 @@ module Jekyll ...@@ -380,6 +380,11 @@ module Jekyll
File.join site.source, source File.join site.source, source
end end
#elotroalex
def relative
@relative || config['relative']
end
def reference_tag(entry, index = nil) def reference_tag(entry, index = nil)
return missing_reference unless entry return missing_reference unless entry
...@@ -574,8 +579,8 @@ module Jekyll ...@@ -574,8 +579,8 @@ module Jekyll
(context['citation_numbers'] ||= {})[key] ||= cited_keys.length (context['citation_numbers'] ||= {})[key] ||= cited_keys.length
end end
def link_target_for key def link_target_for(key)
"#{base_url}#{relative}##{[prefix, key].compact.join('-')}" "#{relative}##{[prefix, key].compact.join('-')}"
end end
def cite(keys) def cite(keys)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment