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)
|
||||
- [Michael Lynch](https://github.com/mtlynch)
|
||||
- [FIGBERT](https://figbert.com/)
|
||||
- [Hannes Kuchelmsiter](hanneskuchelmeister.de)
|
||||
- [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-title {
|
||||
|
||||
@@ -21,10 +21,12 @@ disqusShortname = "yourdiscussshortname"
|
||||
keywords = "blog,developer,personal"
|
||||
info = "Full Stack DevOps and Magician"
|
||||
avatarurl = "images/avatar.jpg"
|
||||
#gravatar = "john.doe@example.com"
|
||||
footercontent = "Enter a text here."
|
||||
|
||||
dateformat = "January 2, 2006"
|
||||
|
||||
hideFooter = false
|
||||
hideCredits = false
|
||||
hideCopyright = false
|
||||
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 }}">
|
||||
{{ 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://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 }}
|
||||
<footer class="footer">
|
||||
<section class="container">
|
||||
{{ with .Site.Params.footercontent | safeHTML }}
|
||||
<p>{{.}}</p>
|
||||
<p>{{ . }}</p>
|
||||
{{ end }}
|
||||
{{ if not .Site.Params.hideCopyright }}
|
||||
{{ with .Site.Params.since }}
|
||||
© {{ if lt . now.Year }}{{ . }} - {{ end }}{{ now.Year }}
|
||||
{{ else }}
|
||||
© {{ now.Year }}
|
||||
©
|
||||
{{ if (and (.Site.Params.since) (lt .Site.Params.since now.Year)) }}
|
||||
{{ .Site.Params.since }} -
|
||||
{{ end }}
|
||||
{{ if .Site.Params.Author }} {{ .Site.Params.Author }} {{ end }}
|
||||
{{ now.Year }}
|
||||
{{ with .Site.Params.Author }} {{ . }} {{ end }}
|
||||
{{ end }}
|
||||
{{ if not .Site.Params.hideCredits }}
|
||||
{{ if not .Site.Params.hideCopyright }} · {{ end }}
|
||||
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/13hannes11/hugo-coder-timeline">Coder-Timeline</a>.
|
||||
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
|
||||
{{ end }}
|
||||
{{ if .Site.Params.commit }}
|
||||
{{ if or (not .Site.Params.hideCredits) (not .Site.Params.hideCopyright) }} · {{ end }}
|
||||
[<a href="{{ .Site.Params.commit }}{{ getenv "GIT_COMMIT_SHA" }}">{{ getenv "GIT_COMMIT_SHA_SHORT" }}</a>]
|
||||
{{ if .GitInfo }}
|
||||
[<a href="{{ .Site.Params.commit }}/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>]
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</section>
|
||||
</footer>
|
||||
</footer>
|
||||
{{ end }}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
{{ if .Site.IsMultiLingual }}
|
||||
{{ $node := . }}
|
||||
{{ .Scratch.Set "separator" true }}
|
||||
{{ range .Site.Home.AllTranslations }}
|
||||
{{ range .Translations }}
|
||||
{{ if ne $.Site.Language .Language }}
|
||||
{{ if $node.Scratch.Get "separator" }}
|
||||
<li class="navigation-item menu-separator">
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
<section class="container centered">
|
||||
<div class="about">
|
||||
{{ if and (isset .Site.Params "avatarurl") (not (isset .Site.Params "gravatar")) }}
|
||||
{{ 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 }}
|
||||
<h1>{{ .Site.Params.author }}</h1>
|
||||
<h2>{{ .Site.Params.info }}</h2>
|
||||
{{ with .Site.Params.social }}
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
{{- .Title -}}
|
||||
</h1>
|
||||
{{ .Content }}
|
||||
<ul>
|
||||
{{ range .Paginator.Pages }}
|
||||
<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
|
||||
- type: string
|
||||
name: avatarurl
|
||||
- type: boolean
|
||||
name: hideFooter
|
||||
- type: string
|
||||
name: footercontent
|
||||
- type: string
|
||||
@@ -64,6 +66,8 @@ models:
|
||||
name: hideCredits
|
||||
- type: boolean
|
||||
name: hideCopyright
|
||||
- type: number
|
||||
name: since
|
||||
- type: string
|
||||
name: commit
|
||||
- type: boolean
|
||||
@@ -94,6 +98,22 @@ models:
|
||||
- type: string
|
||||
name: 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
|
||||
name: languages
|
||||
fields:
|
||||
@@ -164,6 +184,18 @@ models:
|
||||
name: images
|
||||
items:
|
||||
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:
|
||||
type: object
|
||||
label: Language Config
|
||||
@@ -185,6 +217,8 @@ models:
|
||||
name: keywords
|
||||
- type: string
|
||||
name: footercontent
|
||||
- type: number
|
||||
name: since
|
||||
- type: object
|
||||
label: Menu
|
||||
name: menu
|
||||
|
||||
Reference in New Issue
Block a user