Giter VIP home page Giter VIP logo

hugo-theme-tailwind's Introduction

👋 Hi, I’m @tomowang and you can check my blog

Metrics

Metrics isocalender fullyear

hugo-theme-tailwind's People

Contributors

deining avatar evilurge avatar i-shivamsoni avatar mattmc3 avatar pawo1 avatar therealgabhas avatar thomasboom89 avatar tinkoliu avatar tomowang avatar ytrepidorosonomous avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hugo-theme-tailwind's Issues

Giscus - 404 Discussion not found

I got 404 - Discussion not found when calling to
https://giscus.app/api/discussions?repo=hntan%2Fhntan.github.io&term=posts%2Fquarkus-munity-uni%2F&category=General&number=0&strict=false&first=15

Not so sure what am I missing here?

[params.giscus]
    enabled = true
    repo = "hntan/hntan.github.io"
    repoID = "167350460"
    category = "General"
    categoryID = "41801912"
    mapping = "pathname"
    strict = "0"
    reactionsEnabled = "1"
    emitMetadata = "0"
    inputPosition = "bottom"
    lang = "en"

Dark Theme - font color misses some sections

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:

image

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)

Issues when using Summary instead of Description.

First, good theme! Thank you for the work!

Conditions:

  1. Using <!--more--> to split Summary, and do not add description in the meta area.
  2. Using dark mode.

Issues:

  1. The font color of the summary is wrong, which should be light-color. If using description instead, the color is correct.
  2. The summary would be rendered two times in the content area of article. If using description instead, the description and the content is not same. So it's good.

Requirements:

  1. The font color should be correct when using Summary in dark mode.
  2. Only show Description in the detailed page, rather than show Summary two times.

Thanks!

Gist support adds lines accross code.

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 >}}

image

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.

Search not working once deployed.

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.

Search problems in the multilingual version

Found two problems with search in the multilingual version, possibly known but not enumerated in #12:

  • only the default language is indexed
  • the search site is generated only for the default language (translations remain unused)

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..

Default config.toml is not working

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.

Unused lastmod.html

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.

Translated 404 page has a hardcoded link to the default language homepage

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.

Adding extension to partials

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.

unable to install theme:

I tried to install this theme on a brand new install of hugo, but seems not working as expected

hugo new site test
git clone https://github.com/tomowang/hugo-theme-tailwind themes/tailwind
cp -a themes/tailwind/exampleSite/. .

I got the error related to a shortcode not found which is

hugo v0.92.2+extended linux/amd64 BuildDate=2023-01-31T11:11:57Z VendorInfo=ubuntu:0.92.2-1ubuntu0.1
Error: Error building site: "/home/florian/CIDgravity/test/content/post/rich-content/index.zh-cn.md:47:1": failed to extract shortcode: template for shortcode "bilibili" not found

So I tried to remove the file associated with this error, and now I got a blank page on hugo server with warning in logs

WARN 2024/05/23 10:51:06 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

Do you have any solution to make this theme works ?
I tried the same process with other themes, and everything works perfectly

I also tried using git submodule, the issue is the same

Uncaught (in promise) TypeError: 'clipboard-write' (value of 'name' member of PermissionDescriptor) is not a valid value for enumeration PermissionName in code-copy.js

Hi,

When using Firefox to copy code in the posts, it will be throwed Uncaught (in promise) TypeError: 'clipboard-write' (value of 'name' member of PermissionDescriptor) is not a valid value for enumeration PermissionName in code-copy.js.

As the document https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Interact_with_the_clipboard#using_the_clipboard_api:

Note: The clipboard-write permission name is not supported in Firefox, only Chromium browsers.

So for Firefox or maybe also Safari, need update the code like the page https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Interact_with_the_clipboard#using_the_clipboard_api doing in https://developer.mozilla.org/static/js/document/code/copy.ts

button.onclick = async () => {
    let copiedSuccessfully = true;
    try {
      const text = element.textContent || "";
      await navigator.clipboard.writeText(text);
    } catch (err) {
      console.error(
        "Error when trying to use navigator.clipboard.writeText()",
        err
      );
      copiedSuccessfully = false;
    }

    if (copiedSuccessfully) {
      button.classList.add("copied");
      showCopiedMessage(header, "Copied!");
    } else {
      button.classList.add("failed");
      showCopiedMessage(header, "Error trying to copy to clipboard!");
    }
}
Screenshot 2024-05-14 at 18 30 05

Taxonomy links for categories and tags are not generating properly under posts

Under posts where the categories and tags are rendered as links, the links result in a 404. The right sidebar links work however. For example, if there were a category named Tutorial, the post link is be incorrect: http://mattmc3.github.io/categories/page/categories/tutorial/, while the sidebar link is correct: http://mattmc3.github.io/categories/tutorial/.

Screenshot 2024-07-11 at 10 39 19 AM

I was able to fix this by adding a layouts/partials/block/taxonomies.html file and changing the link generation snippet to the following:

<a href="{{ (urlize (printf "/categories/%s" .LinkTitle )) | relLangURL }}/"
   class="text-sm mr-2 px-2 py-1 rounded border border-emerald-800 bg-emerald-800 text-slate-50">
   {{ .LinkTitle }}
</a>

I'm not sure if there's something I'm missing from the instructions that I should have put in my hugo.toml file, but here's my site where I had to apply the fix: https://github.com/mattmc3/mattmc3.github.io

I'm relatively new to Hugo, so let me know if there's a better way, or if this is a bug you aren't seeing yourself.

Thanks for the cool theme!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.