Przeglądaj źródła

optimizing page speed

pull/139/head
somratpro 4 lat temu
rodzic
commit
c28c2c7feb

BIN
.DS_Store Wyświetl plik


BIN
exampleSite/.DS_Store Wyświetl plik


+ 3
- 3
exampleSite/config.toml Wyświetl plik

@@ -86,7 +86,7 @@ weight = 8
[params]
logo = "images/logo.png"
# Meta data
description = "Responsive Multipurpose Parallax HTML5 Template"
description = "Responsive Multipurpose Parallax Hugo Template"
author = "Themefisher"
# Google Analytics
google_analytics_id = "" # Your ID
@@ -95,7 +95,7 @@ post_share = true

# preloader
[params.preloader]
enable = true
enable = false
preloader = "images/logo.png"

# cookies
@@ -105,7 +105,7 @@ expire_days = 2

# google map
[params.map]
enable = true
enable = false
gmap_api = "https://maps.googleapis.com/maps/api/js?key=AIzaSyBu5nZKbeK-WHQ70oqOWo-_4VmwOwKP9YQ"
map_latitude = "51.5223477"
map_longitude = "-0.1622023"

+ 33
- 0
static/.htaccess Wyświetl plik

@@ -13,4 +13,37 @@ AddOutputFilterByType DEFLATE image/png
AddOutputFilterByType DEFLATE image/gif
AddOutputFilterByType DEFLATE image/jpeg
AddOutputFilterByType DEFLATE image/svg+xml
</IfModule>

<IfModule mod_expires.c>
ExpiresActive On

# Images
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"

# Video
ExpiresByType video/webm "access plus 1 year"
ExpiresByType video/mp4 "access plus 1 year"
ExpiresByType video/mpeg "access plus 1 year"

# Fonts
ExpiresByType font/ttf "access plus 1 year"
ExpiresByType font/otf "access plus 1 year"
ExpiresByType font/woff "access plus 1 year"
ExpiresByType font/woff2 "access plus 1 year"
ExpiresByType application/font-woff "access plus 1 year"

# CSS, JavaScript
ExpiresByType text/css "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"

# Others
ExpiresByType application/pdf "access plus 1 year"
ExpiresByType image/vnd.microsoft.icon "access plus 1 year"
</IfModule>

+ 1
- 1
static/plugins/themify-icons/themify-icons.css
Plik diff jest za duży
Wyświetl plik


Ładowanie…
Anuluj
Zapisz