Skip to content

Commit dc4e4d4

Browse files
committedMay 26, 2020
Add website config
1 parent 365eda3 commit dc4e4d4

File tree

5 files changed

+102
-0
lines changed

5 files changed

+102
-0
lines changed
 

‎Gemfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
source "https://rubygems.org"
2+
3+
# Jekyll
4+
gem "jekyll", "~> 4.0", ">= 4.0.0"
5+
6+
# Plugins
7+
group :jekyll_plugins do
8+
gem "jekyll-autoprefixer"
9+
gem "jekyll-sitemap"
10+
end
11+
12+
# Performance-booster for watching directories on Windows
13+
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?

‎_config.dev.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Development configuration
2+
3+
# CSS Autoprefixer
4+
autoprefixer:
5+
browsers:
6+
- last 2 versions
7+
only_production: true

‎_config.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
url: "https://www.strappazzon.xyz"
2+
baseurl: "/"
3+
4+
# Ruby gems
5+
plugins:
6+
- jekyll-autoprefixer
7+
- jekyll-sitemap
8+
9+
# Markdown
10+
markdown: kramdown
11+
kramdown:
12+
html_to_native: true
13+
14+
# CSS
15+
sass:
16+
sass_dir: "static/css"
17+
style: compressed
18+
19+
# CSS Autoprefixer
20+
autoprefixer:
21+
browsers:
22+
- last 2 versions
23+
only_production: false
24+
25+
# Sitemap
26+
sitemap:
27+
file: "/sitemap.xml"
28+
29+
# Excluded files
30+
exclude:
31+
- Gemfile
32+
- LICENSE.txt
33+
- netlify.toml
34+
- README.md
35+
36+
# Included files
37+
include:
38+
- .well-known

‎netlify.toml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Build
2+
[build]
3+
command = "jekyll build"
4+
# Relative path to the repository root
5+
publish = "_site/"
6+
7+
# Headers
8+
[[headers]]
9+
for = "/*"
10+
[headers.values]
11+
X-Frame-Options = "DENY"
12+
X-XSS-Protection = "1; mode=block"
13+
X-Content-Type-Options = "nosniff"
14+
Content-Security-Policy = "default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; font-src 'self'; frame-ancestors 'none';"
15+
Access-Control-Allow-Origin = "*"
16+
Referrer-Policy = "no-referrer"
17+
Feature-Policy = "autoplay 'self';camera 'none';fullscreen 'self';geolocation 'none';microphone 'none';payment 'none'"
18+
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"
19+
Cache-Control = '''
20+
max-age=0,
21+
no-cache,
22+
no-store,
23+
must-revalidate'''
24+
25+
# Redirects
26+
[[redirects]]
27+
# Redirect from old Keys page
28+
from = "/keys/*"
29+
to = "/accounts/"
30+
status = 301
31+
32+
[[redirects]]
33+
# 404
34+
# Keep this redirect at the end!
35+
from = "/*"
36+
to = "/404.html"
37+
status = 404
38+
force = false

‎robots.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
---
3+
User-agent: *
4+
Disallow:
5+
6+
Sitemap: {{ site.url }}/sitemap.xml

0 commit comments

Comments
 (0)
Please sign in to comment.