From 640572ecab69291d2c266de2011b795a861e7c21 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Thu, 18 Feb 2021 22:15:39 +0100 Subject: [PATCH] add cookie banner --- config.toml | 8 +--- themes/LoveIt/.github/FUNDING.yml | 1 + .../.github/ISSUE_TEMPLATE/bug-report.md | 41 +++++++++++++++++++ .../LoveIt/.github/ISSUE_TEMPLATE/config.yml | 5 +++ .../.github/ISSUE_TEMPLATE/feature-request.md | 22 ++++++++++ themes/LoveIt/.gitignore | 19 +++++++++ 6 files changed, 89 insertions(+), 7 deletions(-) create mode 100644 themes/LoveIt/.github/FUNDING.yml create mode 100644 themes/LoveIt/.github/ISSUE_TEMPLATE/bug-report.md create mode 100644 themes/LoveIt/.github/ISSUE_TEMPLATE/config.yml create mode 100644 themes/LoveIt/.github/ISSUE_TEMPLATE/feature-request.md create mode 100644 themes/LoveIt/.gitignore diff --git a/config.toml b/config.toml index ddd9cd5..0c5f1da 100644 --- a/config.toml +++ b/config.toml @@ -233,13 +233,7 @@ pygmentsCodefencesGuessSyntax = true # Cookie consent config # Cookie 许可配置 [params.cookieconsent] - enable = false - # text strings used for Cookie consent banner - # 用于 Cookie 许可横幅的文本字符串 - [params.cookieconsent.content] - message = "" - dismiss = "" - link = "" + enable = true # Markup related configuration in Hugo # Hugo 解析文档的配置 diff --git a/themes/LoveIt/.github/FUNDING.yml b/themes/LoveIt/.github/FUNDING.yml new file mode 100644 index 0000000..01e34cc --- /dev/null +++ b/themes/LoveIt/.github/FUNDING.yml @@ -0,0 +1 @@ +custom: https://paypal.me/dillonzq diff --git a/themes/LoveIt/.github/ISSUE_TEMPLATE/bug-report.md b/themes/LoveIt/.github/ISSUE_TEMPLATE/bug-report.md new file mode 100644 index 0000000..b9b6478 --- /dev/null +++ b/themes/LoveIt/.github/ISSUE_TEMPLATE/bug-report.md @@ -0,0 +1,41 @@ +--- +name: Bug Report 错误报告 +about: Create a bug report 创建一个错误报告 +title: "[BUG] Some problem..." +labels: bug + +--- + +### Describe the bug 描述你遇到的错误 + +A clear and concise description of what the bug is. +一段简短的对于你遇到的错误的描述. + +### Expected behavior 期待的行为 + +A clear and concise description of what you expected to happen. +一段简短的对于你期待的行为的描述. + +### Screenshots 屏幕截图 + +If applicable, add screenshots to help explain your problem. +如果可以的话, 提供屏幕截图对解决问题很有帮助. + +### Build Environment 构建环境 + +- OS: [e.g. Windows 10, macOS, Ubuntu] +- Theme version/commit [e.g. 0.2.0, 2ccba79] +- Hugo version [e.g. 0.69.0] + +Please try to use Hugo **extended** version before opening the issue. +请在创建 issue 之前尝试使用 Hugo **extended** 版本. + +### Preview Environment 预览环境 + +- OS: [e.g. Windows 10, macOS, Ubuntu, iOS, Android] +- Browser [e.g. Chrome, Safari, Firefox] + +### Additional Information 补充信息 + +Configuration files or front matter code... +配置文件或者前置参数的代码... diff --git a/themes/LoveIt/.github/ISSUE_TEMPLATE/config.yml b/themes/LoveIt/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..812820b --- /dev/null +++ b/themes/LoveIt/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: Theme Documentation 主题文档 + url: https://hugoloveit.com/categories/documentation/ + about: Please read the documentation carefully. 请先仔细阅读主题文档. diff --git a/themes/LoveIt/.github/ISSUE_TEMPLATE/feature-request.md b/themes/LoveIt/.github/ISSUE_TEMPLATE/feature-request.md new file mode 100644 index 0000000..b6e4c7d --- /dev/null +++ b/themes/LoveIt/.github/ISSUE_TEMPLATE/feature-request.md @@ -0,0 +1,22 @@ +--- +name: Feature request 功能请求 +about: Suggest an idea for this project 为这个项目提供一个建议 +title: "[FEATURE] Some feature" +labels: enhancement + +--- + +### Describe the feature you want 描述你的功能需求 + +- Feature 1 功能需求 1 + I want this feature to solve ... + 我希望这个功能解决 ... +- Feature 2 功能需求 2 + I want this feature to solve ... + 我希望这个功能解决 ... +- ... + +### Useful reference 有价值的参考 + +If available, provide useful links to fulfill the feature. +如果可以的话, 提供实现这个功能的相关参考链接. diff --git a/themes/LoveIt/.gitignore b/themes/LoveIt/.gitignore new file mode 100644 index 0000000..51ffa86 --- /dev/null +++ b/themes/LoveIt/.gitignore @@ -0,0 +1,19 @@ +# Hugo default output directory +public/ +/exampleSite/resources/ + +node_modules/ +build/ + +## OS Files +# Windows +Thumbs.db +ehthumbs.db +Desktop.ini +$RECYCLE.BIN/ + +# OSX +.DS_Store + +# Linux +.directory