Sha256: e9f5bc243f172cd8d3cc0677a18ecc2df5fb4b3fd462d4fb54e8fdaa5380ba9f

Contents?: true

Size: 694 Bytes

Versions: 3

Compression:

Stored size: 694 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 :img
				?><header><img src="#{title.src}" /></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

3 entries across 3 versions & 1 rubygems

Version Path
utopia-project-0.11.1 pages/index.xnode
utopia-project-0.11.0 pages/index.xnode
utopia-project-0.10.0 pages/index.xnode