* Frontend now accounts for new /static prefix

This commit is contained in:
shockrah 2021-10-12 11:20:09 -07:00
parent b13270802f
commit e679ee563a
2 changed files with 14 additions and 10 deletions

View File

@ -3,17 +3,21 @@
<meta name="generator" content="Hugo 0.88.1" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/css/style.css">
<link rel="stylesheet" type="text/css" href="/static/css/style.css">
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">
<title>Shockrah&#39;s Clips</title>
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
<link rel="shortcut icon" type="image/png" href="/static/favicon.png"/>
{% if page == "category" %}
<meta property="og:title" content="">
<meta property="og:site_name" content="">
<meta property="og:url" content="">
<meta property="og:description" content="">
<meta property="og:title" content="{{title}}">
<meta property="og:site_name" content="Clippable">
<meta property="og:url" content="{{url}}">
<meta property="og:description" content="{{desc}}">
<meta property="og:type" content="website">
<meta property="og:image" content="">
{% if ogimg %}
<meta property="og:image" content="{{ogimg}}">
{% else %}
<meta property="og:image" content="/static/favicon.png">
{% endif %}
{# Otherwise we defautl to the home tags #}
{% else %}
<meta property="og:title" content="Shockrah&#39;s Clips">
@ -21,9 +25,9 @@
<meta property="og:url" content="https://clips.shockrah.xyz/">
<meta property="og:description" content="Clips I think are kinda kewl">
<meta property="og:type" content="website">
<meta property="og:image" content="/favicon.png">
<meta property="og:image" content="/static/favicon.png">
{% endif %}
<script src="/js/{{script_src}}"></script>
<script src="/static/js/{{script_src}}"></script>
</head>
<body>
<div id="layout">

View File

@ -36,7 +36,7 @@ class Category {
if(!(this.thumbnail_b64 == null || this.thumbnail_b64.length == 0)) {
nail.setAttribute('src', `data:image/jpg;base64,${this.thumbnail_b64}`)
} else{
nail.setAttribute('src', '/cantfindshit.gif')
nail.setAttribute('src', '/static/cantfindshit.gif')
}
return nail