Skip to content

Commit

Permalink
update added on intelops#64
Browse files Browse the repository at this point in the history
  • Loading branch information
tfsojon committed Apr 5, 2023
1 parent 027ae8f commit 15aae9f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 25 deletions.
2 changes: 1 addition & 1 deletion config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ logo_dark = "images/logos/logo-dark.svg"
logo_webp = false

logo_text = "Intelops"
logo_width = "147px"
logo_width = "130px"
mainSections = ["blog"]
mobile = "+211234565523"
fullSiteSearch = true
Expand Down
3 changes: 2 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
command = "hugo --minify --gc"

[build.environment]
HUGO_VERSION = "0.85.0"
HUGO_VERSION = "0.111.3"
GO_VERSION = "1.19.4"
HUGO_BASEURL = "/"

[[headers]]
Expand Down
2 changes: 1 addition & 1 deletion themes/delta/assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ if ($(".navigation-alt").length !== 0) {
(navigationAltHeight + navigationBottomHeight) * 2
) {
navigationBottom.addClass("sticky");
navigationBottom.css("top", 0 - navigationAltHeight + "px");
navigationBottom.css("top", 0 - navigationBottomHeight + "px");
} else {
navigationBottom.removeClass("sticky");
navigationBottom.css("top", "unset");
Expand Down
7 changes: 5 additions & 2 deletions themes/delta/assets/scss/templates/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,19 @@
}
}
.navbar-brand.d-none {
margin-right: 13px;
margin-right: 16px;
img {
padding-right: 10px;
padding-right: 13px;
border-right: 1px solid #ddd;
}
}
}
&.navigation-bottom,
&.navigation-alt {
position: relative;
.navbar {
padding: 3px 0 !important;
}
}
&.navigation-bottom .navbar {
border-top: 1px solid lighten($banner-primary, 12);
Expand Down
4 changes: 2 additions & 2 deletions themes/delta/layouts/partials/header-alt.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{ partial "logo.html" }}
</a>

<span class="navbar-brand me-auto" title="{{.Params.navigation.logo_text}}">
<span class="navbar-brand me-auto" style="line-height:0;" title="{{.Params.navigation.logo_text}}">
{{ $logoPath:= .Params.navigation.logo }}
{{ $logoWebp:= false }}
{{ $logoDarkPath:= .Params.navigation.logo_dark }}
Expand Down Expand Up @@ -215,7 +215,7 @@
{{ $section := .Section | urlize}}

<div class="collapse navbar-collapse text-center" id="navigation-alt">
<ul class="navbar-nav mx-auto align-items-center">
<ul class="navbar-nav mx-auto align-items-center pt-0">

{{ range .Params.navigation.menu }}
<li class="nav-item">
Expand Down
18 changes: 0 additions & 18 deletions themes/delta/layouts/partials/logo.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@
class="ghtm-img ghtm-logo-light"
height="{{ $logoDefaultHeight }}"
width="{{ $logoDefaultWidth }}" />
<img
loading="lazy"
decoding="async"
src="{{ $logoDarkPath | absURL }}"
alt="{{ $logoText }}"
class="ghtm-img ghtm-logo-dark"
height="{{ $logoDefaultHeight }}"
width="{{ $logoDefaultWidth }}" />
{{ else }}
<!-- /image cdn -->

Expand Down Expand Up @@ -140,16 +132,6 @@
src="{{ $scratch.Get `logo` }}"
alt="{{ $logoText }}"
onerror="this.onerror=null;this.src='{{ $scratch.Get `logo_fallback` }}'" />

<img
loading="preload"
decoding="async"
class="ghtm-img ghtm-logo-dark"
width="{{ replace $logoWidth `x` `` | default $logoDefaultWidth }}"
height="{{ $logoDefaultHeight }}"
src="{{ $scratch.Get `logo_dark` }}"
alt="{{ $logoText }}"
onerror="this.onerror=null;this.src='{{ $scratch.Get `logo_dark_fallback` }}'" />
{{ else if $logoPath }}
<img
loading="preload"
Expand Down

0 comments on commit 15aae9f

Please sign in to comment.