It would be cool if I could add a Twitter feed on the startpage to the right or on another page. Is this possible in some way? If so, any good tutorial for it? When I googled, I didn’t find any good resource.
Thanks! Now I got html code, since I use this theme: https://github.com/LordMathis/hugo-theme-nix/ - Where would I place the html code I got from your link if I want the Twitter feed to be to the right of the homepage there? It’s index.html in /themes/hugo-theme-nix/layouts but then I would need some css to place it to the right of the page right?
Note you can override any file from your theme, by copying that file to the equivalent location in your project.
/themes/sometheme/layouts/index.html
can be copied to:
/layouts/index.html
… and you can tweak it there to preserve your changes.
Looking at the head partial, that theme uses bootstrap, so putting the twitter code in a div, and styling the div with something from bootstrap designed to push layout right, might work.
I got it to the right of the page, and set height on div, but the feed still goes way down below the footer of the page(only to the right of the page). So I think it is something with the html code of it, or is it something else?
It still puts a large gap between the logo and the text below it: https://puu.sh/BYyVl/f230636008.png
Can’t see whole page there but then you scroll down with tweets to the right and at the bottom, the box shows up.
That changed the height of Twitter-feed which is good! But it starts further down on the page and not at the top right, so the space is still there. But if we can get it to start at right top now, we are done.
Nice now it worked, not sure what I did wrong earlier. There is still more space now between the logo and the title than it was before in the theme(i use the GitHub - LordMathis/hugo-theme-nix: Nix is a simple, minimal theme for Hugo ) but yeah it’s probably fine. I can maybe make the twitter feed smaller. Thanks for the help!