Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Oct 14, 2020
1 parent 71dbc51 commit dfb3707
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Files to exclude when creating archive
.* export-ignore

# Auto detect text files and perform LF normalization
* text=auto
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor/
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Arnaud Ligny

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
18 changes: 18 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "cecil/theme-netlify",
"type": "cecil-theme",
"description": "Cecil component theme Netlify",
"keywords": ["Cecil", "theme", "Netlify"],
"license": "MIT",
"require": {
"cecil/theme-installer": "^1.3"
},
"extra": {
"name": "netlify",
"branch-alias": {
"dev-master": "1.x-dev"
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
9 changes: 9 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
defaultpages:
redirects:
path: _redirects
output: netlify_redirects
output:
formats:
- name: netlify_redirects
mediatype: text/plain
extension: ""
3 changes: 3 additions & 0 deletions layouts/page.netlify_redirects.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% for page in site.pages %}{% if page.redirect is defined %}
{{ url(page, {'canonical': false}) }} {{ url(page.redirect, {'canonical': false}) }} 301!
{% endif %}{% endfor %}
12 changes: 12 additions & 0 deletions static/_headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
/css/*
Cache-Control: public, max-age=360000
/fonts/*
Cache-Control: public, max-age=360000
/images/*
Cache-Control: public, max-age=360000
/js/*
Cache-Control: public, max-age=360000

0 comments on commit dfb3707

Please sign in to comment.