Sha256: 422ca5d5a1755581f88139caaaab36a93690534ac7b4925bedb6880eafb6b4bc

Contents?: true

Size: 905 Bytes

Versions: 16

Compression:

Stored size: 905 Bytes

Contents

<content:page>
	<?r
	if document = self[:document]
		child = document.first_child
		
		if child.type == :header
			header = child
			child.delete
			title = header.first_child
			
			case title.type
			when :text
				?><content:heading>#{title.string_content}</content:heading><?r
			when :image
				self.document.attributes[:title] ||= title.to_plaintext
				
				if title.url =~ /\.svg/
					?><h1 style="text-align: center"><object type="image/svg+xml" data="#{title.url}"></object></h1><?r
				else
					?><h1 style="text-align: center"><img src="#{title.url}" /></h1><?r
				end
			else
				?><content:heading>Project</content:heading><?r
			end
		else
			?><content:heading>Project</content:heading><?r
		end
		
		?>#{MarkupString.raw document.to_html}<?r
	else
		?>
		<content:heading>Project</content:heading>
		
		<p>This project does not have a README.md file.</p>
		<?r
	end
	?>
</content:page>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
utopia-project-0.20.2 pages/index.xnode
utopia-project-0.20.1 pages/index.xnode
utopia-project-0.20.0 pages/index.xnode
utopia-project-0.19.1 pages/index.xnode
utopia-project-0.19.0 pages/index.xnode
utopia-project-0.18.1 pages/index.xnode
utopia-project-0.18.0 pages/index.xnode
utopia-project-0.17.4 pages/index.xnode
utopia-project-0.17.3 pages/index.xnode
utopia-project-0.17.2 pages/index.xnode
utopia-project-0.17.1 pages/index.xnode
utopia-project-0.17.0 pages/index.xnode
utopia-project-0.16.0 pages/index.xnode
utopia-project-0.15.5 pages/index.xnode
utopia-project-0.15.4 pages/index.xnode
utopia-project-0.15.3 pages/index.xnode