浏览代码

optimizing page speed

pull/139/head
somratpro 4 年前
父节点
当前提交
c28c2c7feb
共有 5 个文件被更改,包括 37 次插入4 次删除
  1. 二进制
      .DS_Store
  2. 二进制
      exampleSite/.DS_Store
  3. 3
    3
      exampleSite/config.toml
  4. 33
    0
      static/.htaccess
  5. 1
    1
      static/plugins/themify-icons/themify-icons.css

二进制
.DS_Store 查看文件


二进制
exampleSite/.DS_Store 查看文件


+ 3
- 3
exampleSite/config.toml 查看文件

@@ -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 查看文件

@@ -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
文件差异内容过多而无法显示
查看文件


正在加载...
取消
保存