Skip to content

Commit

Permalink
Fix ssl errors using url_for thru cloudfalre
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Jul 20, 2024
1 parent 6658f91 commit 47af9d4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 deletions.
18 changes: 6 additions & 12 deletions web/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="{{ url_for('static', path='css/main.css') }}"
/>
<link
rel="stylesheet"
href="{{ url_for('static', path='css/tailwind.css') }}"
/>
<link rel="stylesheet" href="{{ url_for('static', path='css/fa.css') }}" />
<script src="{{ url_for('static', path='js/jquery.js') }}"></script>
<script src="{{ url_for('static', path='js/alpine.js') }}"></script>
<script src="{{ url_for('static', path='js/main.js') }}"></script>
<link rel="stylesheet" href="static/css/main.css" />
<link rel="stylesheet" href="static/css/tailwind.css" />
<link rel="stylesheet" href="static/css/fa.css" />
<script src="static/js/jquery.js"></script>
<script src="static/js/alpine.js"></script>
<script src="static/js/main.js"></script>
<title>{% block title %}{% endblock %} | Akatsuki Rework</title>
{% endblock %}
</head>
Expand Down
5 changes: 1 addition & 4 deletions web/templates/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
class="p-4 my-8 bg-white border border-gray-200 rounded-lg shadow-md sm:p-6 lg:p-8 dark:bg-gray-800 dark:border-gray-700"
>
<div class="flex flex-col sm:flex-row items-center">
<img
src="{{ url_for('static', path='images/logo.png') }}"
class="rounded-full"
/>
<img src="static/images/logo.png" class="rounded-full" />
<div class="ml-4">
<h1 class="text-2xl font-semibold text-white">Akatsuki PP Reworks</h1>
<p class="text-gray-500 dark:text-gray-400">
Expand Down
2 changes: 1 addition & 1 deletion web/templates/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,5 @@ <h1 class="text-2xl font-semibold text-white">
rework_id: parseInt("{{ rework_data.id }}"),
};
</script>
<script src="{{ url_for('static', path='js/pages/profile.js') }}"></script>
<script src="static/js/pages/profile.js"></script>
{% endblock %}
2 changes: 1 addition & 1 deletion web/templates/rework.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,5 @@
page: parseInt("{{ page_num }}"),
};
</script>
<script src="{{ url_for('static', path='js/pages/leaderboard.js') }}"></script>
<script src="static/js/pages/leaderboard.js"></script>
{% endblock %}

0 comments on commit 47af9d4

Please sign in to comment.