diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-22 02:13:20 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-22 02:13:20 +0300 |
commit | ef736304163e0952735a8620a48564c288864a94 (patch) | |
tree | 2155560a188341cf6d242856e397aa20775ca512 /layouts/projects/single.html | |
parent | 4a53507256bfefd1e8094defd98d6b28316fa965 (diff) |
Auto-commit 2024-12-22
Diffstat (limited to 'layouts/projects/single.html')
-rw-r--r-- | layouts/projects/single.html | 54 |
1 files changed, 38 insertions, 16 deletions
diff --git a/layouts/projects/single.html b/layouts/projects/single.html index c10b21c..35ef62b 100644 --- a/layouts/projects/single.html +++ b/layouts/projects/single.html @@ -1,21 +1,43 @@ {{ define "main" }} -<div class="container mx-auto my-5"> - <div class="post"> - {{ partial "single/header.html" . }} - <div class="alert alert-info" role="alert"> - <div class="btn-group"> - <a class="btn btn-primary" href="{{.Params.project_url}}"> - {{ partial "icon.html" "link" }} {{.Params.project_url}} - </a> - {{ if .Params.git_url}} - <a class="btn btn-primary" href="{{.Params.git_url}}"> - {{ partial "icon.html" "git" }} {{.Params.git_url}} - </a> - {{ end }} - </div> +<div class="container"> + <div class="row"> + <div class="col-xs-12 col-sm-12 col-md-4 sidebar"> + <h1 class="post-title fw-semibold">{{.Page.CurrentSection.Title}}</h1> + {{ if .Page.TableOfContents }} + <h2 class="fw-semibold">Содержание</h2> + {{ .Page.TableOfContents }} + {{ end }} + {{if .Page.CurrentSection.Pages}} + <h2 class="fw-semibold">Остальное</h2> + <ul> + {{ range .Page.CurrentSection.Pages }} + <li> + <a href="{{ .RelPermalink }}">{{ .Title }}</a> + </li> + {{ end }} + </ul> + {{ end }} + </div> + <div class="col-xs-12 col-sm-12 col-md-8 content"> + <div class="post"> + {{ partial "single/header.html" . }} + <div class="alert alert-info" role="alert"> + <div class="btn-group"> + <a class="btn btn-primary" href="{{.Params.project_url}}"> + {{ partial "icon.html" "link" }} {{.Params.project_url}} + </a> + {{ if .Params.git_url}} + <a class="btn btn-primary" href="{{.Params.git_url}}"> + {{ partial "icon.html" "git" }} {{.Params.git_url}} + </a> + {{ end }} + </div> + </div> + <div class="e-content">{{ .Content }}</div> + {{ partial "single/footer.html" . }} </div> - <div class="e-content">{{ .Content }}</div> - {{ partial "single/footer.html" . }} + </div> </div> + </div> </div> {{ end }} |