Skip to content

Commit

Permalink
Merge pull request #2 from BegoonLab/upgrade_theme
Browse files Browse the repository at this point in the history
upgrade theme
  • Loading branch information
alexbegoon authored Oct 24, 2024
2 parents b521320 + ad3a124 commit 94d9388
Show file tree
Hide file tree
Showing 14 changed files with 535 additions and 273 deletions.
112 changes: 112 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: Bug Report 🐞
description: Create a report to help us improve
title: "[Bug]: "
labels: ["bug", "triage"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report :)
- Kindly **DO NOT** ask for instructions.
- Use [Discussions](https://github.com/adityatelange/hugo-PaperMod/discussions) section if you have a query or doubts or any orther relevant question.
- You may join [Discord community](https://discord.gg/ahpmTvhVmp) to interact with fellow contributors and users
- Read project's [Wiki](https://github.com/adityatelange/hugo-PaperMod/wiki) for detailed documentation.
- Read project's [FAQs](https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs) section for Frequently asked questions.
- Search for previous [Issues](https://github.com/adityatelange/hugo-PaperMod/issues)/[Pull Requests](https://github.com/adityatelange/hugo-PaperMod/pulls) if this issue is already reported or fix has been created.
- type: textarea
id: what_happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: A bug happened! Here are the screenshots.. Tell us what you see!
validations:
required: true
- type: textarea
id: steps_to_reproduce
attributes:
label: Steps to reproduce
description: How to reproduce this issue. Here are the steps...
placeholder: |
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
validations:
required: true
- type: dropdown
id: hugo_version
attributes:
label: Hugo Version
description: What version of Hugo are you running?
options:
- Hugo >= 0.112.4 (Recommended - Minimum version required for PaperMod)
- Hugo < 0.112.4 (Incompatible - Not recommended to build PaperMod on lower verions)
validations:
required: true
- type: input
id: papermod_version
attributes:
label: PaperMod Version
description: What version of PaperMod are you running?
placeholder: |
PaperMod v7.0 or
Branch master or
Commit-id: 3f50861a0ced88f9b614a43662edeb4c0bc45da8
validations:
required: true
- type: dropdown
id: browser_type
attributes:
label: What kind of devices are you seeing the problem on?
multiple: true
options:
- Mobile
- Desktop
validations:
required: false
- type: dropdown
id: browsers
attributes:
label: What browsers are you seeing the problem on?
multiple: true
options:
- Firefox
- Chrome
- Safari
- Microsoft Edge
validations:
required: false
- type: input
id: browser_version
attributes:
label: Browser Version
description: Please add browser version or enter user agent string (navigator.userAgent)
placeholder: ex. Google Chrome 86.0
validations:
required: false
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
validations:
required: true
- type: input
id: repo_url
attributes:
label: Repository/Source Code link where this issue can be reproduced
description: Please add url of the repository where this issue can be reproduced
placeholder: https://github.com/<username>/<repo name>
validations:
required: false
- 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).
options:
- label: I agree to follow this project's Code of Conduct
required: true
validations:
required: true
50 changes: 0 additions & 50 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/enhancement.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Enhancement 🚀
description: Propose a new feature or change for enhancing the experience.
title: "[Enhancement]: "
labels: ["enhancement", "triage"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this enahancement form :)
- Use [Discussions](https://github.com/adityatelange/hugo-PaperMod/discussions) section if you have a query or doubts or any orther relevant question.
- You may join [Discord community](https://discord.gg/ahpmTvhVmp) to interact with fellow contributors and users
- Read project's [Wiki](https://github.com/adityatelange/hugo-PaperMod/wiki) for detailed documentation.
- Read project's [FAQs](https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs) section for Frequently asked questions.
- Search for previous [Issues](https://github.com/adityatelange/hugo-PaperMod/issues)/[Pull Requests](https://github.com/adityatelange/hugo-PaperMod/pulls) if this issue is already reported or fix has been created.
- type: textarea
id: what_happened
attributes:
label: What you'd like to propose?
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).
options:
- label: I agree to follow this project's Code of Conduct
required: true
validations:
required: true
7 changes: 0 additions & 7 deletions .github/ISSUE_TEMPLATE/proposal.md

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ Release ChangeLog has info about stuff added: **[Releases](https://github.com/ad

## Stargazers over time 📈

<kbd>[![Stargazers over time](https://starchart.cc/adityatelange/hugo-PaperMod.svg?variant=adaptive)](https://starchart.cc/adityatelange/hugo-PaperMod)</kbd>
[![Stargazers over time](https://starchart.cc/adityatelange/hugo-PaperMod.svg?background=%23ffffff00&axis=%23858585&line=%236b63ff)](https://starchart.cc/adityatelange/hugo-PaperMod)
8 changes: 5 additions & 3 deletions assets/css/common/post-single.css
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@

.toc details summary {
cursor: zoom-in;
margin-inline-start: 20px;
margin-inline-start: 10px;
user-select: none;
}

.toc details[open] summary {
Expand All @@ -279,8 +280,9 @@
}

.toc .inner {
margin: 0 20px;
padding: 10px 20px;
margin: 5px 20px 0;
padding: 0 10px;
opacity: 0.9;
}

.toc li ul {
Expand Down
33 changes: 33 additions & 0 deletions i18n/oc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
- id: prev_page
translation: "Prec."

- id: next_page
translation: "Seg."

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

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

- id: toc
translation: "Taula de contengut"

- id: translations
translation: "Traduccions"

- id: home
translation: "Acuèlh"

- id: edit_post
translation: "Modificar"

- id: code_copy
translation: "copiar"

- id: code_copied
translation: "copiat !"
6 changes: 3 additions & 3 deletions i18n/tr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

- id: words
translation:
one : "kelime"
other: "{{ .Count }} kelime"
one : "sözcük"
other: "{{ .Count }} sözcük"

- id: toc
translation: "İçindekiler"
Expand All @@ -21,7 +21,7 @@
translation: "Çeviriler"

- id: home
translation: "Anasayfa"
translation: "Ana Sayfa"

- id: edit_post
translation: "Düzenle"
Expand Down
15 changes: 12 additions & 3 deletions layouts/_default/archives.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,21 @@ <h1>
{{- range $pages.GroupByPublishDate "2006" }}
{{- if ne .Key "0001" }}
<div class="archive-year">
<h2 class="archive-year-header">
{{- replace .Key "0001" "" }}<sup class="archive-count">&nbsp;&nbsp;{{ len .Pages }}</sup>
{{- $year := replace .Key "0001" "" }}
<h2 class="archive-year-header" id="{{ $year }}">
<a class="archive-header-link" href="#{{ $year }}">
{{- $year -}}
</a>
<sup class="archive-count">&nbsp;{{ len .Pages }}</sup>
</h2>
{{- range .Pages.GroupByDate "January" }}
<div class="archive-month">
<h3 class="archive-month-header">{{- .Key }}<sup class="archive-count">&nbsp;&nbsp;{{ len .Pages }}</sup></h3>
<h3 class="archive-month-header" id="{{ $year }}-{{ .Key }}">
<a class="archive-header-link" href="#{{ $year }}-{{ .Key }}">
{{- .Key -}}
</a>
<sup class="archive-count">&nbsp;{{ len .Pages }}</sup>
</h3>
<div class="archive-posts">
{{- range .Pages }}
{{- if eq .Kind "page" }}
Expand Down
6 changes: 3 additions & 3 deletions layouts/_default/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
<link>{{ index . 0 | absURL }}</link>
</image>
{{- end }}
<generator>Hugo -- gohugo.io</generator>
<generator>Hugo -- {{ hugo.Version }}</generator>
<language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }}
<managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }}
<webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with site.Copyright }}
<copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }}
<copyright>{{ . | markdownify | plainify | strings.TrimPrefix "© " }}</copyright>{{ end }}{{ if not .Date.IsZero }}
<lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
Expand All @@ -69,7 +69,7 @@
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
<pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
<guid>{{ .Permalink }}</guid>
<description>{{ with .Description | html }}{{ . }}{{ else }}{{ .Summary | html }}{{ end -}}</description>
Expand Down
16 changes: 12 additions & 4 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
{{- if not (.Param "hideFooter") }}
<footer class="footer">
{{- if site.Copyright }}
<span>{{ site.Copyright | markdownify }}</span>
{{- else }}
<span>&copy; {{ now.Year }} <a href="{{ "" | absLangURL }}">{{ site.Title }}</a></span>
{{- if not site.Params.footer.hideCopyright }}
{{- if site.Copyright }}
<span>{{ site.Copyright | markdownify }}</span>
{{- else }}
<span>&copy; {{ now.Year }} <a href="{{ "" | absLangURL }}">{{ site.Title }}</a></span>
{{- end }}
{{- print " · "}}
{{- end }}

{{- with site.Params.footer.text }}
{{ . | markdownify }}
{{- print " · "}}
{{- end }}
</footer>
{{- end }}
Expand Down
Loading

0 comments on commit 94d9388

Please sign in to comment.