From 3e2e47a3d8bebecbffd3893394c29f012920b083 Mon Sep 17 00:00:00 2001 From: Miao Wang Date: Wed, 23 Jun 2021 15:16:57 +0800 Subject: [PATCH] Add cache buster Signed-off-by: Miao Wang --- _includes/head.html | 24 ++++++++++++------------ _layouts/help.html | 2 +- _layouts/index.html | 4 ++-- _plugins/jekyll-git-hash.rb | 21 +++++++++++++++++++++ fancy-index/after.html | 4 ++-- status.html | 4 ++-- 6 files changed, 40 insertions(+), 19 deletions(-) create mode 100644 _plugins/jekyll-git-hash.rb diff --git a/_includes/head.html b/_includes/head.html index 4e46078..aca67ec 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -9,20 +9,20 @@ {% if page.mirrorid %} {{ page.mirrorid }} |{% elsif page.title %} {{ page.title }} |{% endif %}{% if include.cattitle %} {{ include.cattitle }} |{% endif %}{% if (page.title or include.cattitle) %}{{" "}}{% endif %}{{ site.title }}{% if site.brand %} | {{ site.brand }}{% endif %} {% unless include.nostyle %} - - - - - - - + + + + + + + {% unless page.legacy %} - - + + {% endunless %} - - - + + + {% if page.legacy %}