All Projects → bolt → Sitemap

bolt / Sitemap

Licence: MIT license
Bolt Sitemap extension - create XML sitemaps for your Bolt website.

Programming Languages

PHP
23972 projects - #3 most used programming language
HTML
75241 projects
XSLT
1337 projects

Projects that are alternatives of or similar to Sitemap

ultimate-sitemap-parser
Ultimate Website Sitemap Parser
Stars: ✭ 118 (+521.05%)
Mutual labels:  sitemap, xml-sitemap
Intelligent Document Finder
Document Search Engine Tool
Stars: ✭ 45 (+136.84%)
Mutual labels:  search-engine
botanalyse
botsonar analyse open api
Stars: ✭ 19 (+0%)
Mutual labels:  search-engine
gosearch
Web crawler and Search engine in Golang.
Stars: ✭ 19 (+0%)
Mutual labels:  search-engine
malwinx
Just a normal flask web app to understand win32api with code snippets and references.
Stars: ✭ 76 (+300%)
Mutual labels:  search-engine
BDExamenes
Base de datos de exámenes de la ETSIIT
Stars: ✭ 23 (+21.05%)
Mutual labels:  search-engine
illuminsight
💡👀 Read EPUB books with built-in insights from wikis, definitions, translations, and Google.
Stars: ✭ 55 (+189.47%)
Mutual labels:  search-engine
lucene
Apache Lucene open-source search software
Stars: ✭ 1,009 (+5210.53%)
Mutual labels:  search-engine
nlp-lt
Natural Language Processing for Lithuanian language
Stars: ✭ 17 (-10.53%)
Mutual labels:  search-engine
odcrawler-frontend
A frontend for ODCrawler, an Open Directory search engine.
Stars: ✭ 20 (+5.26%)
Mutual labels:  search-engine
google-this
🔎 A simple yet powerful module to retrieve organic search results and much more from Google.
Stars: ✭ 88 (+363.16%)
Mutual labels:  search-engine
Silverstripe-SEO
A SilverStripe module to optimise the Meta, crawling, indexing, and sharing of your website content
Stars: ✭ 41 (+115.79%)
Mutual labels:  sitemap
siteshooter
📷 Automate full website screenshots and PDF generation with multiple viewport support.
Stars: ✭ 63 (+231.58%)
Mutual labels:  sitemap
grav-plugin-sitemap
Grav Sitemap Plugin
Stars: ✭ 34 (+78.95%)
Mutual labels:  sitemap
domhttpx
domhttpx is a google search engine dorker with HTTP toolkit built with python, can make it easier for you to find many URLs/IPs at once with fast time.
Stars: ✭ 59 (+210.53%)
Mutual labels:  search-engine
GreasyFork-Scripts
该项目开源代码用于主流浏览器的油猴脚本,包含字体渲染脚本 Font Rendering.user.js, 搜索引擎跳转工具 Google & Baidu Switcher.user.js.
Stars: ✭ 260 (+1268.42%)
Mutual labels:  search-engine
jina-meme-search
Meme search engine built with Jina neural search framework. Search with captions or image files to find matching memes.
Stars: ✭ 21 (+10.53%)
Mutual labels:  search-engine
PeARS-orchard
This is the decentralised version of PeARS, the people's search engine, to be taken as Phase 1 of the fully distributed system.
Stars: ✭ 34 (+78.95%)
Mutual labels:  search-engine
lafzi-web
Antarmuka web untuk Lafzi: mesin pencari lafadz dalam Al-Quran
Stars: ✭ 25 (+31.58%)
Mutual labels:  search-engine
gosearch
a fast, real-time file searching program for linux
Stars: ✭ 68 (+257.89%)
Mutual labels:  search-engine

Sitemap

This extension will automatically create XML sitemaps for your Bolt sites. After enabling the extension, go to http://example.org/sitemap.xml to see it.

The bigger search-engines like Google and Bing will automatically pick up your sitemap after a while, but it's always a good idea to explicitly tell the search engines where to find it. To do so, this extension automatically adds the link to the <head> section of your pages:

<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml" />

Apart from that, it's good practice to also add the following line to your robots.txt file:

Sitemap: http://example.org/sitemap.xml

Obviously, you should replace 'example.org' with the domain name of your website.

This extension adds a 'route' for /sitemap.xml and /sitemap by default, but it has lower priority than user defined routes.

If you use the pagebinding in routing.yml, or anything similar route that would match 'sitemap' first, you will need to add the following above that route. You should also do this if you have an extension that might override the default routing, like the AnimalDesign/bolt-translate extension.

sitemap:
  path: /sitemap
  defaults: { _controller: sitemap.controller:sitemap }

sitemapXml:
  path: /sitemap.xml
  defaults: { _controller: sitemap.controller:sitemapXml }

Note, if you have a ContentType with the property searchable: false, that content type will be ignored.

Advanced links list control

If you have your own bundled extension you can add, remove or change links before the sitemap is rendered. You need to subscribe to the SitemapEvents::AFTER_COLLECTING_LINKS event. The object you will get is an instance of SitemapEvent class which has a getLinks method that returns a MutableBag object. The last one is an array-like list of links. See example:

protected function subscribe($dispatcher)
{
    $dispatcher->addListener(SitemapEvents::AFTER_COLLECTING_LINKS,
        function ($event) {
            /** @var SitemapEvent $event */
            $links = $event->getLinks();
            $links->add([
                'link'  => '/lorem-ipsum',
                'title' => 'Hello World!',
                'depth' => 1,
            ]);
        }
    );
}

Sitemap stylesheets

You can customize the sitemap with an xslt stylesheet if you copy the templates/sitemap_xml.twig file and the web/sitemap.xsl file to your theme directory and by adding the xsl-stylesheet declaration after the xml declaration so the first two lines of the themes/{yourthemename}/sitemap_xml.twig look like:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="{{ paths.theme }}/sitemap.xsl"?>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].