sync: latest changes before Gitea migration
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
{{ .Content }}
|
||||
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
{{ range .Pages.ByDate.Reverse }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{{ define "main" }}
|
||||
<div class="article-content">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ partial "source-path.html" . }}
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<p class="text-muted">Данные зашифрованы. Нажмите "Расшифровать" и введите мастер-пароль.</p>
|
||||
|
||||
<div class="row">
|
||||
{{ range where .Site.RegularPages "Section" "creds" }}
|
||||
{{ range (where .Site.RegularPages "Section" "creds").ByDate.Reverse }}
|
||||
<div class="col-md-6 mb-4">
|
||||
<div class="card creds-card h-100">
|
||||
<div class="card-body">
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{{ define "main" }}
|
||||
<div class="article-content creds-card">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ partial "source-path.html" . }}
|
||||
|
||||
{{ if .Params.description }}
|
||||
<p>{{ .Params.description }}</p>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<div class="article-content">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p class="diary-date">{{ .Date.Format "02.01.2006" }}</p>
|
||||
{{ partial "source-path.html" . }}
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<h1>Инструкции</h1>
|
||||
|
||||
<div class="row">
|
||||
{{ range where .Site.RegularPages "Section" "guides" }}
|
||||
{{ range (where .Site.RegularPages "Section" "guides").ByDate.Reverse }}
|
||||
<div class="col-md-6 mb-4">
|
||||
<div class="card h-100">
|
||||
<div class="card-body">
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{{ define "main" }}
|
||||
<div class="article-content">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ partial "source-path.html" . }}
|
||||
|
||||
{{ if .Params.tags }}
|
||||
<div class="tags mb-3">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<h1>База знаний</h1>
|
||||
|
||||
<div class="row">
|
||||
{{ range where .Site.RegularPages "Section" "kb" }}
|
||||
{{ range (where .Site.RegularPages "Section" "kb").ByDate.Reverse }}
|
||||
<div class="col-md-6 mb-4">
|
||||
<div class="card h-100">
|
||||
<div class="card-body">
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{{ define "main" }}
|
||||
<div class="article-content">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ partial "source-path.html" . }}
|
||||
|
||||
{{ if .Params.tags }}
|
||||
<div class="tags mb-3">
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
{{ define "main" }}
|
||||
<div class="article-content">
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
<div class="row">
|
||||
{{ range .Pages.ByDate.Reverse }}
|
||||
<div class="col-md-6 mb-4">
|
||||
<div class="card h-100">
|
||||
<div class="card-body">
|
||||
<h3 class="card-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
<p class="card-text">{{ .Summary }}</p>
|
||||
{{ if .Params.tags }}
|
||||
<div class="tags">
|
||||
{{ range .Params.tags }}
|
||||
<a href="{{ "/tags/" | relURL }}{{ . | urlize }}/" class="tag">{{ . }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,16 @@
|
||||
{{ define "main" }}
|
||||
<div class="article-content">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ partial "source-path.html" . }}
|
||||
|
||||
{{ if .Params.tags }}
|
||||
<div class="tags mb-3">
|
||||
{{ range .Params.tags }}
|
||||
<a href="{{ "/tags/" | relURL }}{{ . | urlize }}/" class="tag">{{ . }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,8 @@
|
||||
<div class="source-path mb-3">
|
||||
<small class="text-muted">
|
||||
📁 <code id="source-path" class="user-select-all">~/Projects/docs-a2v/content/{{ .File.Path }}</code>
|
||||
<button class="btn btn-sm btn-outline-secondary ms-1 py-0 px-1" onclick="navigator.clipboard.writeText('~/Projects/docs-a2v/content/{{ .File.Path }}')" title="Копировать путь">
|
||||
📋
|
||||
</button>
|
||||
</small>
|
||||
</div>
|
||||
@@ -1,5 +1,8 @@
|
||||
{{ define "main" }}
|
||||
<div class="article-content">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ partial "source-path.html" . }}
|
||||
|
||||
<div class="d-flex justify-content-between align-items-start mb-3">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<span class="status-badge h5">
|
||||
|
||||
Reference in New Issue
Block a user