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

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/html-head-vendor.html5
-rw-r--r--layouts/partials/html-head.html23
2 files changed, 12 insertions, 16 deletions
diff --git a/layouts/partials/html-head-vendor.html b/layouts/partials/html-head-vendor.html
new file mode 100644
index 0000000..b0fab04
--- /dev/null
+++ b/layouts/partials/html-head-vendor.html
@@ -0,0 +1,5 @@
+<link href='{{"vendor/bootstrap/bootstrap-4.5.2-dist/css/bootstrap.min.css" | relURL}}' rel="stylesheet">
+<link href='{{"vendor/FontAwesome/fontawesome-free-5.14.0-web/css/all.min.css" | relURL}}' rel="stylesheet">
+<script src='{{"vendor/jquery/jquery-3.5.1.min.js" | relURL}}'></script>
+<script src='{{"vendor/bootstrap/bootstrap-4.5.2-dist/js/bootstrap.min.js" | relURL}}' crossorigin="anonymous"></script>
+<link href='{{"vendor/fonts/Montserrat/Montserrat.css" | relURL}}' rel="preload" as="style"> \ No newline at end of file
diff --git a/layouts/partials/html-head.html b/layouts/partials/html-head.html
index 4ee9852..6d04076 100644
--- a/layouts/partials/html-head.html
+++ b/layouts/partials/html-head.html
@@ -11,16 +11,13 @@
<link rel="shortcut icon" href='{{"images/favicon.png" | relURL}}' type="image/x-icon" />
+<!-- vendor css/js -->
+{{- partial "html-head-vendor.html" . }}
-<link href='{{"vendor/bootstrap/bootstrap-4.5.2-dist/css/bootstrap.min.css" | relURL}}' rel="stylesheet">
-
-<!--load all styles -->
-<link rel="preload" as="style" href='{{"/fonts/Montserrat/Montserrat.css" | relURL}}'>
-<link rel="stylesheet" href='{{ (resources.Get "sass/layout.scss" | toCSS).Permalink }}'>
-<link rel="stylesheet" href='{{ (resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "css/style.main.scss" . | toCSS).Permalink }}'>
-<link rel="stylesheet" href='{{ (resources.Get "sass/menu.scss" | resources.ExecuteAsTemplate "css/style.menu.scss" . | toCSS).Permalink }}'>
-<link href='{{"vendor/FontAwesome/fontawesome-free-5.14.0-web/css/all.min.css" | relURL}}' rel="stylesheet">
-
+<!-- docport css/js -->
+<link rel="stylesheet" type="text/css" href='{{ (resources.Get "sass/layout.scss" | toCSS).Permalink }}'>
+<link rel="stylesheet" type="text/css" href='{{ (resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "css/style.main.scss" . | toCSS).Permalink }}'>
+<link rel="stylesheet" type="text/css" href='{{ (resources.Get "sass/menu.scss" | resources.ExecuteAsTemplate "css/style.menu.scss" . | toCSS).Permalink }}'>
<link rel="stylesheet" type="text/css" href='{{ (resources.Get "sass/shortcodes/notice.scss" | toCSS).Permalink }}'>
<link rel="stylesheet" type="text/css" href='{{ (resources.Get "sass/shortcodes/tabs.scss" | toCSS).Permalink }}'>
<link rel="stylesheet" type="text/css" href='{{ (resources.Get "sass/shortcodes/panel.scss" | toCSS).Permalink }}'>
@@ -28,12 +25,7 @@
<link rel="stylesheet" type="text/css" href='{{ (resources.Get "sass/shortcodes/children.scss" | toCSS).Permalink }}'>
<link rel="stylesheet" type="text/css" href='{{ (resources.Get "sass/shortcodes/attachments.scss" | toCSS).Permalink }}'>
<link rel="stylesheet" type="text/css" href='{{ (resources.Get "sass/shortcodes/alert.scss" | toCSS).Permalink }}'>
-
-<link rel="stylesheet" href='{{"/css/docport.css" | relURL}}'>
-
-<!--load all js -->
-<script src='{{"vendor/jquery/jquery-3.5.1.min.js" | relURL}}'></script>
-<script src='{{"vendor/bootstrap/bootstrap-4.5.2-dist/js/bootstrap.min.js" | relURL}}' crossorigin="anonymous"></script>
+<link rel="stylesheet" type="text/css" href='{{"/css/docport.css" | relURL}}'>
<script src='{{"js/docport.js" | relURL}}'></script>
<script type="text/javascript">
@@ -45,4 +37,3 @@
{{- partial "head.html" . }}
-