Skip to content

Commit

Permalink
静态文件cdn改成本地
Browse files Browse the repository at this point in the history
  • Loading branch information
hopetree committed Jan 9, 2024
1 parent 101d192 commit 3fe126a
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 7 deletions.
6 changes: 6 additions & 0 deletions apps/blog/static/blog/css/bootstrap/3.3.7/bootstrap.min.css

Large diffs are not rendered by default.

File renamed without changes.
7 changes: 7 additions & 0 deletions apps/blog/static/blog/js/bootstrap/3.3.7/bootstrap.min.js

Large diffs are not rendered by default.

File renamed without changes.
4 changes: 2 additions & 2 deletions apps/blog/templates/blog/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{% endblock %}
<link rel="shortcut icon" href="{% static 'blog/img/favicon.ico' %}" type="image/x-icon"/>
<!-- Bootstrap and font-awesome CSS -->
<link href="{% static 'blog/css/bootstrap.min.css' %}" rel="stylesheet">
<link href="{% static 'blog/css/bootstrap/4.3.1/bootstrap.min.css' %}" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script src="{% static 'blog/js/headroom.min.js' %}"></script>
<!-- blog CSS -->
Expand Down Expand Up @@ -87,7 +87,7 @@
<!--js cookie 插件-->
<script src="{% static 'blog/js/js.cookie.min.js' %}?v=20191123.12"></script>
<script src="{% static 'blog/js/popper.min.js' %}"></script>
<script src="{% static 'blog/js/bootstrap.min.js' %}"></script>
<script src="{% static 'blog/js/bootstrap/4.3.1/bootstrap.min.js' %}"></script>
<script>
$(function () {
if (stop_headroom === false) {
Expand Down
6 changes: 3 additions & 3 deletions apps/resume/templates/resume/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%221em%22 font-size=%22100%22>🐠</text></svg>">
<!-- Bootstrap and font-awesome CSS -->
<link href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
<link href="{% static 'blog/css/bootstrap/4.3.1/bootstrap.min.css' %}" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<!-- blog CSS -->
{% block top-file %}{% endblock %}
Expand All @@ -23,8 +23,8 @@
<main>{% block base_content %}{% endblock %}</main>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="{% static 'blog/js/jquery.min.js' %}"></script>
<script src="{% static 'blog/js/bootstrap/4.3.1/bootstrap.min.js' %}"></script>
{% block end_file %}{% endblock %}
</body>
</html>
4 changes: 2 additions & 2 deletions templates/admin/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>{% block title %}{% endblock %}</title>

{% block bootstrap_admin_css %}
<link rel="stylesheet" href="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<link href="{% static 'blog/css/bootstrap/3.3.7/bootstrap.min.css' %}" rel="stylesheet">
{% endblock bootstrap_admin_css %}

<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static 'admin/css/base.css' %}{% endblock %}" />
Expand Down Expand Up @@ -188,7 +188,7 @@ <h1>

{% block bootstrap_admin_js %}
<script>if (typeof jQuery === 'undefined' && django && django.jQuery) {jQuery = django.jQuery;}</script>
<script src="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="{% static 'blog/js/bootstrap/3.3.7/bootstrap.min.js' %}"></script>
<script src="{% static 'bootstrap_admin/js/base.js' %}"></script>
{% endblock bootstrap_admin_js %}

Expand Down

0 comments on commit 3fe126a

Please sign in to comment.