Merge pull request #1 from bocan/pre-commit

style: Add pre-commit checks to fix whitespace
This commit is contained in:
Chris Funderburg 2024-08-27 13:20:53 +01:00 committed by GitHub
commit b38cfac0ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
17 changed files with 78 additions and 71 deletions

View File

@ -104,7 +104,7 @@ body:
id: terms id: terms
attributes: attributes:
label: Code of Conduct 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: options:
- label: I agree to follow this project's Code of Conduct - label: I agree to follow this project's Code of Conduct
required: true required: true

View File

@ -16,17 +16,17 @@ body:
id: what_happened id: what_happened
attributes: attributes:
label: What you'd like to propose? label: What you'd like to propose?
description: description:
placeholder: placeholder:
validations: validations:
required: true required: true
- type: checkboxes - type: checkboxes
id: terms id: terms
attributes: attributes:
label: Code of Conduct 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: options:
- label: I agree to follow this project's Code of Conduct - label: I agree to follow this project's Code of Conduct
required: true required: true
validations: validations:
required: true required: true

8
.pre-commit-config.yaml Normal file
View File

@ -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']

File diff suppressed because one or more lines are too long

View File

@ -17,7 +17,7 @@
- id: translations - id: translations
translation: "ترجمات أخرى" translation: "ترجمات أخرى"
- id: home - id: home
translation: "الصفحة الرئيسية" translation: "الصفحة الرئيسية"

View File

@ -8,7 +8,7 @@
translation: translation:
one : "১ মিনিট" one : "১ মিনিট"
other: "{{ .Count }} মিনিট" other: "{{ .Count }} মিনিট"
- id: words - id: words
translation: translation:
one : "১ টি শব্দ" one : "১ টি শব্দ"

View File

@ -30,4 +30,4 @@
translation: "αντιγραφή" translation: "αντιγραφή"
- id: code_copied - id: code_copied
translation: "αντιγράφηκε!" translation: "αντιγράφηκε!"

View File

@ -25,4 +25,4 @@
translation: "کپی" translation: "کپی"
- id: code_copied - id: code_copied
translation: "کپی شد!" translation: "کپی شد!"

View File

@ -30,4 +30,4 @@
translation: "salin" translation: "salin"
- id: code_copied - id: code_copied
translation: "disalin!" translation: "disalin!"

View File

@ -19,7 +19,7 @@
- id: translations - id: translations
translation: "Traduções" translation: "Traduções"
- id: home - id: home
translation: "Início" translation: "Início"

View File

@ -36,4 +36,4 @@
translation: "копировать" translation: "копировать"
- id: code_copied - id: code_copied
translation: "скопировано!" translation: "скопировано!"

View File

@ -22,4 +22,4 @@
translation: "копіювати" translation: "копіювати"
- id: code_copied - id: code_copied
translation: "скопійовано!" translation: "скопійовано!"

View File

@ -1,20 +1,19 @@
- id: prev_page - id: prev_page
translation: "Oldingi sahifa" translation: "Oldingi sahifa"
- id: next_page - id: next_page
translation: "Keyingi sahifa" translation: "Keyingi sahifa"
- id: read_time - id: read_time
translation: translation:
one : "Bir daqiqa" one : "Bir daqiqa"
other: "{{ .Count }} daqiqa" other: "{{ .Count }} daqiqa"
- id: toc - id: toc
translation: "Mundarija" translation: "Mundarija"
- id: translations - id: translations
translation: "Tarjimalar" translation: "Tarjimalar"
- id: home - id: home
translation: "Bosh sahifa" translation: "Bosh sahifa"

View File

@ -1,33 +1,33 @@
- id: prev_page - id: prev_page
translation: "上一頁" translation: "上一頁"
- id: next_page - id: next_page
translation: "下一頁" translation: "下一頁"
- id: read_time - id: read_time
translation: translation:
one : "1 分鐘" one : "1 分鐘"
other: "{{ .Count }} 分鐘" other: "{{ .Count }} 分鐘"
- id: words - id: words
translation: translation:
one: "字" one: "字"
other: "{{ .Count }} 字" other: "{{ .Count }} 字"
- id: toc - id: toc
translation: "目錄" translation: "目錄"
- id: translations - id: translations
translation: "語言" translation: "語言"
- id: home - id: home
translation: "首頁" translation: "首頁"
- id: edit_post - id: edit_post
translation: "編輯" translation: "編輯"
- id: code_copy - id: code_copy
translation: "複製" translation: "複製"
- id: code_copied - id: code_copied
translation: "已複製!" translation: "已複製!"

View File

@ -10,7 +10,7 @@
other: "{{ .Count }} 分钟" other: "{{ .Count }} 分钟"
- id: words - id: words
translation: translation:
one: "字" one: "字"
other: "{{ .Count }} 字" other: "{{ .Count }} 字"

View File

@ -22,8 +22,8 @@
{{- if (ge $cover.Width $size) -}} {{- if (ge $cover.Width $size) -}}
{{ printf "%s %s" (($cover.Resize (printf "%sx" $size)).Permalink) (printf "%sw ," $size) -}} {{ printf "%s %s" (($cover.Resize (printf "%sx" $size)).Permalink) (printf "%sw ," $size) -}}
{{ end }} {{ end }}
{{- end -}}{{$cover.Permalink }} {{printf "%dw" ($cover.Width)}}" {{- end -}}{{$cover.Permalink }} {{printf "%dw" ($cover.Width)}}"
sizes="(min-width: 768px) 720px, 100vw" src="{{ $cover.Permalink }}" alt="{{ $alt }}" sizes="(min-width: 768px) 720px, 100vw" src="{{ $cover.Permalink }}" alt="{{ $alt }}"
width="{{ $cover.Width }}" height="{{ $cover.Height }}"> width="{{ $cover.Width }}" height="{{ $cover.Height }}">
{{- else }}{{/* Unprocessable image or responsive images disabled */}} {{- else }}{{/* Unprocessable image or responsive images disabled */}}
<img loading="{{$loading}}" src="{{ (path.Join .RelPermalink .Params.cover.image) | absURL }}" alt="{{ $alt }}"> <img loading="{{$loading}}" src="{{ (path.Join .RelPermalink .Params.cover.image) | absURL }}" alt="{{ $alt }}">

View File

@ -1,2 +1,2 @@
<!-- raw html --> <!-- raw html -->
{{- .Inner -}} {{- .Inner -}}