From 75402b673c0f630b620904ce3153f8645d89d700 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 20 Nov 2022 21:42:50 +0900 Subject: implement cache busting for stylesheets --- templates/document.html.erb | 69 --------------------------------------- templates/document__post.html.erb | 69 +++++++++++++++++++++++++++++++++++++++ templates/posts_list.html.erb | 8 ++--- templates/tag.html.erb | 8 ++--- 4 files changed, 77 insertions(+), 77 deletions(-) delete mode 100644 templates/document.html.erb create mode 100644 templates/document__post.html.erb (limited to 'templates') diff --git a/templates/document.html.erb b/templates/document.html.erb deleted file mode 100644 index 9d93696..0000000 --- a/templates/document.html.erb +++ /dev/null @@ -1,69 +0,0 @@ -<% _main_stylesheet = '/style.css' %> -<% _author = attr 'author' %> -<% _description = attr 'description' %> -<% _lang = attr 'lang' %> -<% _site_copyright_year = attr 'site-copyright-year' %> -<% _copyright_year = attr 'copyright-year' %> -<% _revisions = attr 'revision-history' %> -<% _site_name = attr 'site-name' %> -<% _tags = attr 'tags' %> -<% _doctitle = doctitle %> -<% _header_title = header.title %> -<% _content = content %> - - - - - - - - - - - <%= _doctitle %> | <%= _site_name %> - - - - - -
- -
-
-
-
-

<%= _header_title %>

- <% if not _tags.empty? %> - - <% end %> -
-
-
-

更新履歴

-
    - <% for revision in _revisions %> -
  1. - : <%= revision.remark %> -
  2. - <% end %> -
-
- <%= _content %> -
-
-
- - - diff --git a/templates/document__post.html.erb b/templates/document__post.html.erb new file mode 100644 index 0000000..bc9a842 --- /dev/null +++ b/templates/document__post.html.erb @@ -0,0 +1,69 @@ +<% _stylesheets = attr 'stylesheets' %> +<% _author = attr 'author' %> +<% _description = attr 'description' %> +<% _lang = attr 'lang' %> +<% _site_copyright_year = attr 'site-copyright-year' %> +<% _copyright_year = attr 'copyright-year' %> +<% _revisions = attr 'revision-history' %> +<% _site_name = attr 'site-name' %> +<% _tags = attr 'tags' %> +<% _doctitle = doctitle %> +<% _header_title = header.title %> +<% _content = content %> + + + + + + + + + + + <%= _doctitle %> | <%= _site_name %> + <% for stylesheet in _stylesheets %> + + <% end %> + + +
+ +
+
+
+
+

<%= _header_title %>

+ <% if not _tags.empty? %> + + <% end %> +
+
+
+

更新履歴

+
    + <% for revision in _revisions %> +
  1. + : <%= revision.remark %> +
  2. + <% end %> +
+
+ <%= _content %> +
+
+
+ + + diff --git a/templates/posts_list.html.erb b/templates/posts_list.html.erb index 2227241..5367258 100644 --- a/templates/posts_list.html.erb +++ b/templates/posts_list.html.erb @@ -1,4 +1,4 @@ -<% _main_stylesheet = '/style.css' %> +<% _stylesheets = stylesheets %> <% _author = author %> <% _description = description %> <% _lang = lang %> @@ -18,9 +18,9 @@ <%= _doctitle %> | <%= _site_name %> - - - + <% for stylesheet in _stylesheets %> + + <% end %>
diff --git a/templates/tag.html.erb b/templates/tag.html.erb index 7fd23cd..c92c0ca 100644 --- a/templates/tag.html.erb +++ b/templates/tag.html.erb @@ -1,4 +1,4 @@ -<% _main_stylesheet = '/style.css' %> +<% _stylesheets = stylesheets %> <% _author = author %> <% _description = description %> <% _lang = lang %> @@ -18,9 +18,9 @@ <%= _doctitle %> | <%= _site_name %> - - - + <% for stylesheet in _stylesheets %> + + <% end %>
-- cgit v1.2.3-70-g09d2