{"id":34559742,"url":"https://github.com/hugo-fixit/cmpt-santa-hat","last_synced_at":"2026-01-13T23:40:22.722Z","repository":{"id":330244563,"uuid":"1122061673","full_name":"hugo-fixit/cmpt-santa-hat","owner":"hugo-fixit","description":"A Christmas Easter Egg by JavaScript.","archived":false,"fork":false,"pushed_at":"2025-12-25T04:42:33.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-25T18:23:40.334Z","etag":null,"topics":["hugo","hugo-fixit","theme-component"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hugo-fixit.png","metadata":{"files":{"readme":"README.en.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"custom":["https://paypal.me/Lruihao"]}},"created_at":"2025-12-24T03:31:47.000Z","updated_at":"2025-12-25T04:42:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hugo-fixit/cmpt-santa-hat","commit_stats":null,"previous_names":["hugo-fixit/cmpt-santa-hat"],"tags_count":4,"template":false,"template_full_name":"hugo-fixit/component-skeleton","purl":"pkg:github/hugo-fixit/cmpt-santa-hat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugo-fixit%2Fcmpt-santa-hat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugo-fixit%2Fcmpt-santa-hat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugo-fixit%2Fcmpt-santa-hat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugo-fixit%2Fcmpt-santa-hat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugo-fixit","download_url":"https://codeload.github.com/hugo-fixit/cmpt-santa-hat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugo-fixit%2Fcmpt-santa-hat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28399821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hugo","hugo-fixit","theme-component"],"created_at":"2025-12-24T08:51:37.131Z","updated_at":"2026-01-13T23:40:22.716Z","avatar_url":"https://github.com/hugo-fixit.png","language":"HTML","funding_links":["https://paypal.me/Lruihao"],"categories":[],"sub_categories":[],"readme":"\u003c!-- markdownlint-disable-file MD033 MD041 --\u003e\n\u003ch1 align=\"center\"\u003e🎄 Santa Hat | FixIt\u003c/h1\u003e\n\n\u003cdiv align=\"center\" class=\"ignore\"\u003e\n  \u003cp\u003eA Christmas Easter Egg by JavaScript.\u003c/p\u003e\n  \u003ca href=\"/README.md\"\u003e简体中文\u003c/a\u003e |\n  \u003ca href=\"https://fixit.lruihao.cn/zh-cn/ecosystem/hugo-fixit/cmpt-santa-hat/?lang=chinese_traditional\"\u003e繁體中文\u003c/a\u003e |\n  English |\n  \u003ca href=\"https://fixit.lruihao.cn/ecosystem/hugo-fixit/cmpt-santa-hat/?lang=french\"\u003eFrançais\u003c/a\u003e |\n  \u003ca href=\"https://fixit.lruihao.cn/ecosystem/hugo-fixit/cmpt-santa-hat/?lang=russian\"\u003eРусский язык\u003c/a\u003e |\n  \u003ca href=\"https://fixit.lruihao.cn/ecosystem/hugo-fixit/cmpt-santa-hat/?lang=spanish\"\u003eEspañol\u003c/a\u003e |\n  \u003ca href=\"https://fixit.lruihao.cn/ecosystem/hugo-fixit/cmpt-santa-hat/?lang=hindi\"\u003eहिन्दी\u003c/a\u003e |\n  \u003ca href=\"https://fixit.lruihao.cn/ecosystem/hugo-fixit/cmpt-santa-hat/?lang=deutsch\"\u003edeutsch\u003c/a\u003e |\n  \u003ca href=\"https://fixit.lruihao.cn/ecosystem/hugo-fixit/cmpt-santa-hat/?lang=korean\"\u003e한국어\u003c/a\u003e |\n  \u003ca href=\"https://fixit.lruihao.cn/ecosystem/hugo-fixit/cmpt-santa-hat/?lang=japanese\"\u003eしろうと\u003c/a\u003e\n\u003c/div\u003e\n\n## Features\n\n![santa-hat](https://github.com/user-attachments/assets/6cf191ca-1455-46ae-a939-6539a2143c4d)\n\n- 🎅 Automatically adds Santa hat decoration to site logos during Christmas season (December 20-26)\n- 🎯 Automatic date detection, no manual toggling required\n- 💫 Lightweight implementation with no performance impact\n\n## Requirements\n\n- FixIt v0.4.0 or later.\n\n## Install Component\n\nThe installation method is the same as [installing a theme](https://fixit.lruihao.cn/documentation/installation/). There are several ways to install, choose one, Here are two mainstream ways.\n\n### Install as Hugo Module\n\nFirst make sure that your project itself is a [Hugo module](https://gohugo.io/hugo-modules/use-modules/#initialize-a-new-module).\n\nThen add this theme component to your `hugo.toml` configuration file:\n\n```toml\n[module]\n\n[[module.imports]]\npath = \"github.com/hugo-fixit/FixIt\"\n\n[[module.imports]]\npath = \"github.com/hugo-fixit/cmpt-santa-hat\"\n```\n\nOn the first start of Hugo it will download the required files.\n\nTo update to the latest version of the module run:\n\n```bash\nhugo mod get -u\nhugo mod tidy\n```\n\n### Install as Git Submodule\n\nClone [FixIt](https://github.com/hugo-fixit/FixIt) and this git repository into your theme folder and add it as submodules of your website directory.\n\n```bash\ngit submodule add https://github.com/hugo-fixit/FixIt.git themes/FixIt\ngit submodule add https://github.com/hugo-fixit/cmpt-santa-hat.git themes/cmpt-santa-hat\n```\n\nNext edit `hugo.toml` of your project and add this theme component to your themes:\n\n```toml\ntheme = [\"FixIt\", \"cmpt-santa-hat\"]\n```\n\n## Configuration\n\nIn order to Inject the partial `santa-hat.fixit.html` into the `custom-assets` through the [custom block](https://fixit.lruihao.cn/references/blocks/) opened by the FixIt theme in the `layouts/_partials/custom.html` file, you need to fill in the following necessary configurations:\n\n```toml\n[params]\n\n[params.customPartials]\n# ... other partials\nassets = [\n  \"inject/santa-hat.fixit.html\",\n]\n# ... other partials\n```\n\n## Styling\n\n- Recommended logo size: 32x32 pixels.\n- CSS variables:\n  - `--fi-santa-hat-offset`: Controls hat translation relative to the logo, default `8px 2px`.\n  - `--fi-santa-hat-shadow`: Controls hat shadow RGB values, default `0, 0, 0`; automatically switches to `255, 255, 255` in dark mode.\n\n\u003c!--\n## References\n\n- [Develop Theme Components | FixIt](https://fixit.lruihao.cn/contributing/components/)\n- [How to Develop a Hugo Theme Component | FixIt](https://fixit.lruihao.cn/components/dev-component/)\n--\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugo-fixit%2Fcmpt-santa-hat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugo-fixit%2Fcmpt-santa-hat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugo-fixit%2Fcmpt-santa-hat/lists"}