Skip to content

Commit

Permalink
fix: add version to resources
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <i@ryanc.cc>
  • Loading branch information
ruibaby committed Nov 20, 2023
1 parent a16c1a2 commit 5a2eb32
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions templates/module/macro.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</div>
</body>
<th:block th:replace="~{module/plugins :: plugins}" />
<script th:src="@{/assets/js/utils.js}"></script>
<script th:src="@{/assets/js/main.js}"></script>
<script th:src="@{/assets/js/utils.js?v={version}(version=${theme.spec.version})}"></script>
<script th:src="@{/assets/js/main.js?v={version}(version=${theme.spec.version})}"></script>
<th:block th:replace="~{module/script :: script}" />
</html>
14 changes: 7 additions & 7 deletions templates/module/styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
</style>
</th:block>

<link th:href="@{/assets/css/fonts.css}" rel="stylesheet">
<link th:href="@{/assets/css/jqcloud.min.css}" rel="stylesheet">
<link th:href="@{/assets/css/heti.min.css}" rel="stylesheet">
<link th:href="@{/assets/css/katex.min.css}" rel="stylesheet">
<link th:href="@{/assets/css/jquery.fancybox.min.css}" rel="stylesheet">
<link th:href="@{/assets/css/qmsg.css}" rel="stylesheet">
<link th:href="@{/assets/css/fonts.css?v={version}(version=${theme.spec.version})}" rel="stylesheet">
<link th:href="@{/assets/css/jqcloud.min.css?v={version}(version=${theme.spec.version})}" rel="stylesheet">
<link th:href="@{/assets/css/heti.min.css?v={version}(version=${theme.spec.version})}" rel="stylesheet">
<link th:href="@{/assets/css/katex.min.css?v={version}(version=${theme.spec.version})}" rel="stylesheet">
<link th:href="@{/assets/css/jquery.fancybox.min.css?v={version}(version=${theme.spec.version})}" rel="stylesheet">
<link th:href="@{/assets/css/qmsg.css?v={version}(version=${theme.spec.version})}" rel="stylesheet">


<link rel="stylesheet" th:href="@{/assets/dist/style.css}">
<link rel="stylesheet" th:href="@{/assets/dist/style.css?v={version}(version=${theme.spec.version})}">

<link rel="stylesheet" th:href="@{/assets/highlight.js/styles/atom-one-dark.css}">
</th:block>

0 comments on commit 5a2eb32

Please sign in to comment.