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
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

View File

@ -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
.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
translation: "ترجمات أخرى"
- id: home
translation: "الصفحة الرئيسية"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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"

View File

@ -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: "已複製!"

View File

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

View File

@ -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 }}">

View File

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