mirror of
https://github.com/oupala/apaxy.git
synced 2025-08-14 04:44:24 +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:
@@ -19,11 +19,13 @@ Options +Indexes
|
||||
# index options
|
||||
IndexOptions +Charset=UTF-8 +FancyIndexing +FoldersFirst +HTMLTable +IconsAreLinks +IgnoreCase +NameWidth=* +SuppressDescription +SuppressRules +XHTML
|
||||
|
||||
# meta viewport
|
||||
IndexHeadInsert "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />"
|
||||
# favicon & meta viewport
|
||||
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
|
||||
IndexIgnore .htaccess favicon.ico /theme
|
||||
# hide ".htaccess" file and "/theme" directory
|
||||
IndexIgnore .htaccess /theme
|
||||
|
||||
|
||||
#
|
||||
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Reference in New Issue
Block a user