~hristoast/hristoast

9e22a608d77e7b652643053b8fd5c069e9d6c4d7 — Hristos N. Triantafillou a month ago 4bf755a
Don't use fancy multi-line comments
1 files changed, 16 insertions(+), 14 deletions(-)

M plugins/sitemap.lua
M plugins/sitemap.lua => plugins/sitemap.lua +16 -14
@@ 1,18 1,20 @@
--[[
    Sitemap generator, based on dmbaturin's atom generator.
--
-- Sitemap generator, based on dmbaturin's atom generator.
--
-- Uses the list of pages contained in `site_index'.
--
-- Requires a "site_url" value as seen below:
--
-- [custom_options]
--   site_url = "https://domain.tld"
--
-- Sample widget configuration:
--
-- [widgets.sitemap]
--   widget = "sitemap"
--   sitemap_file = "sitemap.xml"
--

    Requires a "site_url" value as seen below:

    [custom_options]
      site_url = "https://domain.tld"

    Sample widget configuration:

    [widgets.sitemap]
      widget = "sitemap"
      sitemap_file = "sitemap.xml"

]]
Plugin.require_version("2.2.0")

config["site_url"] = soupault_config["custom_options"]["site_url"]