1
0
mirror of https://github.com/oupala/apaxy.git synced 2025-08-13 21:24:20 +02:00

fix: favicon not being loaded when using Apaxy in a subdirectory

This patch moves `apaxy/favicon.ico` to `apaxy/theme/favicon.ico` not to pollute the indexed page root.
The new favicon location is indicated through an HTML tag with the help of the `IndexHeadInsert` Apache directive, to automatically deal with processed pages.
This commit is contained in:
Samuel FORESTIER
2019-07-28 10:11:07 +02:00
parent 9e2eed8fc2
commit b9c25218f1
2 changed files with 6 additions and 4 deletions

View File

@@ -19,11 +19,13 @@ Options +Indexes
# index options # index options
IndexOptions +Charset=UTF-8 +FancyIndexing +FoldersFirst +HTMLTable +IconsAreLinks +IgnoreCase +NameWidth=* +SuppressDescription +SuppressRules +XHTML IndexOptions +Charset=UTF-8 +FancyIndexing +FoldersFirst +HTMLTable +IconsAreLinks +IgnoreCase +NameWidth=* +SuppressDescription +SuppressRules +XHTML
# meta viewport # favicon & meta viewport
IndexHeadInsert "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />" IndexHeadInsert "\
<link rel=\"shortcut icon\" href=\"{FOLDERNAME}/theme/favicon.ico\" />\
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />"
# hide ".htaccess" file, "favicon.ico" file and "/theme" directory # hide ".htaccess" file and "/theme" directory
IndexIgnore .htaccess favicon.ico /theme IndexIgnore .htaccess /theme
# #

View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB