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:
@@ -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
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Reference in New Issue
Block a user