Comments (2)
... it has something to do with #navbar
, if I drop it off from <div id="navbar" class="navbar-collapse collapse">
like this: <div id="" class="navbar-collapse collapse">
the link works again, even if the entire navigation layout is broken of course.
So what the correct way to add link to new entire pages which are not "predefined" like sessions in the partials?
from hugo-elate-theme.
Ok done ... I found out this snippet in the original js code @ ./themes/hugo-elate/static/js/main.js :
if ( $('#navbar').is(':visible') ) {
$('#navbar a:not([class="external"])').click(function(event){
navbar = $('#navbar');
var $el = $('#navbar > ul');
then I just add 'external' class to the link like this :
<li><a href="{{ $.Site.BaseURL }}promote" class="external"><span>Promote</span></a></li>
and now it works!
from hugo-elate-theme.
Related Issues (20)
- Feature Request - Optionally Add Logo for Brand HOT 5
- how do i go about modifying where google maps plugin is pointed at? HOT 3
- Make YouTube, Facebook and Twitter editable in the config HOT 1
- Postpend/Prepend Link handling issues
- Why are there multiple style.css files?
- Line breaks are not rendered from config.toml
- Works in Microsoft Edge 41.16299.15.0, does not work in Chrome 64.0.3282.186 HOT 2
- Other colors theme HOT 1
- Failed to load resource with a status of 403 HOT 1
- Add a blog HOT 2
- "This page can't load Google Maps correctly" HOT 2
- Authors section line break HOT 1
- How do I add my own logo? HOT 3
- Change background Colours of sections HOT 1
- How i do i change the font?
- How do i change the position of about item ? HOT 1
- need help with mapping HOT 1
- Is this theme no longer supported? HOT 1
- How can i create new post? HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-elate-theme.