Sha256: e6a43a459c96c9224edc4eecb534fede536ddbb1cbf95147d590c14b6baf0933

Contents?: true

Size: 670 Bytes

Versions: 4

Compression:

Stored size: 670 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
		
		?>#{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

4 entries across 4 versions & 1 rubygems

Version Path
utopia-project-0.13.3 pages/index.xnode
utopia-project-0.13.2 pages/index.xnode
utopia-project-0.13.1 pages/index.xnode
utopia-project-0.13.0 pages/index.xnode