Bläddra i källkod

optimizing page speed

pull/139/head
somratpro 4 år sedan
förälder
incheckning
c28c2c7feb
5 ändrade filer med 37 tillägg och 4 borttagningar
  1. Binär
      .DS_Store
  2. Binär
      exampleSite/.DS_Store
  3. 3
    3
      exampleSite/config.toml
  4. 33
    0
      static/.htaccess
  5. 1
    1
      static/plugins/themify-icons/themify-icons.css

Binär
.DS_Store Visa fil


Binär
exampleSite/.DS_Store Visa fil


+ 3
- 3
exampleSite/config.toml Visa fil

@@ -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 Visa fil

@@ -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
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


Laddar…
Avbryt
Spara