Darstellung von Artikelserien #68

Merged
Cires merged 6 commits from git2-serie into git2-artikel 2 years ago
  1. 7
      content/blog/git1.md
  2. 9
      content/blog/git2.md
  3. 5
      themes/anoxinonmedia/layouts/_default/list.html
  4. 5
      themes/anoxinonmedia/layouts/index.html
  5. 33
      themes/anoxinonmedia/layouts/partials/post-list-item.html
  6. 24
      themes/anoxinonmedia/layouts/partials/post-list-items.html
  7. 9
      themes/anoxinonmedia/layouts/shortcodes/series-parts.html
  8. 6
      themes/anoxinonmedia/static/css/style.css
  9. 2
      themes/anoxinonmedia/static/css/style.min.css

@ -8,6 +8,7 @@ categories:
banner: "/img/thumbnail/git.png"
description: Bei vielen Projekten wird eine Versionsverwaltung wie git eingesetzt.
In diesem Artikel werden die grundlegenden Strukturen von git erklärt.
series: git
---
Git ist eine Versionsverwaltung. Als Außenstehender wird man wahrscheinlich denken, dass
@ -16,6 +17,10 @@ eingesetzt wird, ändert sich das.
---
{{< series-parts >}}
---
**Inhaltsverzeichnis:**
1. [Commits](#1-commits)
@ -189,7 +194,7 @@ beim Git-Server an und dann kann man git nutzen, ohne sich jedes mal anzumelden,
### 6. Ausblick
So weit zur Theorie - der Anwendung werden wir uns in einem späteren Beitrag widmen.
So weit zur Theorie - der Anwendung widmen wir uns in [diesem Beitrag](/blog/git2).
### 7. Quellen und Literatur

@ -1,15 +1,20 @@
---
title: Git - Teil 2 - grundlegende Praxis bei git
date: 2020-11-29T00:00:00+00:00
date: 2020-11-25T00:00:00+00:00
tags:
- Anfänger
categories:
- Freie Software
banner: "/img/thumbnail/git.png"
description: In diesem Artikel wird die einfache Benutzung von git gezeigt.
series: git
---
Es wird angenommen, dass der vorherige Artikel zur [Theorie von git](/blog/git1) schon gelesen wurde.
Es wird angenommen, dass der vorherige Artikel schon gelesen wurde.
---
{{< series-parts >}}
---

@ -8,10 +8,7 @@
<div class="padding-container main-content">
<div class="sidebar-container">
<div class="content">
{{ $paginator := .Paginate (where .Data.Pages "Type" "blog") }}
{{ range $paginator.Pages }}
{{ partial "post-list-item.html" . }}
{{ end }}
{{ partial "post-list-items.html" (dict "self" . "items" (where .Data.Pages "Type" "blog") ) }}
{{ partial "post-list-pager.html" . }}
</div>

@ -9,10 +9,7 @@
<div class="padding-container">
<div class="sidebar-container">
<div class="content">
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "blog") }}
{{ range $paginator.Pages }}
{{ partial "post-list-item.html" . }}
{{ end }}
{{ partial "post-list-items.html" (dict "self" . "items" (where .Site.RegularPages "Type" "blog") ) }}
{{ partial "post-list-pager.html" . }}
</div>

@ -1,33 +1,40 @@
<section class="post">
<div class="image">
<a href="{{ .Permalink }}">
{{ if .Params.banner }}
<img src="{{ .Site.BaseURL }}{{ .Params.banner }}" alt="">
{{ if .post.Params.banner }}
<img src="{{ .site.BaseURL }}{{ .post.Params.banner }}" alt="">
{{ else }}
<img src="{{ .Site.BaseURL }}img/placeholder.png" alt="">
<img src="{{ .site.BaseURL }}img/placeholder.png" alt="">
{{ end }}
</a>
</div>
<div class="text">
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<h2><a href="{{ .post.Permalink }}">{{ .post.Title }}</a></h2>
<div class="author-category-and-date">
<p class="author-and-category">
{{ if isset .Params "author" }}
{{ i18n "authorBy" }} <a href="#">{{ .Params.author }}</a>
{{ end }}
{{ if isset .Params "categories" }}
{{ if gt (len .Params.categories) 0 }}
in <a href="{{ $.Site.BaseURL }}categories/{{ index .Params.categories 0 | urlize | lower }}">{{ index .Params.categories 0 }}</a>
{{ if isset .post.Params "author" }}
{{ i18n "authorBy" }} <a href="#">{{ .post.Params.author }}</a>
{{ end }}
{{ if isset .post.Params "categories" }}
{{ if gt (len .post.Params.categories) 0 }}
in <a href="{{ site.BaseURL }}categories/{{ index .post.Params.categories 0 | urlize | lower }}">{{ index .post.Params.categories 0 }}</a>
{{ end }}
{{ end }}
</p>
<p class="date">
<a href="{{ .Permalink }}"><i class="fa fa-calendar-o"></i>{{ .Date.Day }}. {{ index $.Site.Data.monate (printf "%d" .Date.Month) }} {{ .Date.Year }}</a>
<a href="{{ .post.Permalink }}"><i class="fa fa-calendar-o"></i>{{ .post.Date.Day }}. {{ index site.Data.monate (printf "%d" .post.Date.Month) }} {{ .post.Date.Year }}</a>
</p>
</div>
<p class="intro">{{ .Description }}</p>
<p class="intro">{{ .post.Description }}</p>
<p class="read-more-button-wrapper">
<a href="{{ .Permalink }}" class="button read-more-button">{{ i18n "continueReading" }}</a>
<a href="{{ .post.Permalink }}" class="button read-more-button">{{ i18n "continueReading" }}</a>
</p>
{{ if .parts }}
<ul class="parts">
{{ range sort .parts "Date" "asc" }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}
</div>
</section>

@ -0,0 +1,24 @@
{{ $scratch := newScratch }}
{{ $scratch.Set "pages" .items }}
{{ $scratch.Set "visiblePages" slice }}
{{ range ($scratch.Get "pages") }}
{{ if .Params.series }}
{{ $otherPartsOfSeries := (where ($scratch.Get "pages") "Params.series" .Params.series) }}
{{ if eq (index $otherPartsOfSeries 0) . }}
{{ $scratch.Set "visiblePages" ($scratch.Get "visiblePages" | append .) }}
{{ end }}
{{ else }}
{{ $scratch.Set "visiblePages" ($scratch.Get "visiblePages" | append .) }}
{{ end }}
{{ end }}
{{ $paginator := .self.Paginate ($scratch.Get "visiblePages") }}
{{ range $paginator.Pages }}
{{ if .Params.series }}
{{ $allPartsOfSeries := (where ($scratch.Get "pages") "Params.series" .Params.series) }}
{{ partial "post-list-item.html" (dict "post" . "parts" $allPartsOfSeries) }}
{{ else }}
{{ partial "post-list-item.html" (dict "post" .) }}
{{ end }}
{{ end }}

@ -0,0 +1,9 @@
<ul>
{{ range sort (where site.Pages "Params.series" ($.Page.Params.series)) "Date" "asc" }}
{{ if eq $.Page.Permalink .Permalink }}
<li><b><a href="{{ .Permalink }}">{{ .Title }} </a></b></li>
{{ else }}
<li><a href="{{ .Permalink }}">{{ .Title }} </a></li>
{{ end }}
{{ end }}
</ul>

@ -386,6 +386,12 @@ footer h4, footer h5 {
.post .read-more-button-wrapper { display: flex; justify-content: flex-end; }
.post .intro { margin: 0 }
.post .parts {
padding-top: .5rem;
padding-bottom: .5rem;
border: 1px solid var(--theme-color-light);
}
/* pager */
.pager {

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save