diff options
| author | nsfisis <nsfisis@gmail.com> | 2022-11-20 21:42:50 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2022-11-20 22:20:42 +0900 |
| commit | 75402b673c0f630b620904ce3153f8645d89d700 (patch) | |
| tree | 18dc3e091765267fbd59c4f76702a827c69c1eed /templates | |
| parent | a0738cdd46d6e52463687b903b1e7d09a541aaa1 (diff) | |
| download | blog.nsfisis.dev-75402b673c0f630b620904ce3153f8645d89d700.tar.gz blog.nsfisis.dev-75402b673c0f630b620904ce3153f8645d89d700.tar.zst blog.nsfisis.dev-75402b673c0f630b620904ce3153f8645d89d700.zip | |
implement cache busting for stylesheets
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/document__post.html.erb (renamed from templates/document.html.erb) | 8 | ||||
| -rw-r--r-- | templates/posts_list.html.erb | 8 | ||||
| -rw-r--r-- | templates/tag.html.erb | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/templates/document.html.erb b/templates/document__post.html.erb index 9d93696..bc9a842 100644 --- a/templates/document.html.erb +++ b/templates/document__post.html.erb @@ -1,4 +1,4 @@ -<% _main_stylesheet = '/style.css' %> +<% _stylesheets = attr 'stylesheets' %> <% _author = attr 'author' %> <% _description = attr 'description' %> <% _lang = attr 'lang' %> @@ -21,9 +21,9 @@ <meta name="keywords" content="<%= _tags.map(&:label).join(',') %>"> <link rel="icon" type="image/svg+xml" href="/favicon.svg"> <title><%= _doctitle %> | <%= _site_name %></title> - <link rel="stylesheet" href="/hl.css"> - <link rel="stylesheet" href="<%= _main_stylesheet %>"> - <link rel="stylesheet" href="/custom.css"> + <% for stylesheet in _stylesheets %> + <link rel="stylesheet" href="<%= stylesheet %>"> + <% end %> </head> <body class="single"> <header class="header"> 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 @@ <meta name="description" content="<%= _description %>"> <link rel="icon" type="image/svg+xml" href="/favicon.svg"> <title><%= _doctitle %> | <%= _site_name %></title> - <link rel="stylesheet" href="/hl.css"> - <link rel="stylesheet" href="<%= _main_stylesheet %>"> - <link rel="stylesheet" href="/custom.css"> + <% for stylesheet in _stylesheets %> + <link rel="stylesheet" href="<%= stylesheet %>"> + <% end %> </head> <body class="list"> <header class="header"> 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 @@ <meta name="description" content="<%= _description %>"> <link rel="icon" type="image/svg+xml" href="/favicon.svg"> <title><%= _doctitle %> | <%= _site_name %></title> - <link rel="stylesheet" href="/hl.css"> - <link rel="stylesheet" href="<%= _main_stylesheet %>"> - <link rel="stylesheet" href="/custom.css"> + <% for stylesheet in _stylesheets %> + <link rel="stylesheet" href="<%= stylesheet %>"> + <% end %> </head> <body class="list"> <header class="header"> |
