Sha256: 4b771980774234f2d3125733d46170eaeb55bbbed0b72619b7f3b8d30903932f

Contents?: true

Size: 727 Bytes

Versions: 5

Compression:

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

5 entries across 5 versions & 1 rubygems

Version Path
utopia-project-0.15.1 pages/index.xnode
utopia-project-0.15.0 pages/index.xnode
utopia-project-0.14.2 pages/index.xnode
utopia-project-0.14.1 pages/index.xnode
utopia-project-0.14.0 pages/index.xnode