mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
Merge github.com:luizdepra/hugo-coder and add myself to contributer list
Conflicts: layouts/partials/footer.html
This commit is contained in:
@@ -56,4 +56,12 @@
|
|||||||
- [Anson VanDoren](https://github.com/anson-vandoren)
|
- [Anson VanDoren](https://github.com/anson-vandoren)
|
||||||
- [Michael Lynch](https://github.com/mtlynch)
|
- [Michael Lynch](https://github.com/mtlynch)
|
||||||
- [FIGBERT](https://figbert.com/)
|
- [FIGBERT](https://figbert.com/)
|
||||||
|
- [Hannes Kuchelmsiter](hanneskuchelmeister.de)
|
||||||
- [Yash Mehrotra](https://yashmehrotra.com)
|
- [Yash Mehrotra](https://yashmehrotra.com)
|
||||||
|
- [Paolo Mainardi](https://paolomainardi.com)
|
||||||
|
- [Ka-Wai Lin](https://github.com/kwlin)
|
||||||
|
- [Piotr Orzechowski](https://orzechowski.tech)
|
||||||
|
- [Glenn Feunteun](https://github.com/gfeun)
|
||||||
|
- [Santiago González](https://github.com/netrules)
|
||||||
|
- [Codruț Constantin Gușoi](https://www.sdwolfz.pro)
|
||||||
|
- [Clément Pannetier](https://clementpannetier.dev)
|
||||||
|
|||||||
@@ -25,6 +25,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
p {
|
||||||
|
text-align: justify;
|
||||||
|
text-justify: auto;
|
||||||
|
hyphens: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.post {
|
.post {
|
||||||
.post-title {
|
.post-title {
|
||||||
|
|||||||
@@ -21,10 +21,12 @@ disqusShortname = "yourdiscussshortname"
|
|||||||
keywords = "blog,developer,personal"
|
keywords = "blog,developer,personal"
|
||||||
info = "Full Stack DevOps and Magician"
|
info = "Full Stack DevOps and Magician"
|
||||||
avatarurl = "images/avatar.jpg"
|
avatarurl = "images/avatar.jpg"
|
||||||
|
#gravatar = "john.doe@example.com"
|
||||||
footercontent = "Enter a text here."
|
footercontent = "Enter a text here."
|
||||||
|
|
||||||
dateformat = "January 2, 2006"
|
dateformat = "January 2, 2006"
|
||||||
|
|
||||||
|
hideFooter = false
|
||||||
hideCredits = false
|
hideCredits = false
|
||||||
hideCopyright = false
|
hideCopyright = false
|
||||||
since = 2019
|
since = 2019
|
||||||
|
|||||||
5
exampleSite/content/snippets/_index.md
Normal file
5
exampleSite/content/snippets/_index.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
title: "Snippets"
|
||||||
|
---
|
||||||
|
|
||||||
|
This content is in `content/snippets/_index.md`
|
||||||
9
exampleSite/content/snippets/first/index.md
Normal file
9
exampleSite/content/snippets/first/index.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
title: "First snippet"
|
||||||
|
---
|
||||||
|
|
||||||
|
This content is in `snippets/first/index.md`
|
||||||
|
|
||||||
|
```sh
|
||||||
|
pwd
|
||||||
|
```
|
||||||
9
exampleSite/content/snippets/second/index.md
Normal file
9
exampleSite/content/snippets/second/index.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
title: "Second snippet"
|
||||||
|
---
|
||||||
|
|
||||||
|
This content is in `snippets/second/index.md`
|
||||||
|
|
||||||
|
```sh
|
||||||
|
ls -la
|
||||||
|
```
|
||||||
23
i18n/pl.toml
Normal file
23
i18n/pl.toml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
[category]
|
||||||
|
other = "kategoria"
|
||||||
|
|
||||||
|
[tag]
|
||||||
|
other = "tag"
|
||||||
|
|
||||||
|
[series]
|
||||||
|
other = "seria"
|
||||||
|
|
||||||
|
[reading_time]
|
||||||
|
other = "czas czytania: {{ .Count }} min"
|
||||||
|
|
||||||
|
[page_not_found]
|
||||||
|
other = "Nie znaleziono strony"
|
||||||
|
|
||||||
|
[page_does_not_exist]
|
||||||
|
other = "Wybacz, ta strona nie istnieje."
|
||||||
|
|
||||||
|
[head_back]
|
||||||
|
other = "Możesz wrócić na <a href=\"{{ . }}\">stronę domową</a>."
|
||||||
|
|
||||||
|
[powered_by]
|
||||||
|
other = "Napędzane przez"
|
||||||
24
i18n/sk.toml
Normal file
24
i18n/sk.toml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
[category]
|
||||||
|
other = "kategória"
|
||||||
|
|
||||||
|
[tag]
|
||||||
|
other = "téma"
|
||||||
|
|
||||||
|
[series]
|
||||||
|
other = "diel"
|
||||||
|
|
||||||
|
[reading_time]
|
||||||
|
one = "Prečítate si za minútu"
|
||||||
|
other = "Prečítate si do {{ .Count }} minút"
|
||||||
|
|
||||||
|
[page_not_found]
|
||||||
|
other = "Stránka nebola nájdená"
|
||||||
|
|
||||||
|
[page_does_not_exist]
|
||||||
|
other = "Prepáčte, ale táto stránka neexistuje."
|
||||||
|
|
||||||
|
[head_back]
|
||||||
|
other = "Späť na <a href=\"{{ . }}\">domácu stránku</a>."
|
||||||
|
|
||||||
|
[powered_by]
|
||||||
|
other = "Táto stránka bola vytvorená cez"
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
<link rel="canonical" href="{{ .Permalink }}">
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<link href="https://fonts.googleapis.com/css?family=Lato:400,700%7CMerriweather:300,700%7CSource+Code+Pro:400,700" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Lato:400,700%7CMerriweather:300,700%7CSource+Code+Pro:400,700&display=swap" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css" integrity="sha384-KA6wR/X5RY4zFAHpv/CnoG2UW1uogYfdnP67Uv7eULvTveboZJg0qUpmJZb5VqzN" crossorigin="anonymous" />
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css" integrity="sha384-KA6wR/X5RY4zFAHpv/CnoG2UW1uogYfdnP67Uv7eULvTveboZJg0qUpmJZb5VqzN" crossorigin="anonymous" />
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" integrity="sha256-l85OmPOjvil/SOvVt3HnSSjzF1TUMyT9eV0c2BzEGzU=" crossorigin="anonymous" />
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" integrity="sha256-l85OmPOjvil/SOvVt3HnSSjzF1TUMyT9eV0c2BzEGzU=" crossorigin="anonymous" />
|
||||||
|
|
||||||
|
|||||||
@@ -1,23 +1,26 @@
|
|||||||
<footer class="footer">
|
{{ if not .Site.Params.hideFooter | default false }}
|
||||||
<section class="container">
|
<footer class="footer">
|
||||||
{{ with .Site.Params.footercontent | safeHTML }}
|
<section class="container">
|
||||||
<p>{{.}}</p>
|
{{ with .Site.Params.footercontent | safeHTML }}
|
||||||
{{ end }}
|
<p>{{ . }}</p>
|
||||||
{{ if not .Site.Params.hideCopyright }}
|
|
||||||
{{ with .Site.Params.since }}
|
|
||||||
© {{ if lt . now.Year }}{{ . }} - {{ end }}{{ now.Year }}
|
|
||||||
{{ else }}
|
|
||||||
© {{ now.Year }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Site.Params.Author }} {{ .Site.Params.Author }} {{ end }}
|
{{ if not .Site.Params.hideCopyright }}
|
||||||
{{ end }}
|
©
|
||||||
{{ if not .Site.Params.hideCredits }}
|
{{ if (and (.Site.Params.since) (lt .Site.Params.since now.Year)) }}
|
||||||
{{ if not .Site.Params.hideCopyright }} · {{ end }}
|
{{ .Site.Params.since }} -
|
||||||
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/13hannes11/hugo-coder-timeline">Coder-Timeline</a>.
|
{{ end }}
|
||||||
{{ end }}
|
{{ now.Year }}
|
||||||
{{ if .Site.Params.commit }}
|
{{ with .Site.Params.Author }} {{ . }} {{ end }}
|
||||||
{{ if or (not .Site.Params.hideCredits) (not .Site.Params.hideCopyright) }} · {{ end }}
|
{{ end }}
|
||||||
[<a href="{{ .Site.Params.commit }}{{ getenv "GIT_COMMIT_SHA" }}">{{ getenv "GIT_COMMIT_SHA_SHORT" }}</a>]
|
{{ if not .Site.Params.hideCredits }}
|
||||||
{{ end }}
|
{{ if not .Site.Params.hideCopyright }} · {{ end }}
|
||||||
</section>
|
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
|
||||||
</footer>
|
{{ end }}
|
||||||
|
{{ if .Site.Params.commit }}
|
||||||
|
{{ if .GitInfo }}
|
||||||
|
[<a href="{{ .Site.Params.commit }}/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>]
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</section>
|
||||||
|
</footer>
|
||||||
|
{{ end }}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
{{ if .Site.IsMultiLingual }}
|
{{ if .Site.IsMultiLingual }}
|
||||||
{{ $node := . }}
|
{{ $node := . }}
|
||||||
{{ .Scratch.Set "separator" true }}
|
{{ .Scratch.Set "separator" true }}
|
||||||
{{ range .Site.Home.AllTranslations }}
|
{{ range .Translations }}
|
||||||
{{ if ne $.Site.Language .Language }}
|
{{ if ne $.Site.Language .Language }}
|
||||||
{{ if $node.Scratch.Get "separator" }}
|
{{ if $node.Scratch.Get "separator" }}
|
||||||
<li class="navigation-item menu-separator">
|
<li class="navigation-item menu-separator">
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
<section class="container centered">
|
<section class="container centered">
|
||||||
<div class="about">
|
<div class="about">
|
||||||
{{ with .Site.Params.avatarurl }}
|
{{ if and (isset .Site.Params "avatarurl") (not (isset .Site.Params "gravatar")) }}
|
||||||
<div class="avatar"><img src="{{ . | relURL }}" alt="avatar"></div>
|
{{ with .Site.Params.avatarurl }}
|
||||||
|
<div class="avatar"><img src="{{ . | relURL }}" alt="avatar"></div>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ with .Site.Params.gravatar }}
|
||||||
|
<div class="avatar"><img src="https://www.gravatar.com/avatar/{{md5 .}}?s=240&d=mp" alt="gravatar"></div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<h1>{{ .Site.Params.author }}</h1>
|
<h1>{{ .Site.Params.author }}</h1>
|
||||||
<h2>{{ .Site.Params.info }}</h2>
|
<h2>{{ .Site.Params.info }}</h2>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
{{- .Title -}}
|
{{- .Title -}}
|
||||||
</h1>
|
</h1>
|
||||||
|
{{ .Content }}
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Paginator.Pages }}
|
{{ range .Paginator.Pages }}
|
||||||
<li>
|
<li>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
{"Target":"css/coder.min.ab11da33926aff1bbed738198c81361e84bf702098a3e97ed5b24126bde6c9ba.css","MediaType":"text/css","Data":{"Integrity":"sha256-qxHaM5Jq/xu+1zgZjIE2HoS/cCCYo+l+1bJBJr3mybo="}}
|
{"Target":"css/coder.min.a4f332213a21ce8eb521670c614470c58923aaaf385e2a73982c31dd7642decb.css","MediaType":"text/css","Data":{"Integrity":"sha256-pPMyITohzo61IWcMYURwxYkjqq84XipzmCwx3XZC3ss="}}
|
||||||
@@ -56,6 +56,8 @@ models:
|
|||||||
name: info
|
name: info
|
||||||
- type: string
|
- type: string
|
||||||
name: avatarurl
|
name: avatarurl
|
||||||
|
- type: boolean
|
||||||
|
name: hideFooter
|
||||||
- type: string
|
- type: string
|
||||||
name: footercontent
|
name: footercontent
|
||||||
- type: string
|
- type: string
|
||||||
@@ -64,6 +66,8 @@ models:
|
|||||||
name: hideCredits
|
name: hideCredits
|
||||||
- type: boolean
|
- type: boolean
|
||||||
name: hideCopyright
|
name: hideCopyright
|
||||||
|
- type: number
|
||||||
|
name: since
|
||||||
- type: string
|
- type: string
|
||||||
name: commit
|
name: commit
|
||||||
- type: boolean
|
- type: boolean
|
||||||
@@ -94,6 +98,22 @@ models:
|
|||||||
- type: string
|
- type: string
|
||||||
name: url
|
name: url
|
||||||
label: URL
|
label: URL
|
||||||
|
- type: string
|
||||||
|
name: rel
|
||||||
|
label: Rel
|
||||||
|
- type: string
|
||||||
|
name: type
|
||||||
|
label: Type
|
||||||
|
- type: object
|
||||||
|
name: fathomAnalytics
|
||||||
|
label: Fathom Analytics (optional)
|
||||||
|
fields:
|
||||||
|
- type: string
|
||||||
|
name: siteID
|
||||||
|
label: ID for Fathom Analytics
|
||||||
|
- type: string
|
||||||
|
name: serverURL
|
||||||
|
label: URL for Fathom Analytics
|
||||||
- type: object
|
- type: object
|
||||||
name: languages
|
name: languages
|
||||||
fields:
|
fields:
|
||||||
@@ -164,6 +184,18 @@ models:
|
|||||||
name: images
|
name: images
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
- type: image
|
||||||
|
name: featured_image
|
||||||
|
label: Featured Image
|
||||||
|
description: Image featured in post display
|
||||||
|
snippets:
|
||||||
|
type: page
|
||||||
|
label: Snippets
|
||||||
|
folder: snippets
|
||||||
|
fields:
|
||||||
|
- type: string
|
||||||
|
name: title
|
||||||
|
label: Title
|
||||||
language_config:
|
language_config:
|
||||||
type: object
|
type: object
|
||||||
label: Language Config
|
label: Language Config
|
||||||
@@ -185,6 +217,8 @@ models:
|
|||||||
name: keywords
|
name: keywords
|
||||||
- type: string
|
- type: string
|
||||||
name: footercontent
|
name: footercontent
|
||||||
|
- type: number
|
||||||
|
name: since
|
||||||
- type: object
|
- type: object
|
||||||
label: Menu
|
label: Menu
|
||||||
name: menu
|
name: menu
|
||||||
|
|||||||
Reference in New Issue
Block a user