Minor fixes. Added cache support for pngs, if server supports it.

This commit is contained in:
Lars Jung 2011-06-19 19:47:28 +02:00
parent ff2bddf826
commit 7602ab55d7
3 changed files with 28 additions and 5 deletions

View file

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

View file

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

View file

@ -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;
} }