X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/7f5c2cfa5a987d887f42d6db95f80f42ceb3b5ff..5c9d9b3213e1cd84a6e6b944e68944313f29111f:/doc/tips/Right-to-left___40__RTL__41___page_text.mdwn diff --git a/doc/tips/Right-to-left___40__RTL__41___page_text.mdwn b/doc/tips/Right-to-left___40__RTL__41___page_text.mdwn index 2b176c811..5b8cd1474 100644 --- a/doc/tips/Right-to-left___40__RTL__41___page_text.mdwn +++ b/doc/tips/Right-to-left___40__RTL__41___page_text.mdwn @@ -1,3 +1,5 @@ +[[!meta date="2014-07-11 08:25:31 -0400"]] + Here's a simple way to create pages in which the page body (or a part of it) goes right-to-left. This includes things you insert into the page, such as polls and blockquotes and lists and a progress bar and so on. Some things don't work perfectly, but if @@ -10,7 +12,7 @@ footer. Only what is rendered from the mdwn file is affected. Create a new template page *templates/rtl.mdwn* with the following content: -
+
@@ -21,18 +23,7 @@ Create a new template page *templates/rtl.mdwn* with the following content: -# 2 Add an RTL class to the CSS - -In your *local.css* add the following: - -[[!format css """ -/* rtl template */ -.rtl { - direction: rtl; -} -"""]] - -# 3 Use the Template +# 2 Use the Template To make a page or part of it RTL, use the [[ikiwiki/directive/template]] directive: