[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-texinfo] adding <link rel="canonical" ...>

From: Marc Glisse
Subject: Re: [help-texinfo] adding <link rel="canonical" ...>
Date: Sun, 23 Feb 2014 22:57:11 +0100 (CET)
User-agent: Alpine 2.10 (DEB 1266 2009-07-14)

(it looks like I never received this email:
I know that makes my reply quite late...)

Patrice Dumas, Feb 2012:
On Thu, Jan 19, 2012 at 12:07:46AM +0100, Marc Glisse wrote:
> Hello,
> > I am looking for a way to add <link rel="canonical" href="somewhere/$file" > /> to the headers of the generated html pages. With makeinfo, it doesn't > seem possible :-( > > So I looked at texi2html (with --node-files to get a similar result), > there is $EXTRA_HEAD, but I couldn't see how to reference the file name > from there (I am not a perl guru).

I don't really understand your quastion here.  With texi2html you can
use an init files with content:

$EXTRA_HEAD = '<link rel="canonical" href="somewhere/$file"/>';

With texi2any, it could be along
./ --set EXTRA_HEAD='<link rel="canonical" href="somewhere/$file"/>' --html c.texi

or in an init file
set_from_init_file('EXTRA_HEAD', '<link rel="canonical" href="somewhere/$file"/>');


using any of these techniques inserts $file literally in the html files, instead of replacing it with the name of each file.

After reading:
perldoc -q 'How can I expand variables in text strings'

it doesn't seem easy to change that.
(hacking locally is easy, but I'd rather not)

Marc Glisse

reply via email to

[Prev in Thread] Current Thread [Next in Thread]