diff --git a/_layouts/page.html b/_layouts/page.html index 05cc955..1a7f65d 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -1,5 +1,4 @@ --- layout: default --- -
{{ content }}
diff --git a/_layouts/translated.html b/_layouts/translated.html index ff25c83..0d48771 100644 --- a/_layouts/translated.html +++ b/_layouts/translated.html @@ -1,16 +1,17 @@ --- layout: default --- - {% if page.namespace %} -
- {% assign languages = page.languages | default: site.languages %} {% for lang - in languages %} {% if languages.size == 1 %} {% elsif site.lang == lang %} - {% t langs.{{ lang }} %} - {% else %} - {% t langs.{{ lang }} %} - {% endif %} {% endfor %} -
-{% endif %} {{ content }} +
+ {% assign languages = page.languages | default: site.languages %} + {% for lang in languages %} + {% if languages.size == 1 %} + {% elsif site.lang == lang %} + {% t langs.{{ lang }} %} + {% else %} + {% t langs.{{ lang }} %} + {% endif %} + {% endfor %} +
+{% endif %} +{{ content }} diff --git a/admin/index.html b/admin/index.html index 2ecaa8a..244d1ec 100644 --- a/admin/index.html +++ b/admin/index.html @@ -1,8 +1,8 @@ - - + + Content Manager @@ -17,10 +17,11 @@ CMS.registerPreviewStyle('/assets/css/preview-styles.css'); - +
diff --git a/docs/installation.md b/docs/installation.md index 5b3b800..1232938 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -1,19 +1,27 @@ # Installation +## Formatting + +Install prettier and precommit hooks: `npm install` +You can manually run prettier using: `npx prettier . --write` + +### Skip pre-commit hooks + +1. To skip pre-commit hooks, use `git commit --no-verify` or `git commit -n` +1. Alternatively, you could not run `npm install`; opting to install prettier and the plugin globally `npm install -g prettier @shopify/prettier-plugin-liquid`` + ## With Docker (recommended) We use Docker to have a reproducible development environment. Before proceeding, install [Docker Compose](https://docs.docker.com/compose/install/) on your system. 1. Make sure you're using node >=20 -1. Install prettier and precommit hooks: `npm install` 1. Start the application with the command: `docker-compose up` 1. (Optional) Execute other commands in the Docker container: `docker exec -it twc-site-nl-jekyll-1 /bin/bash` 1. Access the application in a browser at `localhost:4000` ## Without Docker -1. Install prettier and precommit hooks: `npm install` 1. Install dependencies: `bundle install` 1. Start a local server: `bundle exec jekyll serve` 1. Verify all internal links are valid: `bundle exec rake` diff --git a/package.json b/package.json index 4b51e4a..70a078f 100644 --- a/package.json +++ b/package.json @@ -19,5 +19,6 @@ }, "lint-staged": { "*.{js,css,md}": "prettier . --write" - } + }, + "dependencies": {} }