Sha256: e2d546be78bc41c694e436e47bf000c088b3275a5a6fa0c6d0ac7bcde79b77e1

Contents?: true

Size: 696 Bytes

Versions: 4

Compression:

Stored size: 696 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
				?><header><img src="#{title.url}" /></header><?r
			else
				?><content:heading>Project</content:heading><?r
			end
		else
			?><content:heading>Project</content:heading><?r
		end
		
		?><main>#{MarkupString.raw document.to_html}</main><?r
	else
		?>
		<content:heading>Project</content:heading>
		
		<main><p>This project does not have a README.md file.</p></main>
		<?r
	end
	?>
</content:page>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
utopia-project-0.12.1 pages/index.xnode
utopia-project-0.12.0 pages/index.xnode
utopia-project-0.11.3 pages/index.xnode
utopia-project-0.11.2 pages/index.xnode