Skip to content

Commit

Permalink
Änderungen an index, single und list
Browse files Browse the repository at this point in the history
  • Loading branch information
gruendau committed Aug 13, 2023
1 parent 6d3a338 commit 08f232a
Show file tree
Hide file tree
Showing 11 changed files with 166 additions and 125 deletions.
22 changes: 22 additions & 0 deletions layouts/_OLD/index1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{{ define "main" }}

<!-- index.html -->

<!-- Menu -->
<div>
{{ partial "menu/menu" . }}
</div>

<!-- Table of content -->
<div>
{{ partial "toc/toc" . }}
</div>

<div class="content">
{{ partial "content/content-home" . }}
</div>

{{ end }}



72 changes: 45 additions & 27 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,64 @@

<html lang="de">

<head>
{{ partial "head" . }}
</head>
<head>
{{ partial "head" . }}
</head>

<body>

<!-- Header -->
<header>
{{ partial "header" . }}
</header>
<body>

<main>
<!-- Header -->
<header>
{{ partial "header" . }}
</header>

<!-- Layout für header modes -->
{{ partial "header/fixed-header" . }}
{{ partial "footer/fixed-footer" . }}
<main>

<!-- Layout anzeigen -->
{{ partial "show/layout-base" . }}
<!-- Layout für header modes -->
{{ partial "header/fixed-header" . }}
{{ partial "footer/fixed-footer" . }}

<!-- Content -->
<!-- Layout anzeigen -->
{{ partial "show/layout-base" . }}

<!-- Content -->
<!-- Menu -->
<aside class="menu">
...menu...
{{ partial "menu/menu" . }}
</aside>

<!-- Table of content -->
<aside class="toc">
...toc...
{{ partial "toc/toc" . }}
</aside>

<div class="content">
...content...
{{ block "main" . }}{{ end }}
<!--
{x{ partial "content/content-home" . }}
-->
</div>

<!-- Hugo Variablen anzeigen -->
{{ if .Site.Params.showHugoVariablesAll }}
{{ partial "admin/hugo-variables-all" . }}
{{ end }}
<!-- Hugo Variablen anzeigen -->
{{ if .Site.Params.showHugoVariablesAll }}
{{ partial "admin/hugo-variables-all" . }}
{{ end }}

</main>
</main>

<!-- Footer -->
<footer>
{{ partial "footer" . }}
</footer>
<!-- Footer -->
<footer>
{{ partial "footer" . }}
</footer>

<!--
<!--
{{ partial "script-footer" . }}
-->

</body>
</body>

</html>

Expand Down
54 changes: 6 additions & 48 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -1,63 +1,21 @@
{{ define "main" }}

<div class="container-fluid px-2">
<div class="row">
<div class="col">
<!-- list.html -->

<!-- Sprungmarke -->
<h3 id="top"></h3>
{{ partial "content/content-list" . }}

<!-- Layout anzeigen -->
{{ partial "show/layout-list" . }}

<!-- Title, Subtitle -->
{{ partial "content/title-subtitle" . }}

{{ if not .Site.Params.showHugoVariablesAll }}
<!-- Content -->
{{ .Content }}

<ul class="posts">

{{ range .Data.Pages }}
{{ if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) }}
<li class="post">
<a href="{{ .RelPermalink }}">{{.Title}}</a>
<!--
<span class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }}
<span class="draft-label">DRAFT</span>
{{ end }}
</span>
-->
</li>
{{ end }}
{{ end }}

</ul>

{{ end }}

<!-- Sprungmarke -->
<h3 id="bottom"></h3>
{{ end }}

</div>
</div>
</div>

<!--
Quelle:
https://github.com/athul/archie/blob/master/layouts/_default/list.html
-->

<!--
{{ if isset .Data "Term" }}
{x{ if isset .Data "Term" }}
<h1>Entries tagged - "{{ .Data.Term }}"</h1>
{{ else }}
{x{ else }}
<h1 class="page-title">All articles</h1>
{{ end }}
{x{ end }}
-->

{{ end }}



28 changes: 1 addition & 27 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,6 @@

<!-- single.html -->

<div class="container-fluid px-2">
<div class="row">
<div class="col">

<!-- Sprungmarke -->
<h3 id="top"></h3>

<!-- Layout anzeigen -->
{{ partial "show/layout-single" . }}


<!-- Title, Subtitle -->
{{ partial "content/title-subtitle" . }}

{{ if not .Site.Params.showHugoVariablesAll }}
<!-- Content -->
{{ .Content }}
{{ end }}

{{ .Page.TableOfContents }}

<!-- Sprungmarke -->
<h3 id="bottom"></h3>

</div>
</div>
</div>
{{ partial "content/content-single" . }}

{{ end }}
15 changes: 2 additions & 13 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@

<!-- index.html -->

<!-- Menu -->
<div>
{{ partial "menu/menu" . }}
</div>
{{ partial "content/content-home" . }}

<!-- Table of content -->
<div>
{{ partial "toc/toc" . }}
</div>
{{ end }}

<div class="content">
{{ partial "content/content" . }}
</div>

{{ end }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- partial content.html -->
<!-- partial content-home.html -->

<div class="container-fluid">
<div class="row">
Expand All @@ -18,7 +18,6 @@ <h3 id="top"></h3>

<!-- Content -->
<div class="text">
{{ .TableOfContents }}
{{ .Content }}
</div>

Expand Down
45 changes: 45 additions & 0 deletions layouts/partials/content/content-list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!-- partial content-list.html -->

<div class="container-fluid px-2">
<div class="row">
<div class="col">

<!-- Sprungmarke -->
<h3 id="top"></h3>

<!-- Layout anzeigen -->
{{ partial "show/layout-list" . }}

<!-- Title, Subtitle -->
{{ partial "content/title-subtitle" . }}

{{ if not .Site.Params.showHugoVariablesAll }}
<!-- Content -->
{{ .Content }}

<ul class="posts">

{{ range .Data.Pages }}
{{ if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) }}
<li class="post">
<a href="{{ .RelPermalink }}">{{.Title}}</a>
<!--
<span class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }}
<span class="draft-label">DRAFT</span>
{{ end }}
</span>
-->
</li>
{{ end }}
{{ end }}

</ul>

{{ end }}

<!-- Sprungmarke -->
<h3 id="bottom"></h3>

</div>
</div>
</div>
40 changes: 40 additions & 0 deletions layouts/partials/content/content-single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!-- partial content-single.html -->

<div class="container-fluid">
<div class="row">
<div class="col">

<!-- Sprungmarke -->
<h3 id="top"></h3>

<!-- Layout anzeigen -->
{{ partial "show/layout-single" . }}

<!-- Navigation -->
{{ partial "navigation-buttons" }}


<!-- Title, Subtitle -->
{{ partial "content/title-subtitle" . }}

<!-- Content -->
<div class="text">
{{ .Content }}
</div>

<!--
{x{ if not .Site.Params.showHugoVariablesAll }}
{x{ .Content }}
{x{ end }}
-->

<!--
{x{ .Page.TableOfContents }}
-->

<!-- Sprungmarke -->
<h3 id="bottom"></h3>

</div>
</div>
</div>
3 changes: 1 addition & 2 deletions layouts/partials/menu/menu.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- layout/partials: menu -->

<aside class="menu">


<div class="container-fluid">
<div class="row">
Expand All @@ -20,4 +20,3 @@
</div>
</div>

</aside>
7 changes: 2 additions & 5 deletions layouts/partials/toc/toc.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- layout/partials: toc -->

<aside class="toc">


<div class="container-fluid">
<div class="row">
Expand All @@ -11,9 +11,7 @@
{{ partial "toc/title" . }}
</div>

{{ .Page.TableOfContents }}

<!-- Menu -->
<!-- Table of content -->
<div class="toc toc-content">
{{ partial "toc/content" . }}
</div>
Expand All @@ -22,4 +20,3 @@
</div>
</div>

</aside>
2 changes: 1 addition & 1 deletion static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Color of the background of the website
*/
body {
background-color: #000000;
background-color: #666666;
}


Expand Down

0 comments on commit 08f232a

Please sign in to comment.