mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-06 13:26:38 +02:00
Minor fixes. Added cache support for pngs, if server supports it.
This commit is contained in:
@@ -28,8 +28,9 @@ Install
|
|||||||
* Add the content of file `dot.htaccess` to the `.htaccess` file in the directory
|
* Add the content of file `dot.htaccess` to the `.htaccess` file in the directory
|
||||||
you want to be styled (you might have to create this file). This directory and any subdirectories will be
|
you want to be styled (you might have to create this file). This directory and any subdirectories will be
|
||||||
styled by h5ai.
|
styled by h5ai.
|
||||||
* Optionally add `h5ai.header.html` and/or `h5ai.footer.html` files to any of the styled folders to [display custom
|
* Optionally add `h5ai.header.html` and/or `h5ai.footer.html` files to any of the styled folders to [display
|
||||||
top or bottom sections](http://repo.larsjung.de/h5ai-sample/customize). The content of those files will be wrapped by `<header>` and `<footer>` tags.
|
custom top or bottom sections](http://repo.larsjung.de/h5ai-sample/customize). The content of those files
|
||||||
|
will be wrapped by `<header>` and `<footer>` tags.
|
||||||
|
|
||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
|
26
dot.htaccess
26
dot.htaccess
@@ -1,9 +1,29 @@
|
|||||||
|
################################
|
||||||
|
# customized .htaccess for h5ai
|
||||||
|
################################
|
||||||
|
|
||||||
|
|
||||||
|
# Options +Indexes
|
||||||
|
# Options +FollowSymLinks
|
||||||
|
|
||||||
|
|
||||||
|
################################
|
||||||
|
# cache images for 52 weeks
|
||||||
|
################################
|
||||||
|
|
||||||
|
<IfModule mod_headers.c>
|
||||||
|
<FilesMatch "\.png$">
|
||||||
|
Header set Cache-Control "max-age=31449600, public"
|
||||||
|
</FilesMatch>
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
|
||||||
|
################################
|
||||||
|
# style auto index
|
||||||
|
################################
|
||||||
|
|
||||||
<IfModule mod_autoindex.c>
|
<IfModule mod_autoindex.c>
|
||||||
|
|
||||||
# Options +Indexes
|
|
||||||
|
|
||||||
|
|
||||||
################################
|
################################
|
||||||
# uncomment the following line to force directory listing
|
# uncomment the following line to force directory listing
|
||||||
# even for directories with valid index files
|
# even for directories with valid index files
|
||||||
|
@@ -52,6 +52,8 @@ body > nav a {
|
|||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
body > nav img {
|
body > nav img {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
padding: 0 6px 6px 0;
|
padding: 0 6px 6px 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user