Replies: 1 comment 4 replies
-
Wow @cbelena, thanks for the really detailed suggestions. There's a lot of great changes here and I largely agree with most of what you have suggested. My only issue at the moment is that I'm very close to releasing version 2 of the theme which has a lot of changes - some of which will address some of these items. I'm hoping to avoid adding feature changes to the 1.x branch until v2 is out as some of the suggested changes here will cause substantial conflicts. That said, if you want to submit a PR that adds the items below, I'd be happy to merge that in as I can then pull it up into v2 also...
To address some of your other points, I think I'll experiment with swapping the pagination direction for v2 as it's a change that can fit in with all the other adjustments that are happening without annoying anyone who is used to the current way it works. Now that I think of it I'm not even sure why I paginated them in the direction that I did because on reflection it doesn't even make sense to me!! The With regards to the "other" list...
I typed this response pretty quickly but I hope I covered all your items. Feel free to clarify anything! |
Beta Was this translation helpful? Give feedback.
-
Hi! I'm also currently creating my new personal website with Congo and I have some suggestions:
Regarding
layouts/partials/meta/date.html
:i18n
function to be able to translate the word "Updated".time.Format
with date/time formatting layouts instead of.Date.Format
to output localized dates. That way you can use for examplearticle.dateFormat = ":date_long"
inparams.toml
to output22 de enero de 2022
if language is set to spanish. This requires to bump minimum version of Hugo to v0.87 instead of v0.86.1, but I think it's worth it.About
layouts/partials/article-pagination.html
:showDateUpdated
istrue
, it shows the updated date on pagination, like this:I think the updated part is not necessary here, and also shows some weird double spaces.
To fix this, I have thought about changing
layouts/partials/meta/date.html
to only output the original date and creating a new partial calleddate-updated.html
which adds the 'Updated' localized string and then calls thedate.html
partial.And this leads me to...
Improving
layouts/partials/article-meta.html
:showWordCount
orshowReadingTime
:What do you think?
I have fixed it like this in
custom.css
, but I don't know if this it's the best way:This happens in articles and article listings (as shown above).
May I submit some PR with these changes I have already implemented?
Other
externalUrl
set, you can access the page of the 'article' through the navigation links. Maybe checking.Params.externalUrl
is needed, like inlayouts/partials/article-link.html
?<title>
is not localized: appears as "404 Page not found ·.Site.Title
" regardless of the language. I'm not exactly sure where to put thei18n
function to properly fix it.enableEmoji = false
andpaginate
settings inconfig.toml
don't really change anything, but I think this is pretty minor as the default value forpaginate
is OK (10) and emoji are always welcome! 😀darkMode
is not set to"auto"
,darkToggle
doesn't do anything. I think it would be great if you can force light or dark appearance withdarkMode
, and also allowing to setdarkToggle
to"true"
to show the toggle.darkToggle
, could you please center the vertical alignment of the icon? 🙏 It's slightly down:Thank you @jpanther for this great Hugo theme!
Beta Was this translation helpful? Give feedback.
All reactions