1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
From: Roland Mas <lolando@debian.org>
Date: Sat, 29 Jul 2023 22:38:07 +0200
Subject: Use local rather than hosted assets in HTML docs
---
hugo/hugo.toml | 2 +-
hugo/layouts/partials/head.html | 77 +++++++++++++++++++++++++++++++++++++++--
2 files changed, 75 insertions(+), 4 deletions(-)
diff --git a/hugo/hugo.toml b/hugo/hugo.toml
index e46f33b..d6a300b 100644
--- a/hugo/hugo.toml
+++ b/hugo/hugo.toml
@@ -1,5 +1,5 @@
# baseURL terminates with version number or "git-develop"
-baseURL = "https://bornagainproject.org/23"
+baseURL = "file:///usr/share/doc/bornagain/html"
languageCode = "en-us"
title = "BornAgain"
diff --git a/hugo/layouts/partials/head.html b/hugo/layouts/partials/head.html
index 6bbf452..e5c0fb6 100644
--- a/hugo/layouts/partials/head.html
+++ b/hugo/layouts/partials/head.html
@@ -17,9 +17,80 @@
<link href="/css/gallery-grid.css" rel="stylesheet">
<!-- Custom Fonts -->
-<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
-<link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
-<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
+<link href="file:///usr/share/fonts-font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
+
+<style>
+@font-face {
+ font-family: 'Open Sans';
+ font-style: italic;
+ font-weight: 300;
+ font-stretch: normal;
+ src: url(/usr/share/fonts/truetype/open-sans/OpenSans-Italic.ttf) format('truetype');
+}
+@font-face {
+ font-family: 'Open Sans';
+ font-style: italic;
+ font-weight: 400;
+ font-stretch: normal;
+ src: url(/usr/share/fonts/truetype/open-sans/OpenSans-Italic.ttf) format('truetype');
+}
+@font-face {
+ font-family: 'Open Sans';
+ font-style: italic;
+ font-weight: 600;
+ font-stretch: normal;
+ src: url(/usr/share/fonts/truetype/open-sans/OpenSans-Italic.ttf) format('truetype');
+}
+@font-face {
+ font-family: 'Open Sans';
+ font-style: italic;
+ font-weight: 700;
+ font-stretch: normal;
+ src: url(/usr/share/fonts/truetype/open-sans/OpenSans-Italic.ttf) format('truetype');
+}
+@font-face {
+ font-family: 'Open Sans';
+ font-style: italic;
+ font-weight: 800;
+ font-stretch: normal;
+ src: url(/usr/share/fonts/truetype/open-sans/OpenSans-Italic.ttf) format('truetype');
+}
+@font-face {
+ font-family: 'Open Sans';
+ font-style: normal;
+ font-weight: 300;
+ font-stretch: normal;
+ src: url(file:///usr/share/fonts/truetype/open-sans/OpenSans-Regular.ttf) format('truetype');
+}
+@font-face {
+ font-family: 'Open Sans';
+ font-style: normal;
+ font-weight: 400;
+ font-stretch: normal;
+ src: url(file:///usr/share/fonts/truetype/open-sans/OpenSans-Regular.ttf) format('truetype');
+}
+@font-face {
+ font-family: 'Open Sans';
+ font-style: normal;
+ font-weight: 600;
+ font-stretch: normal;
+ src: url(file:///usr/share/fonts/truetype/open-sans/OpenSans-Regular.ttf) format('truetype');
+}
+@font-face {
+ font-family: 'Open Sans';
+ font-style: normal;
+ font-weight: 700;
+ font-stretch: normal;
+ src: url(file:///usr/share/fonts/truetype/open-sans/OpenSans-Regular.ttf) format('truetype');
+}
+
+@font-face {
+ font-family: 'Roboto';
+ font-style: normal;
+ font-weight: 400;
+ src: url(file:///usr/share/fonts/truetype/roboto/unhinted/RobotoTTF/Roboto-Regular.ttf) format('truetype');
+}
+</style>
<link href="https://fonts.googleapis.com/css?family=Libre+Baskerville" rel='stylesheet' type='text/css'>
<script src="/js/jquery.js"></script>
|