Browse Source

Refactor sites/tig12.net/commands : add 'one-shot' directory

master
Thierry 3 years ago
parent
commit
8619adc2b9
7 changed files with 52 additions and 1 deletions
  1. +2
    -0
      sites/tig12.net/commands/one-shot/README
  2. +13
    -0
      sites/tig12.net/commands/one-shot/insert-flex1.yml
  3. +11
    -0
      sites/tig12.net/commands/one-shot/insert-flex2.yml
  4. +17
    -0
      sites/tig12.net/commands/one-shot/insert-flex3.yml
  5. +0
    -0
      sites/tig12.net/commands/one-shot/insert-footer.yml
  6. +1
    -1
      sites/tig12.net/commands/replace-footer.yml
  7. +8
    -0
      sites/tig12.net/commands/replace-sidebar-maths.yml

+ 2
- 0
sites/tig12.net/commands/one-shot/README View File

@@ -0,0 +1,2 @@
Contains commands that were written to be executed only once


+ 13
- 0
sites/tig12.net/commands/one-shot/insert-flex1.yml View File

@@ -0,0 +1,13 @@

#
# Executed only once
#
commandClass: insertHtml
after: '<body>'
insert-string: |
<div class="container">
<div class="main">
exclude:
- index.html

+ 11
- 0
sites/tig12.net/commands/one-shot/insert-flex2.yml View File

@@ -0,0 +1,11 @@

#
# Executed only once
#
commandClass: insertHtml
after: '</article>'
insert-string: |
</div><!-- end class="main" -->
exclude:
- index.html

+ 17
- 0
sites/tig12.net/commands/one-shot/insert-flex3.yml View File

@@ -0,0 +1,17 @@

#
# Executed only once
#
commandClass: insertHtml
before: '<footer>'
insert-string: |
<!-- ************************************* -->
<aside class="right">
</aside>
</div><!-- end class="container" -->
<!-- ************************************* -->
exclude:
- index.html

sites/tig12.net/commands/insertFooter.yml → sites/tig12.net/commands/one-shot/insert-footer.yml View File


sites/tig12.net/commands/replaceFooter.yml → sites/tig12.net/commands/replace-footer.yml View File

@@ -1,7 +1,7 @@


commandClass: replaceHtml
before: '<footer class="footer">'
before: '<footer>'
after: '</footer>'
replacement-file: static/html/footer.html
#exclude:

+ 8
- 0
sites/tig12.net/commands/replace-sidebar-maths.yml View File

@@ -0,0 +1,8 @@


commandClass: replaceHtml
before: '<aside class="right">'
after: '</aside>'
replacement-file: maths/sidebar-maths.html
#exclude:
# - index.html

Loading…
Cancel
Save