First, change your menu definition in config.yaml. Use pageRef instead of url, and place the slash at the front of each path instead of at the end of each path.
Or you could add hiddenInHomeList: true to the front matter of the pages that you want hidden in the home list. If you choose to do this instead, still make the menu changes as shown above. A number of theme authors are still providing examples using the url property for internal links instead of the pageRef property, but that is not the idiomatic way to do it (and will cause subtle problems under certain conditions).
And going back to my earlier comment about content modeling⦠it would be much simpler to place the non-menu pages (resume, privacy policy, my first post) in a subfolder (posts, articles, whatever). Then on the home page just iterate over that content type (āpostsā, āarticlesā, whatever).
So, I tried both those approaches, and nothing seemed to have changed, so I tried to hugo server and I got the error Error: add site dependencies: load resources: loading templates: "/home/mindlux/Documents/git/llmilne.com/layouts/_default/list.html:114:1": parse failed: template: _default/list.html:118: unexpected {{end}}. I reset that file back to how it was after we first changed it, and I got the same error, just with 114 instead of 118, because obviously I didnāt add the extra four lines you gave me.
Sorry, I hit the new user reply limit. Had to weight seven hours.
Start building sites ā¦
hugo v0.111.3+extended linux/amd64 BuildDate=2023-07-26T00:00:00+00:00 VendorInfo=Fedora:0.111.3-4.fc39
Error: Error building site: failed to render pages: render of "home" failed: "/home/mindlux/Documents/llmilne.com/layouts/_default/list.html:46:34": execute of template failed: template: _default/list.html:46:34: executing "main" at <append .Page>: error calling append: reflect: call of reflect.Value.Type on zero Value
Built in 47 ms
Sorry, hit the daily maximum amount of replies a new user can make. Itās midnight now.
I never changed that line. the only line I changed in the entire file was line 43 to 50 as mentioned earlier, however, I changed my file to exactly what yours said for line 1, and it worked fine. Iām not sure if thatās what you meant, but my website looks exactly how I wanted it to look, so yeah, thanks. Marking as solved.
One more question because itās easier to get them all out whilst I have someone who knows what theyāre doing, do you know how to make it so that when you click my name in the top left, it doesnāt select any of the ātabsā automatically (it currently selects āVideosā as indicated by the underline)? And how I can customise the āVideosā page, so that where it says: āIlluminating peoplesā thought processes.ā I can write something different like: āThis is the videos page.ā For example?
Basically, what I want (if it makes sense) is:
Home page (the page it brings you to upon clicking my name in the top left) no ātabā is highlighted, URL is https://llmilne.com/ and the blurb says āIlluminating peoplesā thought processes.ā
Videos page (the page it brings you to upon clicking on the Videos tab on the top right) āVideosā ātabā is highlighted, URL is https://llmilne.com/videos/ and the blurb says āPlaceholder.ā