You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.2 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<% title = request.path_info[1..-1].capitalize.gsub(/\/$/, "") %>
<head>
<title><%= title %></title>
<meta name="description" content="broken-moon.net - <%= title %>" />
<meta name="keywords" content="<%= title.downcase %>" />
<meta property="og:url" content="http://broken-moon.net/<%= title.downcase %>" />
<meta property="og:title" content="<%= title %>" />
<%= erb :headerBoilerplate %>
</head>
<body>
<%= erb :asidemenu %>
<div class="content">
<% if Dir.exist?("." + request.path_info) %>
<% if !Dir.children("." + request.path_info).grep(/erb/).empty? || !Dir.children("." + request.path_info).grep(/md/).empty? %>
<div class="section homesection center">
<a href="/"><span class="homemessage"><%= title %> </span></a>
<% if File.exists?("." + request.path_info + "/tagline") %>
<br>
<% file = File.open("." + request.path_info + "/tagline") %>
<span class="homesubmessage"><%= file.read %></span>
<% end %>
</div>
<%= erb :folderIndex %>
<%= erb :folderArchive, locals: {folder: request.path_info, title: title} %>
<% else %>
<%= erb :noFile %>
<% end %>
<% else %>
<%= erb :topbar %>
<%= erb :noFolder %>
<% end %>
</div>
<%= erb :bottom %>
</body>