Skip to content

Commit

Permalink
fix: remove uses of a.*
Browse files Browse the repository at this point in the history
  • Loading branch information
uxder committed May 18, 2021
1 parent 91c3273 commit 5f91345
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions views/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<meta name="description" value="{{doc.fields.description}}">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="{{a.static('/dist/css/main.css').url.path}}">
<script src="{{a.static('/dist/js/main.min.js').url.path}}?cb={{cb()}}"></script>
<link rel="stylesheet" href="{{pod.staticFile('/dist/css/main.css').url.path}}">
<script src="{{pod.staticFile('/dist/js/main.min.js').url.path}}?cb={{cb()}}"></script>
</head>
<body>
<div class="main">
Expand Down
2 changes: 1 addition & 1 deletion views/macros/renderPartial.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% endif %}
</div>
{# Load partial CSS only once per page. #}
{% set staticFile = a.static('/dist/css/partials/' + partial.partial + '.css') %}
{% set staticFile = pod.staticFile('/dist/css/partials/' + partial.partial + '.css') %}
{% if pod.fileExists(staticFile.podPath) and staticFile.url.path not in _loadedStylesheets %}
<link rel="stylesheet" href="{{staticFile.url.path}}">
{% set _loadedStylesheets = _loadedStylesheets.push(staticFile.url.path) %}
Expand Down

0 comments on commit 5f91345

Please sign in to comment.