TEXT   40

seo.txt

Guest on 24th April 2022 08:09:48 AM

  1. page.meta.keywords {
  2.     # Set 'current' value
  3.     setCurrent = {$meta.keywords}
  4.     # Set content to match current
  5.     current = 1
  6.     # Prepend page keywords
  7.     prepend = TEXT
  8.     prepend {
  9.         data = levelfield: -1,keywords,slide
  10.         # if empty, return immediately
  11.         trim = 1
  12.         required = 1
  13.         # wrap it
  14.         innerWrap {
  15.             # wrap only if {$meta.keywords} is not empty
  16.             if.isTrue.current = 1
  17.             # We must return a wrap pattern here
  18.             append = TEXT
  19.             append.value = |,
  20.         }
  21.     }
  22. }
  23. page.meta.description {
  24.     # Set 'current' value
  25.     setCurrent = {$meta.description}
  26.     # Set content to match current
  27.     current = 1
  28.     # Prepend page description
  29.     prepend = TEXT
  30.     prepend {
  31.         data = levelfield: -1,description,slide
  32.         # if empty, return immediately
  33.         trim = 1
  34.         required = 1
  35.         # wrap it
  36.         innerWrap {
  37.             # wrap only if {$meta.description} is not empty
  38.             if.isTrue.current = 1
  39.             # We must return a wrap pattern here
  40.             append = TEXT
  41.             append.value = |,
  42.         }
  43.     }
  44. }

Raw Paste


Login or Register to edit or fork this paste. It's free.