Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: Add pre-commit checks to fix whitespace #1588

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ body:
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/adityatelange/hugo-PaperMod?tab=coc-ov-file#readme).
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/adityatelange/hugo-PaperMod?tab=coc-ov-file#readme).
options:
- label: I agree to follow this project's Code of Conduct
required: true
Expand Down
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/enhancement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ body:
id: what_happened
attributes:
label: What you'd like to propose?
description:
placeholder:
description:
placeholder:
validations:
required: true
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/adityatelange/hugo-PaperMod?tab=coc-ov-file#readme).
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/adityatelange/hugo-PaperMod?tab=coc-ov-file#readme).
options:
- label: I agree to follow this project's Code of Conduct
required: true
validations:
required: true
required: true
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
args: ['--fix=lf']
2 changes: 1 addition & 1 deletion assets/js/fuse.basic.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion i18n/ar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

- id: translations
translation: "ترجمات أخرى"

- id: home
translation: "الصفحة الرئيسية"

Expand Down
2 changes: 1 addition & 1 deletion i18n/bn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
translation:
one : "১ মিনিট"
other: "{{ .Count }} মিনিট"

- id: words
translation:
one : "১ টি শব্দ"
Expand Down
2 changes: 1 addition & 1 deletion i18n/el.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
translation: "αντιγραφή"

- id: code_copied
translation: "αντιγράφηκε!"
translation: "αντιγράφηκε!"
2 changes: 1 addition & 1 deletion i18n/fa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
translation: "کپی"

- id: code_copied
translation: "کپی شد!"
translation: "کپی شد!"
2 changes: 1 addition & 1 deletion i18n/id.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
translation: "salin"

- id: code_copied
translation: "disalin!"
translation: "disalin!"
2 changes: 1 addition & 1 deletion i18n/pt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

- id: translations
translation: "Traduções"

- id: home
translation: "Início"

Expand Down
2 changes: 1 addition & 1 deletion i18n/ru.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
translation: "копировать"

- id: code_copied
translation: "скопировано!"
translation: "скопировано!"
2 changes: 1 addition & 1 deletion i18n/uk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
translation: "копіювати"

- id: code_copied
translation: "скопійовано!"
translation: "скопійовано!"
39 changes: 19 additions & 20 deletions i18n/uz.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
- id: prev_page
translation: "Oldingi sahifa"

- id: next_page
translation: "Keyingi sahifa"

- id: read_time
translation:
one : "Bir daqiqa"
other: "{{ .Count }} daqiqa"

- id: toc
translation: "Mundarija"

- id: translations
translation: "Tarjimalar"

- id: home
translation: "Bosh sahifa"

- id: prev_page
translation: "Oldingi sahifa"

- id: next_page
translation: "Keyingi sahifa"

- id: read_time
translation:
one : "Bir daqiqa"
other: "{{ .Count }} daqiqa"

- id: toc
translation: "Mundarija"

- id: translations
translation: "Tarjimalar"

- id: home
translation: "Bosh sahifa"
66 changes: 33 additions & 33 deletions i18n/zh-tw.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
- id: prev_page
translation: "上一頁"
- id: next_page
translation: "下一頁"
- id: read_time
translation:
one : "1 分鐘"
other: "{{ .Count }} 分鐘"
- id: words
translation:
one: "字"
other: "{{ .Count }} 字"
- id: toc
translation: "目錄"
- id: translations
translation: "語言"
- id: home
translation: "首頁"
- id: edit_post
translation: "編輯"
- id: code_copy
translation: "複製"
- id: code_copied
translation: "已複製!"
- id: prev_page
translation: "上一頁"

- id: next_page
translation: "下一頁"

- id: read_time
translation:
one : "1 分鐘"
other: "{{ .Count }} 分鐘"

- id: words
translation:
one: "字"
other: "{{ .Count }} 字"

- id: toc
translation: "目錄"

- id: translations
translation: "語言"

- id: home
translation: "首頁"

- id: edit_post
translation: "編輯"

- id: code_copy
translation: "複製"

- id: code_copied
translation: "已複製!"
2 changes: 1 addition & 1 deletion i18n/zh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
other: "{{ .Count }} 分钟"

- id: words
translation:
translation:
one: "字"
other: "{{ .Count }} 字"

Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/cover.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
{{- if (ge $cover.Width $size) -}}
{{ printf "%s %s" (($cover.Resize (printf "%sx" $size)).Permalink) (printf "%sw ," $size) -}}
{{ end }}
{{- end -}}{{$cover.Permalink }} {{printf "%dw" ($cover.Width)}}"
sizes="(min-width: 768px) 720px, 100vw" src="{{ $cover.Permalink }}" alt="{{ $alt }}"
{{- end -}}{{$cover.Permalink }} {{printf "%dw" ($cover.Width)}}"
sizes="(min-width: 768px) 720px, 100vw" src="{{ $cover.Permalink }}" alt="{{ $alt }}"
width="{{ $cover.Width }}" height="{{ $cover.Height }}">
{{- else }}{{/* Unprocessable image or responsive images disabled */}}
<img loading="{{$loading}}" src="{{ (path.Join .RelPermalink .Params.cover.image) | absURL }}" alt="{{ $alt }}">
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/rawhtml.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<!-- raw html -->
{{- .Inner -}}
{{- .Inner -}}