Whitespace cleanup in layouts and title (#581)

- Remove newline from blog post title
- Layouts: whitespace cleanup
- No content changes in generated site (modulo whitespace)
This commit is contained in:
Patrice Chalin 2020-12-19 15:05:11 -05:00 committed by GitHub
parent 4c8fbe2b23
commit ce46d18cce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 72 additions and 71 deletions

View File

@ -9,6 +9,7 @@
"CNCF", "CNCF",
"deallocate", "deallocate",
"deserialization", "deserialization",
"Disqus",
"Dockerfiles", "Dockerfiles",
"Docsy", "Docsy",
"favicons", "favicons",
@ -40,6 +41,7 @@
"threadsafe", "threadsafe",
"unencrypted", "unencrypted",
"unmarshalling", "unmarshalling",
"URL's",
"Xcode" "Xcode"
], ],
"flagWords": [], "flagWords": [],

View File

@ -1,9 +1,9 @@
--- ---
title: | title: "gRPC Meets .NET SDK And Visual Studio: Automatic Codegen On Build"
gRPC Meets .NET SDK And Visual Studio: Automatic Codegen On Build spelling: cSpell:ignore autogenerated drwxrwxr classlib globbing Katsnelson Kirill protodep netstandard Nuget walkthrough
date: 2018-06-26 date: 2018-06-26
author: author:
name: "Kirill 'kkm' Katsnelson" name: Kirill 'kkm' Katsnelson
link: https://github.com/kkm000 link: https://github.com/kkm000
--- ---

View File

@ -1,9 +1,8 @@
{{/* This file is in place as an override to Docsy */}} {{/* This file is in place as an override to Docsy */}}
{{/* cSpell:ignore URL's */}}
{{ define "title" -}} {{ define "title" -}}
404 Page not found – {{ site.Title -}} 404 Page not found – {{ site.Title -}}
{{ end -}} {{ end }}
{{ define "main" -}} {{ define "main" -}}
{{ $newIssuePath := "issues/new?title=Unexpected%20page-not-found%20error&body=URL%3A%20%0AExpected%20page%3A%20" -}} {{ $newIssuePath := "issues/new?title=Unexpected%20page-not-found%20error&body=URL%3A%20%0AExpected%20page%3A%20" -}}
@ -43,4 +42,4 @@
</div> </div>
</div> </div>
</section> </section>
{{ end -}} {{ end }}

View File

@ -1,4 +1,4 @@
{{/* This file is in place as an override to Docsy */}} {{/* This file is in place as an override to Docsy */ -}}
<!doctype html> <!doctype html>
<html lang="{{ .Site.Language.Lang }}" class="no-js"> <html lang="{{ .Site.Language.Lang }}" class="no-js">

View File

@ -1,48 +1,48 @@
{{/* This file is in place as an override to Docsy */}} {{/* This file is in place as an override to Docsy */ -}}
{{ $auth := .Params.author }} {{ $auth := .Params.author -}}
{{ $auths := .Params.authors }} {{ $authors := .Params.authors -}}
<div class="td-content"> <div class="td-content">
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
{{ with .Params.attribution }} {{ with .Params.attribution -}}
<p>{{ . }}</p> <p>{{ . }}</p>
{{ end }} {{ end -}}
{{ 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">
{{ with $auth }} {{ with $auth -}}
{{ T "post_byline_by" }} {{ T "post_byline_by" }}
{{ if .link }} {{ if .link -}}
<a href="{{ .link }}"><b>{{ .name | markdownify }}</b></a> <a href="{{ .link }}"><b>{{ .name | markdownify }}</b></a>
{{ else }} {{ else -}}
<b>{{ .name | markdownify }}</b> <b>{{ .name | markdownify }}</b>
{{ end }} {{ end -}}
{{ with .position }} ({{ . | markdownify }}){{ end }} | {{ with .position }} ({{ . | markdownify }}){{ end }} |
{{ with .blurb }} {{ with .blurb -}}
<span> {{ . }}</span> <span> {{ . }}</span>
<br/> <br/>
{{ end }} {{ end -}}
{{- with .guest -}} {{ with .guest -}}
<span class="badge badge-secondary font-weight-bold"> <span class="badge badge-secondary font-weight-bold">
<span class="icon"><i class="fas fa-sm fa-pen"></i></span> <span class="icon"><i class="fas fa-sm fa-pen"></i></span>
<span>Guest post</span> <span>Guest post</span>
</span> </span>
<br/> <br/>
{{ end -}} {{ end -}}
{{ end }} {{ end -}}
{{ with $auths }} {{ with $authors -}}
{{ T "post_byline_by" }} {{ T "post_byline_by" }}
{{ range $idx, $auth := $auths }} {{ range $idx, $auth := $authors }}
{{ if .link }} {{ if .link -}}
<a href="{{ .link }}"><b>{{ .name | markdownify }}</b></a> <a href="{{ .link }}"><b>{{ .name | markdownify }}</b></a>
{{ else }} {{ else -}}
<b>{{ .name | markdownify }}</b> <b>{{ .name | markdownify }}</b>
{{ end }} {{ end -}}
{{ with .position }} ({{ . | markdownify }}){{ end }}{{ if not (eq (len $auths) (add $idx 1)) }}, {{ end }} {{ with .position }} ({{ . | markdownify }}){{ end }}{{ if not (eq (len $authors) (add $idx 1)) }}, {{ end -}}
{{ end }} {{ end }}
| |
{{ end }} {{ end -}}
<time datetime="{{ $.Date.Format "2006-01-02" }}" class="text-muted">{{ $.Date.Format $.Site.Params.time_format_blog }}</time> <time datetime="{{ $.Date.Format "2006-01-02" }}" class="text-muted">{{ $.Date.Format $.Site.Params.time_format_blog }}</time>
</div> </div>
@ -60,4 +60,4 @@
<div class="c-global-meta-links"> <div class="c-global-meta-links">
{{ partial "page-meta-links" .}} {{ partial "page-meta-links" .}}
</div> </div>
</div> </div>

View File

@ -1,7 +1,7 @@
{{/* This file is in place as an override to Docsy */}} {{/* This file is in place as an override to Docsy */}}
{{ define "main" }} {{ define "main" -}}
{{ with .Content }} {{ with .Content -}}
{{ . }} {{ . -}}
{{ end -}}
{{ end }} {{ end }}
{{ end }}

View File

@ -1,6 +1,6 @@
{{/* This file is in place as an override to Docsy */}} {{/* This file is in place as an override to Docsy */}}
{{ define "main" }} {{ define "main" -}}
<div class="td-content list-page"> <div class="td-content list-page">
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }} {{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}

View File

@ -1,6 +1,6 @@
{{/* This file is in place as an override to Docsy */}} {{/* This file is in place as an override to Docsy */}}
{{ define "main" }} {{ define "main" -}}
<h1 class="mb-4 font-weight-bold">{{ .Title }}</h1> <h1 class="mb-4 font-weight-bold">{{ .Title }}</h1>
<p class="lead pb-2">{{ .Description }}</p> <p class="lead pb-2">{{ .Description }}</p>
<div class="d-xl-none td-toc td-toc--inline d-print-none"> <div class="d-xl-none td-toc td-toc--inline d-print-none">
@ -10,4 +10,4 @@
<div class="c-global-meta-links"> <div class="c-global-meta-links">
{{ partial "page-meta-links" .}} {{ partial "page-meta-links" .}}
</div> </div>
{{ end }} {{ end }}

View File

@ -1,14 +1,14 @@
{{/* This file is in place as an override to Docsy */}} {{/* This file is in place as an override to Docsy */ -}}
{{ if not .Parent.IsHome }} {{ if not .Parent.IsHome -}}
<nav aria-label="breadcrumb" class="d-print-none"> <nav aria-label="breadcrumb" class="d-print-none">
<ol class="breadcrumb spb-1"> <ol class="breadcrumb spb-1">
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }} {{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
</ol> </ol>
</nav > </nav >
{{ else }} {{ else -}}
<div class="l-no-breadcrumb"></div> <div class="l-no-breadcrumb"></div>
{{ end }} {{ end -}}
{{ define "breadcrumbnav" }} {{ define "breadcrumbnav" }}
{{ if .p1.Parent }} {{ if .p1.Parent }}
@ -28,4 +28,4 @@
{{ end }} {{ end }}
</a> </a>
</li> </li>
{{ end }} {{ end -}}

View File

@ -1,4 +1,4 @@
{{/* This file is in place as an override to Docsy */}} {{/* This file is in place as an override to Docsy */ -}}
<link rel="shortcut icon" href="/favicon.ico"> <link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/favicons/apple-touch-icon.png"> <link rel="apple-touch-icon" href="/favicons/apple-touch-icon.png">

View File

@ -1,18 +1,18 @@
{{/* This file is in place as an override to Docsy */}} {{/* This file is in place as an override to Docsy */ -}}
{{ $inServerMode := site.IsServer }} {{ $inServerMode := site.IsServer -}}
{{ $includePaths := (slice "node_modules") }} {{ $includePaths := (slice "node_modules") -}}
{{ $scssMain := "scss/main.scss"}} {{ $scssMain := "scss/main.scss" -}}
{{ $cssOutput := "css/style.css" }} {{ $cssOutput := "css/style.css" -}}
{{ $devOpts := (dict "targetPath" $cssOutput "includePaths" $includePaths "enableSourceMap" true) }} {{ $devOpts := (dict "targetPath" $cssOutput "includePaths" $includePaths "enableSourceMap" true) -}}
{{ $prodOpts := (dict "targetPath" $cssOutput "includePaths" $includePaths "outputStyle" "compressed") }} {{ $prodOpts := (dict "targetPath" $cssOutput "includePaths" $includePaths "outputStyle" "compressed") -}}
{{ $cssOpts := cond $inServerMode $devOpts $prodOpts }} {{ $cssOpts := cond $inServerMode $devOpts $prodOpts -}}
{{ $css := resources.Get $scssMain | toCSS $cssOpts }} {{ $css := resources.Get $scssMain | toCSS $cssOpts -}}
{{ if $inServerMode }} {{ if $inServerMode -}}
<link href="{{ $css.RelPermalink }}" rel="stylesheet"> <link href="{{ $css.RelPermalink }}" rel="stylesheet">
{{ else }} {{ else -}}
{{ $prodCss := $css | postCSS | minify | fingerprint }} {{ $prodCss := $css | postCSS | minify | fingerprint -}}
<link rel="preload" href="{{ $prodCss.RelPermalink }}" as="style"> <link rel="preload" href="{{ $prodCss.RelPermalink }}" as="style">
<link href="{{ $prodCss.RelPermalink }}" rel="stylesheet" integrity="{{ $prodCss.Data.integrity }}"> <link href="{{ $prodCss.RelPermalink }}" rel="stylesheet" integrity="{{ $prodCss.Data.integrity }}">
{{ end }} {{ end -}}

View File

@ -1,4 +1,4 @@
{{/* This file is in place as an override to Docsy */}} {{/* This file is in place as an override to Docsy */ -}}
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
@ -21,22 +21,22 @@
{{ end -}} {{ end -}}
{{ .Site.Title -}} {{ .Site.Title -}}
</title> </title>
{{- template "_internal/opengraph.html" . -}} {{ template "_internal/opengraph.html" . -}}
{{- template "_internal/google_news.html" . -}} {{ template "_internal/google_news.html" . -}}
{{- template "_internal/schema.html" . -}} {{ template "_internal/schema.html" . -}}
{{- template "_internal/twitter_cards.html" . -}} {{ template "_internal/twitter_cards.html" . -}}
{{ if eq (getenv "HUGO_ENV") "production" }} {{ if eq (getenv "HUGO_ENV") "production" -}}
{{ template "_internal/google_analytics_async.html" . }} {{ template "_internal/google_analytics_async.html" . -}}
{{ end }} {{ end -}}
{{ partialCached "head-css.html" . "asdf" }} {{ partialCached "head-css.html" . "asdf" }}
<script <script
src="https://code.jquery.com/jquery-3.3.1.min.js" src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script> crossorigin="anonymous"></script>
{{ if .Site.Params.offlineSearch }} {{ if .Site.Params.offlineSearch -}}
<script <script
src="https://unpkg.com/lunr@2.3.8/lunr.min.js" src="https://unpkg.com/lunr@2.3.8/lunr.min.js"
integrity="sha384-vRQ9bDyE0Wnu+lMfm57BlYLO0/XauFuKpVsZPs7KEDwYKktWi5+Kz3MP8++DFlRY" integrity="sha384-vRQ9bDyE0Wnu+lMfm57BlYLO0/XauFuKpVsZPs7KEDwYKktWi5+Kz3MP8++DFlRY"
crossorigin="anonymous"></script> crossorigin="anonymous"></script>
{{end}} {{ end -}}
{{ partial "hooks/head-end.html" . }} {{ partial "hooks/head-end.html" . -}}

View File

@ -1,6 +1,6 @@
{{ $lang := lower ($.Page.Params.language | default $.Page.Params.title) }} {{ $lang := lower ($.Page.Params.language | default $.Page.Params.title) -}}
{{ $src_repo_url := $.Page.Params.src_repo | default (printf "https://github.com/grpc/grpc-%s" $lang) }} {{ $src_repo_url := $.Page.Params.src_repo | default (printf "https://github.com/grpc/grpc-%s" $lang) -}}
{{ $src_repo_link := printf "[grpc-%s repo](%s)" $lang $src_repo_url }} {{ $src_repo_link := printf "[grpc-%s repo](%s)" $lang $src_repo_url -}}
{{ with .Page.Params.content -}} {{ with .Page.Params.content -}}
<div class="row flex-col flex-md-row o-lang-home__list"> <div class="row flex-col flex-md-row o-lang-home__list">
@ -22,4 +22,4 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
</div> </div>
{{ end }} {{ end -}}