mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-23 22:42:14 +08:00
Edited lfs-navigational.xsl so favicon.ico appears as logo on every page.
This commit is contained in:
parent
f77949b643
commit
c8dee92123
3
Makefile
3
Makefile
@ -123,8 +123,7 @@ $(BASEDIR)/index.html: $(RENDERTMP)/$(GLFSHTML) version
|
|||||||
$(Q)if [ ! -e $(BASEDIR)/images ]; then \
|
$(Q)if [ ! -e $(BASEDIR)/images ]; then \
|
||||||
mkdir -p $(BASEDIR)/images; \
|
mkdir -p $(BASEDIR)/images; \
|
||||||
fi;
|
fi;
|
||||||
$(Q)cp images/*.png $(BASEDIR)/images
|
$(Q)cp images/*.{png,ico} $(BASEDIR)/images
|
||||||
$(Q)cp favicon.ico $(BASEDIR)
|
|
||||||
|
|
||||||
$(Q)cd $(BASEDIR)/; sed -e "s@../images@images@g" \
|
$(Q)cd $(BASEDIR)/; sed -e "s@../images@images@g" \
|
||||||
-i *.html
|
-i *.html
|
||||||
|
Before Width: | Height: | Size: 264 KiB After Width: | Height: | Size: 264 KiB |
@ -66,6 +66,12 @@
|
|||||||
<para>
|
<para>
|
||||||
[zeckma] - favicon.ico -> website logo. Issue #4
|
[zeckma] - favicon.ico -> website logo. Issue #4
|
||||||
</para>
|
</para>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
[zeckma] - Edited lfs-navigational.xsl so favicon.ico appears as logo
|
||||||
|
on every page.
|
||||||
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
@ -9,13 +9,20 @@
|
|||||||
|
|
||||||
<!-- html.head:
|
<!-- html.head:
|
||||||
Drop all navigational links from inside head xhtml output. -->
|
Drop all navigational links from inside head xhtml output. -->
|
||||||
<!-- The original template is in {docbook-xsl}/xhtml/chunk-common.xsl -->
|
<!-- The original template is in {docbook-xsl}/xhtml/chunk-common.xsl -->
|
||||||
<xsl:template name="html.head">
|
<xsl:template name="html.head">
|
||||||
<head>
|
<head>
|
||||||
<xsl:call-template name="system.head.content"/>
|
<xsl:call-template name="system.head.content"/>
|
||||||
<xsl:call-template name="head.content"/>
|
<xsl:call-template name="head.content"/>
|
||||||
<xsl:call-template name="user.head.content"/>
|
<xsl:call-template name="user.head.content"/>
|
||||||
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
|
<xsl:variable name="up" select="parent::*"/>
|
||||||
|
<xsl:variable name="home" select="/*[1]"/>
|
||||||
|
<xsl:if test="$home != .">
|
||||||
|
<link rel="icon" href="../images/favicon.ico" type="image/x-icon"/>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="$home = .">
|
||||||
|
<link rel="icon" href="images/favicon.ico" type="image/x-icon"/>
|
||||||
|
</xsl:if>
|
||||||
</head>
|
</head>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user