Closed ian-battaglia closed 5 years ago
Hi @MoreThanLuck, no problem to pose questions here!
As a general remark: it is possible to override any of the theme's files by creating a file with the same name in your own project. So, from the root of your site, if you create a file named layouts/partials/header.html
, Hugo will use that file instead of the one provided with the theme. This allows you to do some customisations especially for your site. The upside to this is that you do not have to alter the theme to do these kinds of customisations. However, if the file that comes with the theme is updated, your site will of course not have those updates.
layouts/partials/header.html
file to your own project. On line 4, replace {{ .Site.Title }}
with the img
tag to your image. You may have to do some additional styling.content/about/_index.md
and then it should not show up in the list of posts.layouts/partials/footer.html
. It contains the copyright, the site author, and the generator text. This text is translated into several languages. The files for this reside in the i18n
folder. Look for [generator]
in these files to find the text in different languages. As far as I know, you can also override this file by adding an i18n
folder to your own site.paginate = 10
to your config.toml
. I haven't tested this myself, but I got the information from the Hugo documentation.Thanks so much Emiel! I've added these changes and am now just waiting for them to propagate to the website.
Hmm, I'm still having trouble adding the wordmark to my header.
layouts/partials/header.html
from the theme directory into the same path on my own.~/static/uploads/
, some PNGs and one SVG, between 50-100 px tall.layouts/partials/header.html
file, it breaks everything and hugo server
no longer resolves.This is also happening with the footer changes I've tried to make, wherein I just rewrote the file as a piece of static html. Everything else worked great! Any ideas?
- Whenever I go to make the suggested change in the
layouts/partials/header.html
file, it breaks everything andhugo server
no longer resolves.
What do you mean by "no longer resolves"? Is there an error message on the console or on the screen?
Yes, sorry. It breaks the site on Hugo server and also my netlify deployment. Are you able to replace the title with an image?
Maybe the code I'm writing is wrong; how should it look?
My first idea would be to change this line to:
<h2 class="nav-title"><img src="images/title.png" alt="{{ .Site.Title }}" /></h2>
And then of course alter the images/title.png
to the path to your actual image. I have to admit that I didn't have the time to test this yet, but this would be the first thing I'd try/
I'm closing this issue because there has been no activity for a while. If you still want to respond, feel free to reopen it!
Hi there! Really lovely work. I've used this theme to deploy a blog I hope to build a literary journal around, but I'm a little confused on some of the configuration. I'm not sure if there's a better home for these questions, so I figured I'd post here. If you'd prefer I remove and contact you directly, let me know.
content
directory, is it possible to hide that from the rest of the posts and only show on the about page?layouts
andpartials
folders, but I couldn't exactly tell what should be modified.Thanks so much!