[{"data":1,"prerenderedAt":352},["ShallowReactive",2],{"helpers-navigation":3,"mdc-o8y00b-key":32,"helpers-version":74,"\u002Fdocs\u002Fhelpers":75,"\u002Fdocs\u002Fhelpers-surround":351},[4],{"title":5,"path":6,"stem":7,"children":8,"icon":31},"Helpers","\u002Fdocs\u002Fhelpers","1.docs\u002F8.helpers\u002F1.index",[9,11,15,19,23,27],{"title":10,"path":6,"stem":7},"Getting Started",{"title":12,"path":13,"stem":14},"Environment Variables","\u002Fdocs\u002Fhelpers\u002Fenvironment-variables","1.docs\u002F8.helpers\u002F2.environment-variables",{"title":16,"path":17,"stem":18},"Meta Tags","\u002Fdocs\u002Fhelpers\u002Fmeta-tags","1.docs\u002F8.helpers\u002F3.meta-tags",{"title":20,"path":21,"stem":22},"Sitemap and robots.txt","\u002Fdocs\u002Fhelpers\u002Fsitemap","1.docs\u002F8.helpers\u002F4.sitemap",{"title":24,"path":25,"stem":26},"Redirects","\u002Fdocs\u002Fhelpers\u002Fredirects","1.docs\u002F8.helpers\u002F5.redirects",{"title":28,"path":29,"stem":30},"Vite","\u002Fdocs\u002Fhelpers\u002Fvite","1.docs\u002F8.helpers\u002F6.vite","i-ri-tools-line",{"data":33,"body":34},{},{"type":35,"children":36},"root",[37],{"type":38,"tag":39,"props":40,"children":41},"element","p",{},[42,45,54,56,63,65,72],{"type":43,"value":44},"text","Kirby Tools is built on ",{"type":38,"tag":46,"props":47,"children":51},"a",{"href":48,"rel":49},"https:\u002F\u002Fgetkirby.com",[50],"nofollow",[52],{"type":43,"value":53},"Kirby",{"type":43,"value":55}," – with gratitude to the team and community who make it. Help me improve the plugins: share feedback in ",{"type":38,"tag":46,"props":57,"children":60},{"href":58,"rel":59},"https:\u002F\u002Fgithub.com\u002Fkirby-tools\u002Fcommunity\u002Fdiscussions",[50],[61],{"type":43,"value":62},"Discussions",{"type":43,"value":64}," or report bugs via ",{"type":38,"tag":46,"props":66,"children":69},{"href":67,"rel":68},"https:\u002F\u002Fgithub.com\u002Fkirby-tools\u002Fcommunity\u002Fissues",[50],[70],{"type":43,"value":71},"Issues",{"type":43,"value":73},".",null,{"id":76,"title":10,"body":77,"description":345,"extension":346,"meta":347,"navigation":348,"path":6,"seo":349,"stem":7,"__hash__":350},"docs\u002F1.docs\u002F8.helpers\u002F1.index.md",{"type":78,"value":79,"toc":341},"minimark",[80,97,102,135,166,169,173,258,268,337],[39,81,82,83,87,88,92,93,96],{},"Kirby Helpers is a plugin for ",[46,84,86],{"href":48,"rel":85},[50],"Kirby CMS"," with five helpers for your templates and ",[89,90,91],"code",{},"config.php",". Each works on its own: the sitemap, ",[89,94,95],{},"robots.txt",", and redirects stay off until you configure them, and the rest are functions you call.",[98,99,101],"h2",{"id":100},"install-the-plugin","Install the Plugin",[103,104,107,110],"card",{"icon":105,"title":106},"i-ri-terminal-box-line","Composer",[39,108,109],{},"The recommended way to install the plugin:",[111,112,117],"pre",{"className":113,"code":114,"language":115,"meta":116,"style":116},"language-bash shiki shiki-themes github-light github-light github-dark","composer require johannschopplich\u002Fkirby-helpers\n","bash","",[89,118,119],{"__ignoreMap":116},[120,121,124,128,132],"span",{"class":122,"line":123},"line",1,[120,125,127],{"class":126},"snPdu","composer",[120,129,131],{"class":130},"sIIMD"," require",[120,133,134],{"class":130}," johannschopplich\u002Fkirby-helpers\n",[103,136,139],{"icon":137,"title":138},"i-ri-folder-zip-line","ZIP File Download",[39,140,141,142,145,146,151,152,155,156,159,160,162,163,73],{},"Download the ",[143,144],"latest-version",{}," or head over to the ",[46,147,150],{"href":148,"rel":149},"https:\u002F\u002Fgithub.com\u002Fjohannschopplich\u002Fkirby-helpers\u002Freleases",[50],"releases page"," to see all versions. Extract the ZIP file to your ",[89,153,154],{},"site\u002Fplugins"," folder. Installed this way, ",[89,157,158],{},"env()"," is not available in ",[89,161,91],{}," – see ",[46,164,12],{"href":165},"\u002Fdocs\u002Fhelpers\u002Fenvironment-variables#load-the-file-in-configphp",[39,167,168],{},"The plugin runs on Kirby 5.",[98,170,172],{"id":171},"the-helpers","The Helpers",[174,175,176,189],"table",{},[177,178,179],"thead",{},[180,181,182,186],"tr",{},[183,184,185],"th",{},"Helper",[183,187,188],{},"Entry Point",[190,191,192,204,215,233,244],"tbody",{},[180,193,194,199],{},[195,196,197],"td",{},[46,198,12],{"href":13},[195,200,201],{},[89,202,203],{},"env('KEY', $default)",[180,205,206,210],{},[195,207,208],{},[46,209,16],{"href":17},[195,211,212],{},[89,213,214],{},"$page->meta()->social()",[180,216,217,224],{},[195,218,219],{},[46,220,221,222],{"href":21},"Sitemap and ",[89,223,95],{},[195,225,226,229,230],{},[89,227,228],{},"sitemap.enabled"," and ",[89,231,232],{},"robots.enabled",[180,234,235,239],{},[195,236,237],{},[46,238,24],{"href":25},[195,240,241],{},[89,242,243],{},"redirects",[180,245,246,250],{},[195,247,248],{},[46,249,28],{"href":29},[195,251,252,229,255],{},[89,253,254],{},"vite()->js()",[89,256,257],{},"vite()->css()",[39,259,260,261,264,265,267],{},"Options live under ",[89,262,263],{},"johannschopplich.helpers"," in ",[89,266,91],{},":",[111,269,274],{"className":270,"code":271,"filename":272,"language":273,"meta":116,"style":116},"language-php shiki shiki-themes github-light github-light github-dark","return [\n    'johannschopplich.helpers' => [\n        'sitemap' => [\n            'enabled' => true\n        ]\n    ]\n];\n","site\u002Fconfig\u002Fconfig.php","php",[89,275,276,286,297,307,319,325,331],{"__ignoreMap":116},[120,277,278,282],{"class":122,"line":123},[120,279,281],{"class":280},"s8jYJ","return",[120,283,285],{"class":284},"sxrX7"," [\n",[120,287,289,292,295],{"class":122,"line":288},2,[120,290,291],{"class":130},"    'johannschopplich.helpers'",[120,293,294],{"class":280}," =>",[120,296,285],{"class":284},[120,298,300,303,305],{"class":122,"line":299},3,[120,301,302],{"class":130},"        'sitemap'",[120,304,294],{"class":280},[120,306,285],{"class":284},[120,308,310,313,315],{"class":122,"line":309},4,[120,311,312],{"class":130},"            'enabled'",[120,314,294],{"class":280},[120,316,318],{"class":317},"sBjJW"," true\n",[120,320,322],{"class":122,"line":321},5,[120,323,324],{"class":284},"        ]\n",[120,326,328],{"class":122,"line":327},6,[120,329,330],{"class":284},"    ]\n",[120,332,334],{"class":122,"line":333},7,[120,335,336],{"class":284},"];\n",[338,339,340],"style",{},"html pre.shiki code .snPdu, html code.shiki .snPdu{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sIIMD, html code.shiki .sIIMD{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s8jYJ, html code.shiki .s8jYJ{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sxrX7, html code.shiki .sxrX7{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sBjJW, html code.shiki .sBjJW{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":116,"searchDepth":288,"depth":288,"links":342},[343,344],{"id":100,"depth":288,"text":101},{"id":171,"depth":288,"text":172},"Five independent helpers for the templates and config of a Kirby site – environment variables, meta tags, a sitemap, redirects, and Vite assets.","md",{},true,{"title":10,"description":345},"Rrnfmit0YDmkP4QHSFPw_35OIlWmx6-gZYqNiJR4a9w",[74,74],1791534951607]