From 1d07b40d0850ecd21db354b042a64be2060c237b Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Tue, 25 Aug 2026 11:33:44 +0800 Subject: [PATCH] refactor(layouts): remove Hugo Extended check, use warnidf for init warnings SCSS now depends on Dart Sass (external) instead of Hugo Extended's built-in LibSass, so the hugo.IsExtended check is no longer needed. Also switches warnf to warnidf for encryption/pagefind warnings to prevent duplicate messages. --- i18n/ar.toml | 1 - i18n/de.toml | 1 - i18n/en.toml | 1 - i18n/es.toml | 1 - i18n/fa.toml | 1 - i18n/fr.toml | 1 - i18n/hi.toml | 1 - i18n/it.toml | 1 - i18n/ja.toml | 1 - i18n/ko.toml | 1 - i18n/pl.toml | 1 - i18n/pt-BR.toml | 1 - i18n/ro.toml | 1 - i18n/ru.toml | 1 - i18n/sr.toml | 1 - i18n/ur.toml | 1 - i18n/vi.toml | 1 - i18n/zh-CN.toml | 1 - i18n/zh-TW.toml | 1 - layouts/_partials/init/detection-encryption.html | 2 +- layouts/_partials/init/detection-pagefind.html | 2 +- layouts/_partials/init/detection-version.html | 10 +++------- layouts/_partials/init/index.html | 2 +- 23 files changed, 6 insertions(+), 29 deletions(-) diff --git a/i18n/ar.toml b/i18n/ar.toml index 24839ebb..49e09776 100644 --- a/i18n/ar.toml +++ b/i18n/ar.toml @@ -5,7 +5,6 @@ # === Init === [init] hugoVersionError = "إصدار Hugo منخفض جداً.\n\nالإصدار الحالي هو {{ .Current }}، والإصدار الأدنى المطلوب لـ FixIt هو {{ .Minimal }}.\n\nإذا كنت تستخدم Hugo على جهازك الشخصي، راجع https://gohugo.io/getting-started/installing/#upgrade-hugo لدليل الترقية.\n\nإذا كنت تستخدم Hugo على منصة طرف ثالث، يرجى تكوين إصدار Hugo وفقاً لذلك." -hugoExtendedWarn = "إصدار Hugo Extended مطلوب لدعم SCSS." configurationError = "خطأ في التكوين\nلم تقم بتكوين معامل إصدار FixIt بشكل صحيح بعد. راجع https://fixit.lruihao.cn/docs/getting-started/configuration/params/" compatibilityError = "خطأ في التوافق ({{ .From }} -> {{ .To }}):\nلديك تحديث غير متوافق. راجع https://github.com/hugo-fixit/FixIt/releases" devVersionWarn = "أنت تستخدم إصدار تطوير من FixIt. يُرجى التفكير في استخدام إصدار مستقر.\nراجع https://github.com/hugo-fixit/FixIt/releases" diff --git a/i18n/de.toml b/i18n/de.toml index be7348c5..f12cb2bf 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -5,7 +5,6 @@ # === Init === [init] hugoVersionError = "Hugo-Version ist zu niedrig.\n\nAktuelle Hugo-Version ist {{ .Current }}, die minimal unterstützte Version für FixIt ist {{ .Minimal }}.\n\nWenn Sie Hugo auf Ihrem eigenen Computer ausführen, schauen Sie sich https://gohugo.io/getting-started/installing/#upgrade-hugo für eine Upgrade-Anleitung an.\n\nWenn Sie auf einer Drittanbieterplattform bereitstellen, konfigurieren Sie bitte die Hugo-Version entsprechend." -hugoExtendedWarn = "Die Hugo Extended-Version ist für die Unterstützung von SCSS erforderlich." configurationError = "Konfigurationsfehler\nSie haben den FixIt-Versionsparameter noch nicht korrekt konfiguriert. Siehe https://fixit.lruihao.cn/docs/getting-started/configuration/params/?lang=deutsch" compatibilityError = "Kompatibilitätsfehler ({{ .From }} -> {{ .To }}):\nSie haben ein inkompatibles Update. Siehe https://github.com/hugo-fixit/FixIt/releases" devVersionWarn = "Sie verwenden eine Entwicklungsversion von FixIt. Bitte erwägen Sie die Verwendung einer stabilen Version.\nSiehe https://github.com/hugo-fixit/FixIt/releases" diff --git a/i18n/en.toml b/i18n/en.toml index aecbcc93..7eca3c7c 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -4,7 +4,6 @@ # === Init === [init] hugoVersionError = "Hugo version is too low.\n\nCurrent Hugo version is {{ .Current }}, the minimum supported version for FixIt is {{ .Minimal }}.\n\nIf you are running Hugo on your own computer, check out https://gohugo.io/getting-started/installing/#upgrade-hugo for upgrading guide.\n\nIf you are deploying on a third-party platform, please configure Hugo version accordingly." -hugoExtendedWarn = "The Hugo Extended version is necessary for SCSS support." configurationError = "Configuration Error\nYou haven't configured the FixIt version param correctly yet. See https://fixit.lruihao.cn/docs/getting-started/configuration/params/" compatibilityError = "Compatibility Error ({{ .From }} -> {{ .To }}):\nYou have an incompatible update. See https://github.com/hugo-fixit/FixIt/releases" devVersionWarn = "You are using a development version of FixIt. Please consider using a stable version.\nSee https://github.com/hugo-fixit/FixIt/releases" diff --git a/i18n/es.toml b/i18n/es.toml index 704663c8..289bdfde 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -5,7 +5,6 @@ # === Init === [init] hugoVersionError = "Hugo versión es demasiado baja.\n\nLa versión actual de Hugo es {{ .Current }}, la versión mínima compatible para FixIt es {{ .Minimal }}.\n\nSi estás ejecutando Hugo en tu propia computadora, consulta https://gohugo.io/getting-started/installing/#upgrade-hugo para obtener una guía de actualización.\n\nSi estás desplegando en una plataforma de terceros, por favor configura la versión de Hugo en consecuencia." -hugoExtendedWarn = "La versión extendida de Hugo es necesaria para el soporte de SCSS." configurationError = "Error de configuración\nAún no ha configurado correctamente el parámetro de versión de FixIt. Consulte https://fixit.lruihao.cn/docs/getting-started/configuration/params/?lang=spanish" compatibilityError = "Error de compatibilidad ({{ .From }} -> {{ .To }}):\nTiene una actualización incompatible. Consulte https://github.com/hugo-fixit/FixIt/releases" devVersionWarn = "Está utilizando una versión de desarrollo de FixIt. Considere usar una versión estable.\nConsulte https://github.com/hugo-fixit/FixIt/releases" diff --git a/i18n/fa.toml b/i18n/fa.toml index 438fba0a..1299dea8 100644 --- a/i18n/fa.toml +++ b/i18n/fa.toml @@ -5,7 +5,6 @@ # === Init === [init] hugoVersionError = "نسخه Hugo بسیار پایین است.\n\nنسخه فعلی Hugo {{ .Current }} است و حداقل نسخه پشتیبانی‌شده برای FixIt {{ .Minimal }} می‌باشد.\n\nاگر Hugo را روی رایانه شخصی خود اجرا می‌کنید، برای راهنمای ارتقا به https://gohugo.io/getting-started/installing/#upgrade-hugo مراجعه کنید.\n\nاگر از پلت‌فرم شخص ثالث استفاده می‌کنید، لطفاً نسخه Hugo را مطابق با آن پیکربندی کنید." -hugoExtendedWarn = "نسخه Extended Hugo برای پشتیبانی از SCSS ضروری است." configurationError = "خطای پیکربندی\nشما هنوز پارامتر نسخه FixIt را به درستی پیکربندی نکرده‌اید. به https://fixit.lruihao.cn/docs/getting-started/configuration/params/ مراجعه کنید" compatibilityError = "خطای سازگاری ({{ .From }} -> {{ .To }}):\nشما یک به‌روزرسانی ناسازگار دارید. به https://github.com/hugo-fixit/FixIt/releases مراجعه کنید" devVersionWarn = "شما از نسخه توسعه FixIt استفاده می‌کنید. لطفاً از نسخه پایدار استفاده کنید.\nبه https://github.com/hugo-fixit/FixIt/releases مراجعه کنید" diff --git a/i18n/fr.toml b/i18n/fr.toml index 379c75fa..94450666 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -5,7 +5,6 @@ # === Init === [init] hugoVersionError = "La version de Hugo est trop ancienne.\n\nLa version actuelle de Hugo est {{ .Current }}, la version minimale requise pour FixIt est {{ .Minimal }}.\n\nSi vous utilisez Hugo sur votre ordinateur, consultez le guide de mise à niveau à l'adresse https://gohugo.io/getting-started/installing/#upgrade-hugo.\n\nSi vous déployez sur une plateforme tierce, veuillez configurer la version de Hugo en conséquence." -hugoExtendedWarn = "La version étendue de Hugo est nécessaire pour la prise en charge de SCSS." configurationError = "Erreur de configuration\nVous n'avez pas configuré la version de FixIt correctement. Voir https://fixit.lruihao.cn/docs/getting-started/configuration/params/?lang=french" compatibilityError = "Erreur de compatibilité ({{ .From }} -> {{ .To }}):\nVous avez une mise à jour incompatible. Voir https://github.com/hugo-fixit/FixIt/releases" devVersionWarn = "Vous utilisez une version de développement de FixIt. Veuillez considérer l'utilisation d'une version stable.\nVoir https://github.com/hugo-fixit/FixIt/releases" diff --git a/i18n/hi.toml b/i18n/hi.toml index 89fdfaff..0af4d7e0 100644 --- a/i18n/hi.toml +++ b/i18n/hi.toml @@ -5,7 +5,6 @@ # === Init === [init] hugoVersionError = "Hugo संस्करण बहुत पुराना है।\n\nवर्तमान में उपयोग किया जा रहा Hugo संस्करण {{ .Current }} है, जबकि FixIt के लिए न्यूनतम आवश्यक संस्करण {{ .Minimal }} है।\n\nयदि आप अपने कंप्यूटर पर Hugo का उपयोग कर रहे हैं, तो कृपया अपग्रेड गाइड देखें: https://gohugo.io/getting-started/installing/#upgrade-hugo\n\nयदि आप किसी तृतीय-पक्ष प्लेटफ़ॉर्म पर तैनात कर रहे हैं, तो कृपया Hugo संस्करण को तदनुसार कॉन्फ़िगर करें। " -hugoExtendedWarn = "SCSS समर्थन के लिए Hugo Extended संस्करण आवश्यक है।" configurationError = "कन्फ़िग्यरेशन त्रुटि \nआपने फिक्सइट संस्करण पैरामीटर को सही ढंग से कॉन्फ़िगर नहीं किया है।. यह देखें: https://fixit.lruihao.cn/docs/getting-started/configuration/params/" compatibilityError = "संगतता त्रुटि ({{ .From }} -> {{ .To }}):\nआपके पास एक असंगत अपडेट है. यह देखें: https://github.com/hugo-fixit/FixIt/releases" devVersionWarn = "आप फिक्सइट के डिवेलपर संस्करण का उपयोग कर रहे हैं। कृपया एक स्थिर संस्करण का उपयोग करने पर विचार करें।\nयह देखें: https://github.com/hugo-fixit/FixIt/releases" diff --git a/i18n/it.toml b/i18n/it.toml index a0afa918..f8abd134 100644 --- a/i18n/it.toml +++ b/i18n/it.toml @@ -5,7 +5,6 @@ # === Init === [init] hugoVersionError = "La versione di Hugo è troppo bassa.\n\nLa versione attuale di Hugo è {{ .Current }}, la versione minima supportata per FixIt è {{ .Minimal }}.\n\nSe stai eseguendo Hugo sul tuo computer, consulta https://gohugo.io/getting-started/installing/#upgrade-hugo per la guida all'aggiornamento.\n\nSe stai distribuendo su una piattaforma di terze parti, configura la versione di Hugo di conseguenza." -hugoExtendedWarn = "La versione Hugo Extended è necessaria per il supporto SCSS." configurationError = "Errore di configurazione\nNon hai ancora configurato correttamente il parametro della versione di FixIt. Vedi https://fixit.lruihao.cn/docs/getting-started/configuration/params/" compatibilityError = "Errore di compatibilità ({{ .From }} -> {{ .To }}):\nHai un aggiornamento incompatibile. Vedi https://github.com/hugo-fixit/FixIt/releases" devVersionWarn = "Stai utilizzando una versione di sviluppo di FixIt. Si prega di considerare l'utilizzo di una versione stabile.\nVedi https://github.com/hugo-fixit/FixIt/releases" diff --git a/i18n/ja.toml b/i18n/ja.toml index 713fdc84..40a2a122 100644 --- a/i18n/ja.toml +++ b/i18n/ja.toml @@ -5,7 +5,6 @@ # === Init === [init] hugoVersionError = "Hugo のバージョンが低すぎます。\n\n現在の Hugo バージョンは {{ .Current }} ですが、FixIt がサポートする最小バージョンは {{ .Minimal }} です。\n\n自分のコンピューターで Hugo を実行している場合は、https://gohugo.io/getting-started/installing/#upgrade-hugo でアップグレードガイドを参照してください。\n\nサードパーティプラットフォームにデプロイしている場合は、Hugo バージョンを適切に設定してください。" -hugoExtendedWarn = "SCSS サポートには Hugo Extended バージョンが必要です。" configurationError = "設定ファイルエラー\nまだ FixIt のバージョンパラメータを正しく設定していません。 https://fixit.lruihao.cn/docs/getting-started/configuration/params/?lang=japanese を参照してください" compatibilityError = "互換性エラー ({{ .From }} -> {{ .To }}):\n互換性のない更新が行われました。 https://github.com/hugo-fixit/FixIt/releases を参照してください" devVersionWarn = "開発版の FixIt を使用しています。安定版の使用を検討してください。\n https://github.com/hugo-fixit/FixIt/releases を参照" diff --git a/i18n/ko.toml b/i18n/ko.toml index 58676b4e..53b35352 100644 --- a/i18n/ko.toml +++ b/i18n/ko.toml @@ -5,7 +5,6 @@ # === Init === [init] hugoVersionError = "Hugo 버전이 너무 낮습니다.\n\n현재 Hugo 버전은 {{ .Current }}이며, FixIt의 최소 지원 버전은 {{ .Minimal }}입니다.\n\n자신의 컴퓨터에서 Hugo를 실행 중이라면 https://gohugo.io/getting-started/installing/#upgrade-hugo 에서 업그레이드 가이드를 확인하세요.\n\n타사 플랫폼에 배포 중이라면 Hugo 버전을 적절히 설정해 주세요." -hugoExtendedWarn = "SCSS 지원을 위해 Hugo Extended 버전이 필요합니다." configurationError = "구성 파일 오류\n아직 FixIt의 버전 매개변수를 올바르게 구성하지 않았습니다. https://fixit.lruihao.cn/docs/getting-started/configuration/params/?lang=korean 을 참조하세요." compatibilityError = "호환성 오류 ({{ .From }} -> {{ .To }}):\n비호환 업데이트를 수행했습니다. https://github.com/hugo-fixit/FixIt/releases 를 참조하세요." devVersionWarn = "현재 개발 버전의 FixIt을 사용 중입니다. 안정적인 버전을 사용하는 것이 좋습니다.\n자세한 내용은 https://github.com/hugo-fixit/FixIt/releases 를 참조하세요." diff --git a/i18n/pl.toml b/i18n/pl.toml index e0298979..ce0c4293 100644 --- a/i18n/pl.toml +++ b/i18n/pl.toml @@ -5,7 +5,6 @@ # === Init === [init] hugoVersionError = "Wersja Hugo jest zbyt niska.\n\nAktualna wersja Hugo to {{ .Current }}, minimalna obsługiwana wersja dla FixIt to {{ .Minimal }}.\n\nJeśli uruchamiasz Hugo na własnym komputerze, zapoznaj się z przewodnikiem aktualizacji na stronie https://gohugo.io/getting-started/installing/#upgrade-hugo.\n\nJeśli wdrażasz na platformie zewnętrznej, skonfiguruj odpowiednio wersję Hugo." -hugoExtendedWarn = "Wersja Hugo Extended jest wymagana do obsługi SCSS." configurationError = "Błąd konfiguracji\nNie skonfigurowałeś jeszcze poprawnie parametru wersji FixIt. Zobacz https://fixit.lruihao.cn/docs/getting-started/configuration/params/" compatibilityError = "Błąd zgodności ({{ .From }} -> {{ .To }}):\nMasz niekompatybilną aktualizację. Zobacz https://github.com/hugo-fixit/FixIt/releases" devVersionWarn = "Używasz wersji deweloperskiej FixIt. Proszę rozważyć użycie stabilnej wersji.\nZobacz https://github.com/hugo-fixit/FixIt/releases" diff --git a/i18n/pt-BR.toml b/i18n/pt-BR.toml index cd7a8d7f..6d61962b 100644 --- a/i18n/pt-BR.toml +++ b/i18n/pt-BR.toml @@ -5,7 +5,6 @@ # === Init === [init] hugoVersionError = "A versão do Hugo é muito baixa.\n\nA versão atual do Hugo é {{ .Current }}, a versão mínima suportada pelo FixIt é {{ .Minimal }}.\n\nSe você está executando o Hugo em seu computador, consulte https://gohugo.io/getting-started/installing/#upgrade-hugo para obter um guia de atualização.\n\nSe você está implantando em uma plataforma de terceiros, configure a versão do Hugo adequadamente." -hugoExtendedWarn = "A versão Hugo Extended é necessária para o suporte a SCSS." configurationError = "Erro de configuração\nVocê ainda não configurou o parâmetro da versão do FixIt corretamente. Consulte https://fixit.lruihao.cn/docs/getting-started/configuration/params/" compatibilityError = "Erro de compatibilidade ({{ .From }} -> {{ .To }}):\nVocê tem uma atualização incompatível. Consulte https://github.com/hugo-fixit/FixIt/releases" devVersionWarn = "Você está usando a versão de desenvolvedor do FixIt. Por favor, use uma versão estável. \nConsulte https://github.com/hugo-fixit/FixIt/releases" diff --git a/i18n/ro.toml b/i18n/ro.toml index 426d7040..b08a6ece 100644 --- a/i18n/ro.toml +++ b/i18n/ro.toml @@ -5,7 +5,6 @@ # === Init === [init] hugoVersionError = "Versiunea Hugo este prea veche.\n\nVersiunea curentă Hugo este {{ .Current }}, versiunea minimă compatibilă cu FixIt este {{ .Minimal }}.\n\nDacă rulați Hugo pe propriul computer, consultați https://gohugo.io/getting-started/installing/#upgrade-hugo pentru ghidul de actualizare.\n\nDacă implementați pe o platformă terță, configurați versiunea Hugo corespunzător." -hugoExtendedWarn = "Versiunea Hugo Extended este necesară pentru suportul SCSS." configurationError = "Eroare de configurare\nNu ați configurat corect parametrul versiunii FixIt. Consultați https://fixit.lruihao.cn/docs/getting-started/configuration/params/" compatibilityError = "Eroare de compatibilitate ({{ .From }} -> {{ .To }}):\nAveți o actualizare incompatibilă. Consultați https://github.com/hugo-fixit/FixIt/releases" devVersionWarn = "Utilizați o versiune de dezvoltare a FixIt. Vă rugăm să luați în considerare utilizarea unei versiuni stabile.\nConsultați https://github.com/hugo-fixit/FixIt/releases" diff --git a/i18n/ru.toml b/i18n/ru.toml index fe23ee3b..5b2e8ecc 100644 --- a/i18n/ru.toml +++ b/i18n/ru.toml @@ -5,7 +5,6 @@ # === Init === [init] hugoVersionError = "Версия Hugo слишком низкая.\n\nТекущая версия Hugo — {{ .Current }}, минимальная поддерживаемая версия для FixIt — {{ .Minimal }}.\n\nЕсли вы запускаете Hugo на своём компьютере, ознакомьтесь с руководством по обновлению по адресу https://gohugo.io/getting-started/installing/#upgrade-hugo.\n\nЕсли вы развёртываете на сторонней платформе, настройте версию Hugo соответствующим образом." -hugoExtendedWarn = "Для поддержки SCSS необходима версия Hugo Extended." configurationError = "Ошибка конфигурации\nВы еще не настроили параметр версии FixIt правильно. См. https://fixit.lruihao.cn/docs/getting-started/configuration/params/?lang=russian" compatibilityError = "Ошибка совместимости ({{ .From }} -> {{ .To }}):\nУ вас есть несовместимое обновление. См. https://github.com/hugo-fixit/FixIt/releases" devVersionWarn = "Вы используете версию разработки FixIt. Пожалуйста, рассмотрите возможность использования стабильной версии.\nСм. https://github.com/hugo-fixit/FixIt/releases" diff --git a/i18n/sr.toml b/i18n/sr.toml index 337db090..6e68d396 100644 --- a/i18n/sr.toml +++ b/i18n/sr.toml @@ -5,7 +5,6 @@ # === Init === [init] hugoVersionError = "Верзија Hugo-а је прениска.\n\nТренутна верзија Hugo-а је {{ .Current }}, а минимална подржана верзија за FixIt је {{ .Minimal }}.\n\nАко покрећете Hugo на свом рачунару, погледајте https://gohugo.io/getting-started/installing/#upgrade-hugo за водич за надоградњу.\n\nАко постављате на платформу треће стране, конфигуришите верзију Hugo-а у складу с тим." -hugoExtendedWarn = "Верзија Hugo Extended је неопходна за подршку SCSS-а." configurationError = "Грешка у конфигурацији\nНисте правилно конфигурисали параметар верзије FixIt. Погледајте https://fixit.lruihao.cn/docs/getting-started/configuration/params/" compatibilityError = "Грешка у компатибилности ({{ .From }} -> {{ .To }}):\nИмате некомпатибилно ажурирање. Погледајте https://github.com/hugo-fixit/FixIt/releases" devVersionWarn = "Користите развојну верзију FixIt. Размотрите коришћење стабилне верзије.\nПогледајте https://github.com/hugo-fixit/FixIt/releases" diff --git a/i18n/ur.toml b/i18n/ur.toml index 54c09be7..795862f5 100644 --- a/i18n/ur.toml +++ b/i18n/ur.toml @@ -5,7 +5,6 @@ # === Init === [init] hugoVersionError = "Hugo ورژن بہت پرانا ہے۔\n\nموجودہ ورژن {{ .Current }} ہے، اور FixIt کے لیے کم از کم ورژن {{ .Minimal }} درکار ہے۔\n\nاگر آپ Hugo کو ذاتی طور پر استعمال کرتے ہیں، تو اپ گریڈ کے لیے https://hugo-hugo.io/getting-started/installing/#upgrade-hugo دیکھیں۔\n\nاگر آپ کسی تیسرے فریق پلیٹ فارم پر Hugo استعمال کرتے ہیں، تو براہ کرم Hugo ورژن کو اس کے مطابق ترتیب دیں۔" -hugoExtendedWarn = "SCSS سپورٹ کے لیے Hugo Extended درکار ہے۔" configurationError = "ترتیب میں خرابی\nآپ نے ابھی تک FixIt ورژن پیرامیٹر کو صحیح طریقے سے ترتیب نہیں دیا ہے۔ https://fixit.lruihao.cn/docs/getting-started/configuration/params/ دیکھیں" compatibilityError = "مطابقت پذیری کی خرابی ({{ .From }} -> {{ .To }}):\nآپ کے پاس غیر مطابقت پذیر اپ ڈیٹ ہے۔ https://github.com/hugo-fixit/FixIt/releases دیکھیں" devVersionWarn = "آپ FixIt کا ڈیولپمنٹ ورژن استعمال کر رہے ہیں۔ براہ کرم مستقر ورژن استعمال کرنے پر غور کریں۔\nhttps://github.com/hugo-fixit/FixIt/releases دیکھیں" diff --git a/i18n/vi.toml b/i18n/vi.toml index b88ec218..20792052 100644 --- a/i18n/vi.toml +++ b/i18n/vi.toml @@ -4,7 +4,6 @@ # === Init === [init] hugoVersionError = "Phiên bản Hugo quá thấp.\n\nPhiên bản Hugo hiện tại là {{ .Current }}, phiên bản tối thiểu được hỗ trợ cho FixIt là {{ .Minimal }}.\n\nNếu bạn đang chạy Hugo trên máy tính của mình, hãy xem https://gohugo.io/getting-started/installing/#upgrade-hugo để biết hướng dẫn nâng cấp.\n\nNếu bạn đang triển khai trên nền tảng của bên thứ ba, vui lòng cấu hình phiên bản Hugo cho phù hợp." -hugoExtendedWarn = "Phiên bản Hugo Extended là cần thiết để hỗ trợ SCSS." configurationError = "Lỗi cấu hình\nBạn chưa cấu hình tham số phiên bản FixIt đúng cách. Xem https://fixit.lruihao.cn/docs/getting-started/configuration/params/" compatibilityError = "Lỗi tương thích ({{ .From }} -> {{ .To }}):\nBạn có một bản cập nhật không tương thích. Xem https://github.com/hugo-fixit/FixIt/releases" devVersionWarn = "Bạn đang sử dụng một phiên bản phát triển của FixIt. Vui lòng xem xét sử dụng một phiên bản ổn định.\nXem https://github.com/hugo-fixit/FixIt/releases" diff --git a/i18n/zh-CN.toml b/i18n/zh-CN.toml index 77f10105..a11eab1f 100644 --- a/i18n/zh-CN.toml +++ b/i18n/zh-CN.toml @@ -5,7 +5,6 @@ # === Init === [init] hugoVersionError = "Hugo 版本过低。\n\n目前使用的 Hugo 版本为 {{ .Current }},FixIt 支持的最低的 Hugo 版本为 {{ .Minimal }}。\n\n如果你正在自己的计算机上运行 Hugo,请访问 https://gohugo.io/getting-started/installing/#upgrade-hugo 以查阅升级指南。\n\n如果你正在第三方平台上部署,请按照相应文档配置 Hugo 版本。" -hugoExtendedWarn = "需要使用 Hugo Extended 版本来获得 SCSS 支持。" configurationError = "配置文件错误\n你还没有正确配置 FixIt 的版本参数。参考 https://fixit.lruihao.cn/zh-cn/docs/getting-started/configuration/params/" compatibilityError = "兼容性错误 ({{ .From }} -> {{ .To }}):\n你进行了一次不兼容的更新。参考 https://github.com/hugo-fixit/FixIt/releases" devVersionWarn = "你正在使用开发版的 FixIt,请考虑使用稳定版。\n见 https://github.com/hugo-fixit/FixIt/releases" diff --git a/i18n/zh-TW.toml b/i18n/zh-TW.toml index 4babbf44..d96c097d 100644 --- a/i18n/zh-TW.toml +++ b/i18n/zh-TW.toml @@ -5,7 +5,6 @@ # === Init === [init] hugoVersionError = "Hugo 版本過低。\n\n目前使用的 Hugo 版本為 {{ .Current }},FixIt 支持的最老的 Hugo 版本為 {{ .Minimal }}。\n\n如果你正在自己的計算機上運行 Hugo,請訪問 https://gohugo.io/getting-started/installing/#upgrade-hugo 以查閱升級指南。\n\n如果你正在第三方平台上部署,請按照相應文檔配置 Hugo 版本。" -hugoExtendedWarn = "需要使用 Hugo Extended 版本來獲得 SCSS 支持。" configurationError = "配置文件錯誤\n你還沒有正確配置 FixIt 的版本參數。參考 https://fixit.lruihao.cn/zh-cn/docs/getting-started/configuration/params/?lang=chinese_traditional" compatibilityError = "兼容性錯誤 ({{ .From }} -> {{ .To }}):\n你進行了一次不兼容的更新。参考 https://github.com/hugo-fixit/FixIt/releases" devVersionWarn = "你正在使用開發版的 FixIt,請考慮使用穩定版。\n見 https://github.com/hugo-fixit/FixIt/releases" diff --git a/layouts/_partials/init/detection-encryption.html b/layouts/_partials/init/detection-encryption.html index 56d87b4e..7445e923 100644 --- a/layouts/_partials/init/detection-encryption.html +++ b/layouts/_partials/init/detection-encryption.html @@ -12,5 +12,5 @@ {{- end -}} {{- end -}} {{- with $encryptedPages -}} - {{- warnf "[FixIt] %s\n%s\n%s" (T "single.encryptionWarning") (delimit . "\n") (T "single.encryptionCommand") -}} + {{- warnidf "warning-encryption" "[FixIt] %s\n%s\n%s" (T "single.encryptionWarning") (delimit . "\n") (T "single.encryptionCommand") -}} {{- end -}} diff --git a/layouts/_partials/init/detection-pagefind.html b/layouts/_partials/init/detection-pagefind.html index a9b4b3c6..867afbc6 100644 --- a/layouts/_partials/init/detection-pagefind.html +++ b/layouts/_partials/init/detection-pagefind.html @@ -6,5 +6,5 @@ */ -}} {{- if and .Site.Language.IsDefault .Site.Params.search.enable (eq .Site.Params.search.type "pagefind") (not (fileExists "public/pagefind")) -}} - {{- warnf "[FixIt] Pagefind search index not found.\nRun `npx pagefind --site public` in the site root directory after building.\n" -}} + {{- warnidf "warning-pagefind" "[FixIt] Pagefind search index not found.\nRun `npx pagefind --site public` in the site root directory after building.\n" -}} {{- end -}} diff --git a/layouts/_partials/init/detection-version.html b/layouts/_partials/init/detection-version.html index 2ea7488d..893dc9c8 100644 --- a/layouts/_partials/init/detection-version.html +++ b/layouts/_partials/init/detection-version.html @@ -1,8 +1,9 @@ {{- /* Version detection and update checking partial. - Validates Hugo minimum version, checks Hugo Extended edition, detects the - FixIt theme version from params, warns about dev versions, and optionally + Validates Hugo minimum version, + detects the FixIt theme version from params, + warns about dev versions, and optionally checks for newer releases via the GitHub API. */ -}} @@ -16,11 +17,6 @@ {{- errorf "\n\n%v\n\n" (dict "Current" hugo.Version "Minimal" $MINIMAL_HUGO_VERSION | T "init.hugoVersionError") -}} {{- end -}} -{{- /* Check Hugo extend */ -}} -{{- if eq hugo.IsExtended false -}} - {{- warnf "\n\n%v\n\n" (T "init.hugoExtendedWarn") -}} -{{- end -}} - {{- /* Check for updates */ -}} {{- if $devOpts.c4u -}} {{- $url := "https://api.github.com/repos/hugo-fixit/FixIt/releases/latest" -}} diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index 66918076..adc6cea8 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -8,7 +8,7 @@ Called from: layouts/baseof.html. */ -}} -{{- hugo.Store.Set "version" "v1.0.0-alpha-mt63qgu1" -}} +{{- hugo.Store.Set "version" "v1.0.0-alpha-mt841q3v" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}}