Add site map
This commit is contained in:
parent
2fe982dc76
commit
54e7e13876
@ -6,7 +6,7 @@ insert_final_newline = true
|
|||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
[*.{html,twig,yml}]
|
[*.{html,twig,yml,xml}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
[gulpfile.js]
|
[gulpfile.js]
|
||||||
|
14
app/SculpinKernel.php
Normal file
14
app/SculpinKernel.php
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Nickpeirson\Sculpin\Bundle\SitemapBundle\SculpinSitemapBundle;
|
||||||
|
use Sculpin\Bundle\SculpinBundle\HttpKernel\AbstractKernel;
|
||||||
|
|
||||||
|
class SculpinKernel extends AbstractKernel
|
||||||
|
{
|
||||||
|
protected function getAdditionalSculpinBundles()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
SculpinSitemapBundle::class,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
@ -9,5 +9,8 @@
|
|||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"sculpin/sculpin": "dev-develop"
|
"sculpin/sculpin": "dev-develop"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"nickpeirson/sculpin-sitemap-bundle": "^0.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
50
composer.lock
generated
50
composer.lock
generated
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"_readme": [
|
"_readme": [
|
||||||
"This file locks the dependencies of your project to a known state",
|
"This file locks the dependencies of your project to a known state",
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "09837fa5dccbc4721add5bfea70217ec",
|
"content-hash": "2ceda98de71b914666795da69e2c6df6",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "dflydev/ant-path-matcher",
|
"name": "dflydev/ant-path-matcher",
|
||||||
@ -2149,7 +2149,51 @@
|
|||||||
"time": "2017-05-11T10:04:12+00:00"
|
"time": "2017-05-11T10:04:12+00:00"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"packages-dev": [],
|
"packages-dev": [
|
||||||
|
{
|
||||||
|
"name": "nickpeirson/sculpin-sitemap-bundle",
|
||||||
|
"version": "0.1.1",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/nickpeirson/sculpin-sitemap-bundle.git",
|
||||||
|
"reference": "db9c7c979fcf9c13af11c6dfdc7c3ff877cfb14a"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/nickpeirson/sculpin-sitemap-bundle/zipball/db9c7c979fcf9c13af11c6dfdc7c3ff877cfb14a",
|
||||||
|
"reference": "db9c7c979fcf9c13af11c6dfdc7c3ff877cfb14a",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.5.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"sculpin/sculpin": ">=2.0.0"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Nickpeirson\\Sculpin\\Bundle\\SitemapBundle\\": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Nick Peirson",
|
||||||
|
"email": "nickpeirson@gmail.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Sculpin sitemap bundle",
|
||||||
|
"keywords": [
|
||||||
|
"Sitemap",
|
||||||
|
"sculpin"
|
||||||
|
],
|
||||||
|
"time": "2016-10-07T17:18:47+00:00"
|
||||||
|
}
|
||||||
|
],
|
||||||
"aliases": [],
|
"aliases": [],
|
||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"stability-flags": {
|
"stability-flags": {
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
---
|
---
|
||||||
permalink: none
|
permalink: none
|
||||||
|
sitemap:
|
||||||
|
_exclude: yes
|
||||||
---
|
---
|
||||||
User-agent: *
|
User-agent: *
|
||||||
|
28
source/sitemap.xml
Normal file
28
source/sitemap.xml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
permalink: none
|
||||||
|
use:
|
||||||
|
- sitemap
|
||||||
|
sitemap:
|
||||||
|
_exclude: yes
|
||||||
|
---
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
|
{% for url in data.sitemap %}
|
||||||
|
<url>
|
||||||
|
|
||||||
|
{# Last slash for pretty url #}
|
||||||
|
<loc>{{ site.url }}{{ url.loc != '/.' ? (url.loc ~ '/') : '' }}</loc>
|
||||||
|
|
||||||
|
<lastmod>{{ url.lastmod }}</lastmod>
|
||||||
|
|
||||||
|
{% if url.changefreq %}
|
||||||
|
<changefreq>{{ url.changefreq }}</changefreq>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if url.priority %}
|
||||||
|
<priority>{{ url.priority }}</priority>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</url>
|
||||||
|
{% endfor %}
|
||||||
|
</urlset>
|
Loading…
Reference in New Issue
Block a user