Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/shenoybr/hugo-goa.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Litsche <stefan.litsche@zalando.de>2021-12-01 04:19:56 +0300
committerGitHub <noreply@github.com>2021-12-01 04:19:56 +0300
commit674637099ca07bf36c154240128c311db18ca223 (patch)
tree48553af2f1c5611a0c168df25895fb6bbae15dba
parent147297f004f6493aa9c3d767d3bdcbda3e2f2410 (diff)
Fix loading fonts and javascript files (#101)
When I create a fresh new site and add the theme I get a file not found error for javascript files (e.g. `Loading failed for the <script> with source “http://localhost:1313/posts/first/js/custom.js”`). Furthermore the title is rendered some arbitrary font instead of the configured `Roboto Slab` font. This will fix both issues. Co-authored-by: Raj Shenoy <673924+kaapiandcode@users.noreply.github.com>
-rw-r--r--layouts/partials/footer.html4
-rw-r--r--layouts/partials/header.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 5b9829c..09081de 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -18,7 +18,7 @@ hljs.initHighlightingOnLoad();
{{ template "_internal/google_analytics_async.html" . }}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
-<script src="js/main.js"></script>
-<script src="js/custom.js"></script>
+<script src="/js/main.js"></script>
+<script src="/js/custom.js"></script>
</body>
</html>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 00c72ef..8eff406 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -23,7 +23,7 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/{{ .Site.Params.extra.highlightjsstyle | default "default" }}.min.css">
{{ end }}
-<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300,400|Roboto+Slab:400,700|Roboto:300,300i,400,400i,500,500i,700,700i">
+<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400&family=Roboto+Slab:wght@400;700&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
<link rel="stylesheet" href="{{ "css/main.css" | absURL }}">