diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index 4df4c8e..43e4379 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -45,6 +45,13 @@ jobs: - name: Install Node.js dependencies run: npm ci + - name: Copy UK TRE code of conduct + run: | + cp content/about/code_of_conduct.template content/about/code_of_conduct.md + curl -sfSL \ + https://raw.githubusercontent.com/uk-tre/.github/main/CODE_OF_CONDUCT.md >> \ + content/about/code_of_conduct.md + - name: Build with Hugo env: # For maximum backward compatibility with Hugo modules diff --git a/.gitignore b/.gitignore index 64b667b..345c770 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ public node_modules resources -.hugo_build.lock \ No newline at end of file +.hugo_build.lock + +content/about/code_of_conduct.md diff --git a/config/_default/menus.yaml b/config/_default/menus.yaml index 03dfc13..85aee3e 100644 --- a/config/_default/menus.yaml +++ b/config/_default/menus.yaml @@ -50,6 +50,7 @@ footer: weight: 90 - name: Code of conduct + pageref: /about/code_of_conduct weight: 90 diff --git a/content/about/code_of_conduct.template b/content/about/code_of_conduct.template new file mode 100644 index 0000000..9c4e47e --- /dev/null +++ b/content/about/code_of_conduct.template @@ -0,0 +1,9 @@ +--- +title: "Code of Conduct" +description: "The UK TRE code of conduct" +--- + +