Class: Fronde::Source::Html

Inherits:
Fronde::Source show all
Defined in:
lib/fronde/source/html.rb

Overview

Specific settings for HTML Fronde::Source

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Fronde::Source

#[], #[]=, #blog?, canonical_config, #exclude_file?, #initialize, new_from_config, #public_absolute_path, #publication_path, #recursive?, #source_for, #source_for?, #target_for, #to_h, #type

Constructor Details

This class inherits a constructor from Fronde::Source

Class Method Details

.org_default_postambleObject



14
15
16
17
18
19
20
21
# File 'lib/fronde/source/html.rb', line 14

def org_default_postamble
  <<~POSTAMBLE
    <p><span class="author">#{I18n.t('fronde.org.postamble.written_by')}</span>
    #{I18n.t('fronde.org.postamble.with_emacs_html')}</p>
    <p class="date">#{I18n.t('fronde.org.postamble.last_modification')}</p>
    <p class="validation">%v</p>
  POSTAMBLE
end

Instance Method Details

#org_configObject



7
8
9
10
11
# File 'lib/fronde/source/html.rb', line 7

def org_config
  config = super
  config[0]['theme'] = @config['theme']
  config
end