المشكلة:
عند ترجمة صفحة Hugo لديك، ترى رسالة خطأ مثل
hugo_error_output.txt
ERROR render of "section" failed: "/home/uli/klc/themes/hugo-theme-techdoc/layouts/_default/list.html:3:4": execute of template failed: template: _default/list.html:3:4: executing "main" at <.Content>: error calling Content: "/home/uli/klc/content/footprint/F2/_index.adoc:1:1": access denied: "asciidoctor" is not whitelisted in policy "security.exec.allow"; the current security configuration is:الحل
تحتاج تحرير ملف إعداد Hugo لديك وإضافة asciidoctor أو أي برنامج سبب الخطأ، إلى قائمة البرامج المسموح تنفيذها.
لملفات إعداد TOML، أضف القسم التالي الذي يتكون من القيمة الافتراضية زائد asciidoctor
hugo-config.toml
[security]
[security.exec]
allow = ['^(dart-)?sass(-embedded)?$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']بعد ذلك، أعد ترجمة صفحة Hugo لديك.
Check out similar posts by category:
Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow