-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove date from "About" etc? Limit "preview" text for posts on home page #46
Comments
For demonstration I've launched a page at http://www.ecologi.st/. This has raised a couple of other issues:
I'm no CSS or Hugo expert, but I'll report back if I find fixes myself. Thanks!!! |
Hi @jslingsby
I have the same issue. {{ if not .Date.IsZero }}
<span class="date">{{ .Date.Format "02 January 2006" }}</span> <span> / </span>
{{ end }}
Indeed the page "About", etc. uses the same template as blog posts. Always in the same file This should look like: {{ if ( .Params.categories ) and ( .Params.categories "!=" "") }}
<div class="entry-categories"><p><span>Categories</span>
{{ range $index, $name := .Params.categories }}
<a href="{{ "/categories/" | relLangURL }}{{ $name | urlize }}" title="View all posts in {{ $name }}">{{ $name }}</a>{{ end }}
</p>
</div>
{{ end }}
{{ if ( .Params.tags ) and ( .Params.tags "!=" "") }}
<div class="entry-tags"><p><span>Tags</span>
{{ range $index, $name := .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}" title="View all posts tagged {{ $name }}">{{ $name }}</a>
{{ end }}
</p></div> {{ end }} </div> I don't know if it's a good thing to do, there may be edge effects. |
Fixed "About" etc dates, categories and tags see appernetic/hugo-nederburg-theme#46
Brilliant, seems to work perfectly! Thanks! |
I think the best soluton is to do a separate template for About, similar to the one for contact. |
Based on feedback from Discourse
I don't want to overwhelm you with PRs, so I'll submit this one after you decide on my previous PRs. |
@MatthewMcD I have done a sprint on this theme now. You can submit the PR! |
Great, I'll pull and rebuild then submit the PR. |
Thanks for a great theme!!!
These are more questions than issues, so apologies in advance.
I have a date popping up at the top of the "About" and other pages I've set to navigate in the sidebar. This is useful for blog posts, but not for "About" and other pages with relatively static content. If I remove the date from the index.md it just displays 01 January. How can I remove it?
Where does one set the limit on the length of preview text shown for each post on the home page?
Thanks!!!
The text was updated successfully, but these errors were encountered: