Skip to content

Commit

Permalink
Merge pull request #73 from tfsojon/chandu
Browse files Browse the repository at this point in the history
Updated added on issue #56 and #64
  • Loading branch information
devopstoday11 authored Apr 10, 2023
2 parents 027ae8f + e32084e commit a763bd9
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 34 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: 3 additions & 0 deletions content/english/open-source/contributed-open-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -63,6 +64,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "left" # Value will be - "left/right"
bg_color: true
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -75,6 +77,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand Down
3 changes: 3 additions & 0 deletions content/english/open-source/our-open-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -63,6 +64,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "left" # Value will be - "left/right"
bg_color: true
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -75,6 +77,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand Down
3 changes: 3 additions & 0 deletions content/english/platform/capten.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -63,6 +64,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "left" # Value will be - "left/right"
bg_color: true
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -75,6 +77,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand Down
3 changes: 3 additions & 0 deletions content/english/platform/compage.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/content/compage/what-is-compage.svg"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -63,6 +64,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/content/compage/how-it-works.svg"
content_position: "left" # Value will be - "left/right"
bg_color: true
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -75,6 +77,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/content/compage/integrations-features.svg"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand Down
3 changes: 3 additions & 0 deletions content/english/platform/opty.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -63,6 +64,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "left" # Value will be - "left/right"
bg_color: true
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -75,6 +77,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
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
15 changes: 11 additions & 4 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 Expand Up @@ -195,6 +198,8 @@
}
&.dropdown-lg {
text-align: left;
max-height: 300px;
overflow-y: auto;
small {
display: block;
color: $text-muted;
Expand All @@ -209,7 +214,7 @@
line-height: 1.3;
}
.dropdown-item {
padding: 12px 15px;
padding: 15px;
}
}
}
Expand Down Expand Up @@ -247,7 +252,9 @@
width: 480px;
display: flex;
flex-wrap: wrap;
padding: 10px 5px;
padding: 18px 15px;
max-height: initial;
overflow-y: initial;
li {
transform: translateX(0) translateY(20px);
width: 50%;
Expand Down
11 changes: 7 additions & 4 deletions themes/delta/layouts/open-source/single.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{{ define "main" }}
{{ partial "header.html" . }}

{{ $bg_color := .Params.banner.bg_color }}

{{ partial "header-alt.html" . }}
{{with .Params.banner}}
<section class="banner platform-banner wave-block overflow-hidden my-4 rounded-lg" style="background-color: {{.bg_color}};">
<section class="banner platform-banner wave-block overflow-hidden my-4 rounded-lg" style="background-color: {{$bg_color}};">
<div class="container">
<div class="row align-items-center text-center text-lg-start">
<div class="col-lg-6">
Expand Down Expand Up @@ -52,7 +54,8 @@ <h1 class="title text-xl mb-3 text-white">{{.title | markdownify}}</h1>
{{with .Params.image_and_content_block}}
{{if .enable}}
{{ range .blocks }}
<section class="section pb-0">
<section class="section position-relative">
{{if .bg_color}} <span class="position-absolute h-100 w-100 top-0 left-0" style="z-index:-1;pointer-events:none;opacity:0.1;background-color: {{$bg_color}};"></span> {{end}}
<div class="container container-delta-lg">
<div class="row gx-4 gx-xl-5 align-items-center">
<div class="col-lg-6 order-1 {{with .content_position}}{{if eq . `right`}}order-lg-1{{else if eq . `left`}}order-lg-0{{else}}order-lg-0{{end}}{{end}}">
Expand All @@ -63,9 +66,9 @@ <h2 class="title">{{.title | markdownify}}</h2>
{{with .content}}<div class="content">{{. | markdownify}}</div>{{end}}
</div>
<div class="col-lg-6 order-0 mb-5 mb-lg-0 {{with .content_position}}{{if eq . `right`}}order-lg-0{{else if eq . `left`}}order-lg-1{{else}}order-lg-1{{end}}{{end}}">
<div class="bg-secondary-soft py-3 py-md-6 px-2 px-md-4 rounded-md">
<div class="px-2 px-md-4 text-center">
{{with .image}}
{{ partial "image.html" (dict "Src" . "Size" "570x" "Webp" false "Class" "img-fluid px-0 px-md-3 py-6" ) }}
{{ partial "image.html" (dict "Src" . "Size" "570x" "Webp" false "Class" "img-fluid px-0 px-md-3" ) }}
{{end}}
</div>
</div>
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
9 changes: 6 additions & 3 deletions themes/delta/layouts/platform/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

{{ partial "header-alt.html" . }}

{{ $bg_color := .Params.banner.bg_color }}

{{with .Params.banner}}
<section class="banner platform-banner wave-block overflow-hidden my-4 rounded-lg" style="background-color: {{.bg_color}};">
<div class="container">
Expand Down Expand Up @@ -53,7 +55,8 @@ <h1 class="title text-xl mb-3 text-white">{{.title | markdownify}}</h1>
{{with .Params.image_and_content_block}}
{{if .enable}}
{{ range .blocks }}
<section class="section pb-0">
<section class="section position-relative">
{{if .bg_color}} <span class="position-absolute h-100 w-100 top-0 left-0" style="z-index:-1;pointer-events:none;opacity:0.1;background-color: {{$bg_color}};"></span> {{end}}
<div class="container container-delta-lg">
<div class="row gx-4 gx-xl-5 align-items-center">
<div class="col-lg-6 order-1 {{with .content_position}}{{if eq . `right`}}order-lg-1{{else if eq . `left`}}order-lg-0{{else}}order-lg-0{{end}}{{end}}">
Expand All @@ -64,9 +67,9 @@ <h2 class="title">{{.title | markdownify}}</h2>
{{with .content}}<div class="content">{{. | markdownify}}</div>{{end}}
</div>
<div class="col-lg-6 order-0 mb-5 mb-lg-0 {{with .content_position}}{{if eq . `right`}}order-lg-0{{else if eq . `left`}}order-lg-1{{else}}order-lg-1{{end}}{{end}}">
<div class="bg-secondary-soft py-3 py-md-6 px-2 px-md-4 rounded-md text-center">
<div class="px-2 px-md-4 text-center">
{{with .image}}
{{ partial "image.html" (dict "Src" . "Size" "570x" "Webp" false "Class" "img-fluid px-0 px-md-3 py-6 mx-auto" ) }}
{{ partial "image.html" (dict "Src" . "Size" "570x" "Webp" false "Class" "img-fluid px-0 px-md-3 mx-auto" ) }}
{{end}}
</div>
</div>
Expand Down

0 comments on commit a763bd9

Please sign in to comment.