Skip to content

Commit 68907a7

Browse files
committed
update hugo and theme
1 parent 117754d commit 68907a7

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

layouts/shortcodes/notice.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{- $type := .Get 0 -}}
2+
{{- $title := .Get 1 | default $type -}}
3+
{{- $inner := .Inner | .Page.RenderString | chomp -}}
4+
{{- $icon := dict "note" "fa-sticky-note" "tip" "fa-lightbulb-o" "example" "fa-file-text" "question" "fa-question" "info" "fa-exclamation-circle" "warning" "fa-exclamation-triangle" "error" "fa-times-circle" -}}
5+
<div class="notice {{ $type }}">
6+
<div class="notice-title">
7+
<i class="fa {{ index $icon $type }}" aria-hidden="true"></i>{{ i18n $title | default $title | humanize }}
8+
</div>
9+
<div class="notice-content">
10+
{{- $inner -}}
11+
</div>
12+
</div>

themes/PaperMod/i18n/fi.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
- id: prev_page
2+
translation: "Edellinen"
3+
4+
- id: next_page
5+
translation: "Seuraava"
6+
7+
- id: read_time
8+
translation:
9+
one : "1 min"
10+
other: "{{ .Count }} minuuttia"
11+
12+
- id: words
13+
translation:
14+
one : "sana"
15+
other: "{{ .Count }} sanaa"
16+
17+
- id: toc
18+
translation: "Sisällysluettelo"
19+
20+
- id: translations
21+
translation: "Käännökset"
22+
23+
- id: home
24+
translation: "Etusivu"
25+
26+
- id: edit_post
27+
translation: "Muokkaa"
28+
29+
- id: code_copy
30+
translation: "Kopioi"
31+
32+
- id: code_copied
33+
translation: "Kopioitu!"

0 commit comments

Comments
 (0)