tomowang / hugo-theme-tailwind Goto Github PK
View Code? Open in Web Editor NEWClean card Hugo theme for blog, created by using tailwindcss
Home Page: https://hugo-theme-tailwind.tomo.dev/
License: MIT License
Clean card Hugo theme for blog, created by using tailwindcss
Home Page: https://hugo-theme-tailwind.tomo.dev/
License: MIT License
execute of template failed: template: partials/menu.html:10:13: executing "partials/menu.html" at <sort site.Menus.main "Weight">: error calling sort: sequence must be provided
https://github.com/tomowang/hugo-theme-tailwind/blob/main/layouts/partials/menu.html#L10
Sort is unnecessary here since Hugo sorts menus by weight by default
I saw you are mixing partials with and without the html
extension. Any reason why? I would advise sticking to the extension as a standard.
Hi there, upon using your them and deploying via github actions it appears as though the search functionality is not working.
The site is deployed at https://grab-a-byte.github.io/blog/ with the repo https://github.com/grab-a-byte/blog,
It seems I may just be missing some config as searchign takes me to
https://grab-a-byte.github.io/search/?search=a
but adding the blog back before the search and changing it to
https://grab-a-byte.github.io/blog/search/?search=a
brings up search as expected.
Thanks in advance for any help you can give on this matter.
When rendering Gists using the gist shortcode, there are a load of black lines through all of the source code. As shown in the screenshot below.
{{< gist grab-a-byte f7d0c226dc56c8af6d10e0088b183791 MyVBClass.vb >}}
Is there a way to remoe these lines or is it a bug?
I love the theme but given I aim to be blogging mostly about code, this is unfortunately a game breaker for me.
Thanks in advance for any response/fixes you may have.
Hi @tomowang
This is a fantastic theme! (thank you for creating it!)
Would you consider adding search -- possibly via PageFind? (https://github.com/cloudcannon/pagefind)
https://pagefind.app/docs/
Or at least a FuseJS?
https://makewithhugo.com/add-search-to-a-hugo-site/
Hello. I'm getting the errors listed below when trying to use the default config.toml in the installation guide.
thelevic@Levis:~/blog$ hugo server
Start building sites …
hugo v0.92.2+extended linux/amd64 BuildDate=2023-01-31T11:11:57Z VendorInfo=ubuntu:0.92.2-1ubuntu0.1
ERROR 2024/03/27 15:28:52 render of "section" failed: "/home/thelevic/blog/themes/tailwind/layouts/_default/baseof.html:2:18": execute of template failed: template: search/search.html:2:18: executing "search/search.html" at <site>: can't evaluate field LanguageCode in type *langs.Language
ERROR 2024/03/27 15:28:52 render of "taxonomy" failed: "/home/thelevic/blog/themes/tailwind/layouts/_default/baseof.html:2:18": execute of template failed: template: _default/terms.html:2:18: executing "_default/terms.html" at <site>: can't evaluate field LanguageCode in type *langs.Language
ERROR 2024/03/27 15:28:52 render of "taxonomy" failed: "/home/thelevic/blog/themes/tailwind/layouts/_default/baseof.html:2:18": execute of template failed: template: _default/terms.html:2:18: executing "_default/terms.html" at <site>: can't evaluate field LanguageCode in type *langs.Language
ERROR 2024/03/27 15:28:52 render of "taxonomy" failed: "/home/thelevic/blog/themes/tailwind/layouts/_default/baseof.html:2:18": execute of template failed: template: _default/terms.html:2:18: executing "_default/terms.html" at <site>: can't evaluate field LanguageCode in type *langs.Language
Error: Error building site: failed to render pages: render of "home" failed: "/home/thelevic/blog/themes/tailwind/layouts/_default/baseof.html:2:18": execute of template failed: template: _default/list.html:2:18: executing "_default/list.html" at <site>: can't evaluate field LanguageCode in type *langs.Language
Built in 4 ms
It seems that there is an issue with search and languages? Thanks.
See this discussion https://discourse.gohugo.io/t/deprecate-markdownify/37789
Found two problems with search in the multilingual version, possibly known but not enumerated in #12:
Each sub-site should have its search page with accurate translations. Search engine should contain all posts in a common index or separate indexes prepared per language..
First, good theme! Thank you for the work!
Thanks!
Template generation left lastmod.html partial, which is unused in the tailwind theme. It can be misleading because LastMod is covered extensively in Hugo's documentation. I suggest removing this partial and optionally adding LastModDisplay option to the configuration to toggle showing the last modification date in posts' headers, similar to "Reading Time" info.
I can prepare PR with the LastMod widget if you find it a beneficial change.
You can use translated 404 pages in the routing config (e.g. for nginx). Unfortunately link to the homepage in this template is hardcoded to "/" which causes redirects to a different language when you hit a 404 error on the translated page. Should use "relLangURL" for proper homepage instead.
Hi @tomowang - just opening this as another issue:
Noticed one other bit - in dark mode, it seems posts that have sub-sections with a <!--more-->
tag, get ignored by the theme.
Ex:
Here is what produced that:
+++
title = 'AI'
date = 2023-12-20T12:43:01-05:00
draft = true
+++
Things worth looking into:
### OpenAI
* GPT 4 Turbo
* GPT Visual
* Assistants + Threads
* GPTS potentially
### AWS Bedrock
* Anthropic:
** Claude Instant (100K context)
** Claude 2.1 (200K context)
<!--more-->
### Meta -> Llama Chat (7b vs 13b vs 70b)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.