Mercurial > hg > nginx-site
changeset 15:2f7420346aee
Initial emphasizing support. Using it for "Q:" and "A:" letter in FAQ.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 25 Aug 2011 19:34:06 +0000 |
parents | 22b3cd717e55 |
children | eb3fcac8a407 |
files | xml/en/docs/welcome_nginx_facebook.xml xsls/content.xsls xsls/style.xsls |
diffstat | 3 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/welcome_nginx_facebook.xml +++ b/xml/en/docs/welcome_nginx_facebook.xml @@ -8,8 +8,7 @@ <section> -<para> -<b>Q:</b> +<para initial="Q:"> I am trying to open Facebook (Yahoo!, Google, etc.) or some other well known web site and instead I am getting a blank web page with a message referring to nginx “Welcome to nginx!” or @@ -27,8 +26,7 @@ to Facebook (Yahoo!, Google, etc.) ? </para> -<para> -<b>A:</b> +<para initial="A:"> nginx is among the 3 most popular web servers in the world. It is a free open source software which is absolutely legitimate and has nothing to do with any kind of threatening or malicious activity per se.
--- a/xsls/content.xsls +++ b/xsls/content.xsls @@ -18,6 +18,13 @@ X:template = "item/para" { <p class="noi X:template = "para[@align]" { <p align="{@align}"> !!; </p> } +X:template = "para[@initial]" { + <p class="noindent"> + <span class="initial"><b> !{@initial} X:text{ } </b></span> + !!; + </p> +} + X:template = "programlisting" { <blockquote><pre> !!; </pre></blockquote> }
--- a/xsls/style.xsls +++ b/xsls/style.xsls @@ -8,6 +8,7 @@ X:template style (lang) { p { text-align: justify; } p { text-indent: 20pt; } p.noindent { text-indent: 0pt; } + span.initial { font-size: 200%; float: left; padding-right: 5pt;} li { text-align: justify; } td.list { background: #EEEEEE; } blockquote.note { text-align: justify; }