Comments (5)
Dear @crakjie,
Might you be able to give me a quick hint?
Thankfully,
-Robert
from landing-page-hugo.
I think you could have a tab by post if you want.
Just iterate on post and fetch there title when building the head of the page.
from landing-page-hugo.
Thanks for your really helpful guidance!
I started experimenting with the following code in header.html
:
{{ range .Data.Pages }}
<li>
<a class="page-scroll" href="#{{ .Title }}">{{ .Title }}</a>
</li>
{{ end }}
Seems to go into the right direction. 😄
-Robert
from landing-page-hugo.
It's look good but be careful if your title contain spaces.
if you first title is "My title" and the second "My links"
you will have #My twice.
There is advanced way to make link with gohugo. But I don't remember how.
from landing-page-hugo.
Thanks for the caveat! I will see how far I get. :-)
-Robert
from landing-page-hugo.
Related Issues (12)
- Question on using this theme with blog content HOT 2
- How can I change the navigation and "stay in touch" text? HOT 4
- Please switch to safe baseURL for example config
- blog integration ? HOT 3
- portfolio section HOT 2
- Images in Services vertically centered. HOT 3
- Proposal: Customizable "Pricing" section HOT 4
- Impressum / Imprint / Legal Notice
- Images missing max-width property
- Google map and form in contact
- exampleSite for Hugo Theme Site HOT 5
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 landing-page-hugo.