librelist archives

« back to archive

[blohg] how can I make a named link to the file in the attachment directory?

[blohg] how can I make a named link to the file in the attachment directory?

From:
刘一新
Date:
2012-05-24 @ 04:14
Hi, all

In the about.rst, the link is explicitly expanded by :attachment:
`mercurial.png`, then in html, this will appear as a full link.

However, I want make a named link something like

`Download <link_to_the_mercurial.png>`_

How can I achieve that? Thanks!

-- 
*Yi-Xin Liu, PHD*
*Department of Macromolecular Science*
*Fudan University*
*Room 415, Yuejing Building *
*Handan Rd. 220, **Shanghai, China*
*Tel +86-021-65642863*
*Mobile +86-13916819745*
http://www.polymer.fudan.edu.cn/show.aspx?info_lb=20&info_id=752&flag=1
https://bitbucket.org/liuyxpp/
http://www.mendeley.com/profiles/yi-xin-liu/

Re: [blohg] how can I make a named link to the file in the attachment directory?

From:
Anton Novosyolov
Date:
2012-05-24 @ 08:44
Use url|label, see
http://docs.blohg.org/en/0.10.1/write/#interpreted-text-role-attachment

On Thursday, May 24, 2012, 刘一新 <liuyxpp@gmail.com> wrote:
> Hi, all
> In the about.rst, the link is explicitly expanded by :attachment:
`mercurial.png`, then in html, this will appear as a full link.
> However, I want make a named link something like
> `Download <link_to_the_mercurial.png>`_
> How can I achieve that? Thanks!
> --
> Yi-Xin Liu, PHD
> Department of Macromolecular Science
> Fudan University
> Room 415, Yuejing Building
> Handan Rd. 220, Shanghai, China
> Tel +86-021-65642863
> Mobile +86-13916819745
> http://www.polymer.fudan.edu.cn/show.aspx?info_lb=20&info_id=752&flag=1
> https://bitbucket.org/liuyxpp/
> http://www.mendeley.com/profiles/yi-xin-liu/
>
>

Re: [blohg] how can I make a named link to the file in the attachment directory?

From:
刘一新
Date:
2012-05-24 @ 08:49
Thanks. I notice that in the doc just after I send the mail.

2012/5/24 Anton Novosyolov <anton.novosyolov@gmail.com>

> Use url|label, see
> http://docs.blohg.org/en/0.10.1/write/#interpreted-text-role-attachment
>
>
> On Thursday, May 24, 2012, 刘一新 <liuyxpp@gmail.com> wrote:
> > Hi, all
> > In the about.rst, the link is explicitly expanded by :attachment:
> `mercurial.png`, then in html, this will appear as a full link.
> > However, I want make a named link something like
> > `Download <link_to_the_mercurial.png>`_
> > How can I achieve that? Thanks!
> > --
> > Yi-Xin Liu, PHD
> > Department of Macromolecular Science
> > Fudan University
> > Room 415, Yuejing Building
> > Handan Rd. 220, Shanghai, China
> > Tel +86-021-65642863
> > Mobile +86-13916819745
> > http://www.polymer.fudan.edu.cn/show.aspx?info_lb=20&info_id=752&flag=1
> > https://bitbucket.org/liuyxpp/
> > http://www.mendeley.com/profiles/yi-xin-liu/
> >
> >
>



-- 
*Yi-Xin Liu, PHD*
*Department of Macromolecular Science*
*Fudan University*
*Room 415, Yuejing Building *
*Handan Rd. 220, **Shanghai, China*
*Tel +86-021-65642863*
*Mobile +86-13916819745*
http://www.polymer.fudan.edu.cn/show.aspx?info_lb=20&info_id=752&flag=1
https://bitbucket.org/liuyxpp/
http://www.mendeley.com/profiles/yi-xin-liu/