Make links in exported wiki HTML files absolute
This commit is contained in:
parent
9e35b24bcd
commit
63d8264320
|
@ -3,6 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<title><%=h @page.pretty_title %></title>
|
<title><%=h @page.pretty_title %></title>
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||||
|
<base href="<%= "#{h Setting.protocol}://#{h Setting.host_name}" %>" />
|
||||||
<style>
|
<style>
|
||||||
body { font:80% Verdana,Tahoma,Arial,sans-serif; }
|
body { font:80% Verdana,Tahoma,Arial,sans-serif; }
|
||||||
h1, h2, h3, h4 { font-family: "Trebuchet MS",Georgia,"Times New Roman",serif; }
|
h1, h2, h3, h4 { font-family: "Trebuchet MS",Georgia,"Times New Roman",serif; }
|
||||||
|
@ -16,6 +17,6 @@ h1:hover a.wiki-anchor, h2:hover a.wiki-anchor, h3:hover a.wiki-anchor { display
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<%= textilizable @content, :text, :wiki_links => :local %>
|
<%= textilizable @content, :text, :wiki_links => :local, :only_path => false %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue