aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/document__post.html.erb77
-rw-r--r--templates/document__post_list.html.erb58
-rw-r--r--templates/document__tag.html.erb58
-rw-r--r--templates/section.html.erb19
4 files changed, 0 insertions, 212 deletions
diff --git a/templates/document__post.html.erb b/templates/document__post.html.erb
deleted file mode 100644
index a48a5f4..0000000
--- a/templates/document__post.html.erb
+++ /dev/null
@@ -1,77 +0,0 @@
-<% _stylesheets = attr 'stylesheets' %>
-<% _author = attr 'author' %>
-<% _description = attr 'description' %>
-<% _lang = attr 'lang' %>
-<% _site_copyright_year = attr 'site-copyright-year' %>
-<% _copyright_year = attr 'copyright-year' %>
-<% _site_name = attr 'site-name' %>
-<% _title = title %>
-<% _revisions = attr 'revision-history' %>
-<% _tags = attr 'tags' %>
-<% _content = content %>
-<!DOCTYPE html>
-<html lang="<%= _lang %>">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="<%= _author %>">
- <meta name="copyright" content="&copy; <%= _copyright_year %> <%= _author %>">
- <meta name="description" content="<%= _description %>">
- <meta name="keywords" content="<%= _tags.map(&:label).join(',') %>">
- <link rel="icon" type="image/svg+xml" href="/favicon.svg">
- <title><%= _title %> | <%= _site_name %></title>
- <% for stylesheet in _stylesheets %>
- <link rel="stylesheet" href="<%= stylesheet %>">
- <% end %>
- </head>
- <body class="single">
- <header class="header">
- <nav class="nav">
- <p class="logo">
- <a href="/"><%= _site_name %></a>
- </p>
- </nav>
- </header>
- <main class="main">
- <article class="post-single">
- <header class="post-header">
- <h1 class="post-title"><%= _title %></h1>
- <% if not _tags.empty? %>
- <ul class="post-tags">
- <% for tag in _tags %>
- <li class="tag">
- <a href="/tags/<%= tag.slug %>/"><%= tag.label %></a>
- </li>
- <% end %>
- </ul>
- <% end %>
- </header>
- <div class="post-content">
- <section>
- <h2 id="changelog">更新履歴</h2>
- <ol>
- <% for revision in _revisions %>
- <li class="revision">
- <time datetime="<%= revision.date %>"><%= revision.date %></time>: <%= revision.remark %>
- </li>
- <% end %>
- </ol>
- </section>
- <%= _content %>
- </div>
- <% if footnotes? %>
- <div id="footnotes">
- <% for footnote in footnotes %>
- <div class="footnote" id="_footnotedef_<%= footnote.index %>">
- <a href="#_footnoteref_<%= footnote.index %>"><%= footnote.index %></a>. <%= footnote.text %>
- </div>
- <% end %>
- </div>
- <% end %>
- </article>
- </main>
- <footer class="footer">
- &copy; <%= _site_copyright_year %> <%= _author %>
- </footer>
- </body>
-</html>
diff --git a/templates/document__post_list.html.erb b/templates/document__post_list.html.erb
deleted file mode 100644
index c1429ec..0000000
--- a/templates/document__post_list.html.erb
+++ /dev/null
@@ -1,58 +0,0 @@
-<% _stylesheets = attr 'stylesheets' %>
-<% _author = attr 'author' %>
-<% _description = attr 'description' %>
-<% _lang = attr 'lang' %>
-<% _site_copyright_year = attr 'site-copyright-year' %>
-<% _copyright_year = attr 'copyright-year' %>
-<% _site_name = attr 'site-name' %>
-<% _title = title %>
-<% _posts = posts %>
-<!DOCTYPE html>
-<html lang="<%= _lang %>">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="<%= _author %>">
- <meta name="copyright" content="&copy; <%= _copyright_year %> <%= _author %>">
- <meta name="description" content="<%= _description %>">
- <link rel="icon" type="image/svg+xml" href="/favicon.svg">
- <title><%= _title %> | <%= _site_name %></title>
- <% for stylesheet in _stylesheets %>
- <link rel="stylesheet" href="<%= stylesheet %>">
- <% end %>
- </head>
- <body class="list">
- <header class="header">
- <nav class="nav">
- <p class="logo">
- <a href="/"><%= _site_name %></a>
- </p>
- </nav>
- </header>
- <main class="main">
- <header class="page-header">
- <h1><%= _title %></h1>
- </header>
- <% for post in _posts %>
- <article class="post-entry">
- <a href="<%= post.attributes['href'] %>">
- <header class="entry-header">
- <h2><%= post.doctitle %></h2>
- </header>
- <section class="entry-content">
- <p>
- <%= post.attributes['description'] %>
- </p>
- </section>
- <footer class="entry-footer">
- Posted on <time datetime="<%= post.attributes['revision-history'].first.date %>"><%= post.attributes['revision-history'].first.date %></time><% if post.attributes['revision-history'].length > 1 %>, updated on <time datetime="<%= post.attributes['revision-history'].last.date %>"><%= post.attributes['revision-history'].last.date %></time><% end %>
- </footer>
- </a>
- </article>
- <% end %>
- </main>
- <footer class="footer">
- &copy; <%= _site_copyright_year %> <%= _author %>
- </footer>
- </body>
-</html>
diff --git a/templates/document__tag.html.erb b/templates/document__tag.html.erb
deleted file mode 100644
index c1429ec..0000000
--- a/templates/document__tag.html.erb
+++ /dev/null
@@ -1,58 +0,0 @@
-<% _stylesheets = attr 'stylesheets' %>
-<% _author = attr 'author' %>
-<% _description = attr 'description' %>
-<% _lang = attr 'lang' %>
-<% _site_copyright_year = attr 'site-copyright-year' %>
-<% _copyright_year = attr 'copyright-year' %>
-<% _site_name = attr 'site-name' %>
-<% _title = title %>
-<% _posts = posts %>
-<!DOCTYPE html>
-<html lang="<%= _lang %>">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="<%= _author %>">
- <meta name="copyright" content="&copy; <%= _copyright_year %> <%= _author %>">
- <meta name="description" content="<%= _description %>">
- <link rel="icon" type="image/svg+xml" href="/favicon.svg">
- <title><%= _title %> | <%= _site_name %></title>
- <% for stylesheet in _stylesheets %>
- <link rel="stylesheet" href="<%= stylesheet %>">
- <% end %>
- </head>
- <body class="list">
- <header class="header">
- <nav class="nav">
- <p class="logo">
- <a href="/"><%= _site_name %></a>
- </p>
- </nav>
- </header>
- <main class="main">
- <header class="page-header">
- <h1><%= _title %></h1>
- </header>
- <% for post in _posts %>
- <article class="post-entry">
- <a href="<%= post.attributes['href'] %>">
- <header class="entry-header">
- <h2><%= post.doctitle %></h2>
- </header>
- <section class="entry-content">
- <p>
- <%= post.attributes['description'] %>
- </p>
- </section>
- <footer class="entry-footer">
- Posted on <time datetime="<%= post.attributes['revision-history'].first.date %>"><%= post.attributes['revision-history'].first.date %></time><% if post.attributes['revision-history'].length > 1 %>, updated on <time datetime="<%= post.attributes['revision-history'].last.date %>"><%= post.attributes['revision-history'].last.date %></time><% end %>
- </footer>
- </a>
- </article>
- <% end %>
- </main>
- <footer class="footer">
- &copy; <%= _site_copyright_year %> <%= _author %>
- </footer>
- </body>
-</html>
diff --git a/templates/section.html.erb b/templates/section.html.erb
deleted file mode 100644
index 1510595..0000000
--- a/templates/section.html.erb
+++ /dev/null
@@ -1,19 +0,0 @@
-<% _level = level %>
-<% _role = role %>
-<% _id = id %>
-<% _title = caption ? captioned_title : title %>
-<% _content = content %>
-<section class="section-<%= _level %><%= _role ? " #{role}" : '' %>">
- <h<%= _level + 1 %> id="<%= _id %>" class="section-header">
- <% if _id %>
- <a href="#<%= _id %>">
- <%= _title %>
- </a>
- <% else %>
- <%= _title %>
- <% end %>
- </h<%= _level + 1 %>>
- <div class="section-body">
- <%= _content %>
- </div>
-</section>