mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.git
synced 2025-01-15 13:26:37 +00:00
fix: docs article lead
This commit is contained in:
parent
997ca5c270
commit
949b35ae7c
|
@ -82,7 +82,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.lead {
|
.lead {
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 4rem;
|
||||||
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<div class="td-content">
|
<div class="td-content">
|
||||||
|
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) -}}
|
||||||
|
{{ partial "reading-time.html" . -}}
|
||||||
|
{{ end -}}
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
|
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
|
||||||
<header class="article-meta">
|
<header class="article-meta">
|
||||||
{{ partial "taxonomy_terms_article_wrapper.html" . -}}
|
{{ partial "taxonomy_terms_article_wrapper.html" . -}}
|
||||||
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) -}}
|
|
||||||
{{ partial "reading-time.html" . -}}
|
|
||||||
{{ end -}}
|
|
||||||
</header>
|
</header>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ partial "feedback.html" . -}}
|
{{ partial "feedback.html" . -}}
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<div class="td-content">
|
<div class="td-content">
|
||||||
|
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) -}}
|
||||||
|
{{ partial "reading-time.html" . -}}
|
||||||
|
{{ end -}}
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
|
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
|
||||||
<div class="td-byline mb-4">
|
<div class="td-byline mb-4">
|
||||||
|
@ -7,9 +10,6 @@
|
||||||
</div>
|
</div>
|
||||||
<header class="article-meta">
|
<header class="article-meta">
|
||||||
{{ partial "taxonomy_terms_article_wrapper.html" . -}}
|
{{ partial "taxonomy_terms_article_wrapper.html" . -}}
|
||||||
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) -}}
|
|
||||||
{{ partial "reading-time.html" . -}}
|
|
||||||
{{ end -}}
|
|
||||||
</header>
|
</header>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ if (.Site.Params.DisqusShortname) -}}
|
{{ if (.Site.Params.DisqusShortname) -}}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div class="td-content">
|
<div class="td-content">
|
||||||
|
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) -}}
|
||||||
|
{{ partial "reading-time.html" . -}}
|
||||||
|
{{ end -}}
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
|
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
|
||||||
<header class="article-meta">
|
<header class="article-meta">
|
||||||
{{ partial "taxonomy_terms_article_wrapper.html" . -}}
|
{{ partial "taxonomy_terms_article_wrapper.html" . -}}
|
||||||
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) -}}
|
|
||||||
{{ partial "reading-time.html" . -}}
|
|
||||||
{{ end -}}
|
|
||||||
</header>
|
</header>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ partial "section-index.html" . -}}
|
{{ partial "section-index.html" . -}}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
<nav aria-label="breadcrumb" class="td-breadcrumbs
|
<nav aria-label="breadcrumb" class="td-breadcrumbs
|
||||||
{{- if $isSingle }} d-none {{- end }}">
|
{{- if $isSingle }} d-none {{- end }}">
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb pb-4">
|
||||||
{{- template "breadcrumbnav" (dict "p1" . "p2" .) }}
|
{{- template "breadcrumbnav" (dict "p1" . "p2" .) }}
|
||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div class="td-content">
|
<div class="td-content">
|
||||||
|
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) -}}
|
||||||
|
{{ partial "reading-time.html" . -}}
|
||||||
|
{{ end -}}
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
|
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
|
||||||
<header class="article-meta">
|
<header class="article-meta">
|
||||||
{{ partial "taxonomy_terms_article_wrapper.html" . -}}
|
{{ partial "taxonomy_terms_article_wrapper.html" . -}}
|
||||||
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) -}}
|
|
||||||
{{ partial "reading-time.html" . -}}
|
|
||||||
{{ end -}}
|
|
||||||
</header>
|
</header>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ partial "section-index.html" . -}}
|
{{ partial "section-index.html" . -}}
|
||||||
|
|
|
@ -163,3 +163,8 @@ li:has(input[type="checkbox"]) {
|
||||||
.carousel-control-next, .carousel-control-prev {
|
.carousel-control-next, .carousel-control-prev {
|
||||||
background-image: none;
|
background-image: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.reading-time {
|
||||||
|
font-weight: 600 !important;
|
||||||
|
margin-bottom: .5rem !important;
|
||||||
|
}
|
|
@ -1,6 +1,5 @@
|
||||||
{{ $links := .Site.Params.links }}
|
{{ $links := .Site.Params.links }}
|
||||||
<div class="bg-dark pt-4 px-5 pb-5 row sp-footer">
|
<div class="bg-dark pt-4 px-5 pb-5 row sp-footer">
|
||||||
|
|
||||||
<div class="col-12 py-4">
|
<div class="col-12 py-4">
|
||||||
<a class="navbar-brand" href="{{ .Site.Home.RelPermalink }}">
|
<a class="navbar-brand" href="{{ .Site.Home.RelPermalink }}">
|
||||||
<span class="navbar-brand__logo navbar-logo">
|
<span class="navbar-brand__logo navbar-logo">
|
||||||
|
@ -13,7 +12,7 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-4 col-xs-12 py-4">
|
<div class="col-md-4 col-xs-12 py-sm-4">
|
||||||
<h2 class="text-secondary">{{ T "footer_learn_more" }}</h2>
|
<h2 class="text-secondary">{{ T "footer_learn_more" }}</h2>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<li><a href="{{ ref . "/docs/services/" }}" class="nav-link">{{ T "footer_available_services"}}</a></li>
|
<li><a href="{{ ref . "/docs/services/" }}" class="nav-link">{{ T "footer_available_services"}}</a></li>
|
||||||
|
@ -29,7 +28,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-4 col-xs-12 py-4">
|
<div class="col-md-4 col-xs-12 py-sm-4">
|
||||||
<h2 class="text-secondary">{{ T "footer_contribute" }}</h2>
|
<h2 class="text-secondary">{{ T "footer_contribute" }}</h2>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<li><a href="https://git.selfprivacy.org/SelfPrivacy" class="nav-link" rel="noopener noreferrer" target="_blank">{{ T "footer_source_code" }}</a></li>
|
<li><a href="https://git.selfprivacy.org/SelfPrivacy" class="nav-link" rel="noopener noreferrer" target="_blank">{{ T "footer_source_code" }}</a></li>
|
||||||
|
@ -40,7 +39,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-4 col-xs-12 py-4">
|
<div class="col-md-4 col-xs-12 py-sm-4">
|
||||||
<h2 class="text-secondary">{{ T "footer_download" }}</h2>
|
<h2 class="text-secondary">{{ T "footer_download" }}</h2>
|
||||||
<h3 class="text-secondary">{{ T "footer_download_phone" }}</h3>
|
<h3 class="text-secondary">{{ T "footer_download_phone" }}</h3>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
|
|
Loading…
Reference in a new issue