Edited lfs-navigational.xsl so favicon.ico appears as logo on every page.

This commit is contained in:
Zeckmathederg 2024-06-06 21:09:36 -06:00
parent f77949b643
commit c8dee92123
4 changed files with 16 additions and 4 deletions

View File

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

View File

Before

Width:  |  Height:  |  Size: 264 KiB

After

Width:  |  Height:  |  Size: 264 KiB

View File

@ -67,6 +67,12 @@
[zeckma] - favicon.ico -> website logo. Issue #4 [zeckma] - favicon.ico -> website logo. Issue #4
</para> </para>
</listitem> </listitem>
<listitem>
<para>
[zeckma] - Edited lfs-navigational.xsl so favicon.ico appears as logo
on every page.
</para>
</listitem>
</itemizedlist> </itemizedlist>
</listitem> </listitem>

View File

@ -15,7 +15,14 @@
<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>