gethugothemes / bigspring-light-hugo

Bigspring is a Hugo startup theme. It has a clean, minimal, fresh UI.
https://gethugothemes.com/products/bigspring/?utm_source=bigspring_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
198 stars 299 forks source link

The navigation bar does not close once open when browsing from a responsive device. #35

Closed angelzarazua closed 3 years ago

angelzarazua commented 3 years ago

Screenshot_59

angelzarazua commented 3 years ago

Sorry i see they already fixed it

3265 commented 3 years ago

I have this problem on my Android phone.

GaranceR commented 3 years ago

@angelzarazua How did they fix it? I still have that problem :/

angelzarazua commented 3 years ago

@GaranceR Sorry I thought they solved the problem but following the instructions did not work. But commenting on the following line of code did work for me in the JS Plugins + Main script section.

The file is called script.html and is located at: themes/bigspring/layouts/partials/script.html The line that I commented is the last one.

<!-- JS Plugins + Main script -->
{{ $scripts := slice }}
{{ range site.Params.plugins.js}}
{{ if findRE "^http" .link }}
<script src="{{ .link | absURL }}" type="application/javascript" {{.attributes | safeHTMLAttr}}></script>
{{ else }}
{{ $scripts = $scripts | append (resources.Get .link) }}
{{ end }}
{{ end }}
{{ $scripts := $scripts | append (resources.Get "js/script.js" | minify) }}
{{ $scripts := $scripts | resources.Concat "/js/script.js" | minify | fingerprint "sha512" }}
<!-- <script crossorigin="anonymous" defer="defer" data-turbolinks-suppress-warning integrity="{{ $scripts.Data.Integrity }}" type="application/javascript">{{$scripts.Content | safeJS}}</script> -->
somratpro commented 3 years ago

Hello there,

This issue has been fixed. please download the latest code. thank you