From dfd5e752ef8caa0e2d91a79cb56782590c0a2030 Mon Sep 17 00:00:00 2001 From: Marat Khusnetdinov Date: Mon, 11 Feb 2019 17:22:10 +0300 Subject: [PATCH] [#145] Rewrite url --- .htaccess | 2 ++ _config.production.yml | 1 - _config.staging.yml | 1 - _config.yml | 1 - _includes/data_structure_complexity_header.html | 2 +- _includes/head.html | 6 +++--- _includes/locales.html | 8 +++----- _pages/index.html | 1 - 8 files changed, 9 insertions(+), 13 deletions(-) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..f04e8be --- /dev/null +++ b/.htaccess @@ -0,0 +1,2 @@ +RewriteCond %{HTTP_HOST} ^www\.betterdocs\.info$ +RewriteRule ^/?$ "https\:\/\/betterdocs\.info\/" [R=301,L] \ No newline at end of file diff --git a/_config.production.yml b/_config.production.yml index f34a336..988d055 100644 --- a/_config.production.yml +++ b/_config.production.yml @@ -76,7 +76,6 @@ exclude_from_localizations: [ markdown: kramdown theme: minima plugins: - - jekyll-feed - jekyll-multiple-languages-plugin - jekyll-sitemap - jekyll-gzip diff --git a/_config.staging.yml b/_config.staging.yml index d4b883f..2d5124e 100644 --- a/_config.staging.yml +++ b/_config.staging.yml @@ -76,7 +76,6 @@ exclude_from_localizations: [ markdown: kramdown theme: minima plugins: - - jekyll-feed - jekyll-multiple-languages-plugin - jekyll-sitemap - jekyll-gzip diff --git a/_config.yml b/_config.yml index e5f8789..234d74e 100644 --- a/_config.yml +++ b/_config.yml @@ -76,7 +76,6 @@ exclude_from_localizations: [ markdown: kramdown theme: minima plugins: - - jekyll-feed - jekyll-multiple-languages-plugin - jekyll-sitemap - jekyll-gzip diff --git a/_includes/data_structure_complexity_header.html b/_includes/data_structure_complexity_header.html index e64ccdd..98d9afd 100644 --- a/_includes/data_structure_complexity_header.html +++ b/_includes/data_structure_complexity_header.html @@ -1,4 +1,4 @@ - + Average Access Average Search diff --git a/_includes/head.html b/_includes/head.html index 3ad04f7..74b867a 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -18,9 +18,6 @@ - - - {% if jekyll.environment == "production" %} {% for locale in site.locales %} @@ -32,6 +29,9 @@ {% endfor %} {% endif %} + + + diff --git a/_includes/locales.html b/_includes/locales.html index 1bf1e01..6d9a3b1 100644 --- a/_includes/locales.html +++ b/_includes/locales.html @@ -1,12 +1,10 @@