diff --git a/.cspell.json b/.cspell.json index 9b672e2..ea10a86 100644 --- a/.cspell.json +++ b/.cspell.json @@ -9,6 +9,7 @@ "CNCF", "deallocate", "deserialization", + "Disqus", "Dockerfiles", "Docsy", "favicons", @@ -40,6 +41,7 @@ "threadsafe", "unencrypted", "unmarshalling", + "URL's", "Xcode" ], "flagWords": [], diff --git a/content/en/blog/grpc-dotnet-build.md b/content/en/blog/grpc-dotnet-build.md index 5789d6d..a42d6b1 100644 --- a/content/en/blog/grpc-dotnet-build.md +++ b/content/en/blog/grpc-dotnet-build.md @@ -1,9 +1,9 @@ --- -title: | - gRPC Meets .NET SDK And Visual Studio: Automatic Codegen On Build +title: "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 author: - name: "Kirill 'kkm' Katsnelson" + name: Kirill 'kkm' Katsnelson link: https://github.com/kkm000 --- diff --git a/layouts/404.html b/layouts/404.html index 71a19eb..e748d8c 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,9 +1,8 @@ {{/* This file is in place as an override to Docsy */}} -{{/* cSpell:ignore URL's */}} {{ define "title" -}} 404 Page not found – {{ site.Title -}} -{{ end -}} +{{ end }} {{ define "main" -}} {{ $newIssuePath := "issues/new?title=Unexpected%20page-not-found%20error&body=URL%3A%20%0AExpected%20page%3A%20" -}} @@ -43,4 +42,4 @@ -{{ end -}} +{{ end }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 59823ec..ffe6207 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,4 +1,4 @@ -{{/* This file is in place as an override to Docsy */}} +{{/* This file is in place as an override to Docsy */ -}} diff --git a/layouts/blog/content.html b/layouts/blog/content.html index 90cc7b7..97f6829 100644 --- a/layouts/blog/content.html +++ b/layouts/blog/content.html @@ -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 }} -{{ $auths := .Params.authors }} +{{ $auth := .Params.author -}} +{{ $authors := .Params.authors -}}

{{ .Title }}

- {{ with .Params.attribution }} + {{ with .Params.attribution -}}

{{ . }}

- {{ end }} + {{ end -}} {{ with .Params.description }}
{{ . | markdownify }}
{{ end }}
- {{ with $auth }} - {{ T "post_byline_by" }} - {{ if .link }} + {{ with $auth -}} + {{ T "post_byline_by" }} + {{ if .link -}} {{ .name | markdownify }} - {{ else }} + {{ else -}} {{ .name | markdownify }} - {{ end }} + {{ end -}} {{ with .position }} ({{ . | markdownify }}){{ end }} | - {{ with .blurb }} + {{ with .blurb -}} {{ . }}
- {{ end }} - {{- with .guest -}} + {{ end -}} + {{ with .guest -}} Guest post
{{ end -}} - {{ end }} + {{ end -}} - {{ with $auths }} - {{ T "post_byline_by" }} - {{ range $idx, $auth := $auths }} - {{ if .link }} + {{ with $authors -}} + {{ T "post_byline_by" }} + {{ range $idx, $auth := $authors }} + {{ if .link -}} {{ .name | markdownify }} - {{ else }} + {{ else -}} {{ .name | markdownify }} - {{ end }} - {{ with .position }} ({{ . | markdownify }}){{ end }}{{ if not (eq (len $auths) (add $idx 1)) }}, {{ end }} + {{ end -}} + {{ with .position }} ({{ . | markdownify }}){{ end }}{{ if not (eq (len $authors) (add $idx 1)) }}, {{ end -}} {{ end }} | - {{ end }} + {{ end -}}
@@ -60,4 +60,4 @@ -
+ \ No newline at end of file diff --git a/layouts/community/list.html b/layouts/community/list.html index 0fd79c2..db8a1bd 100644 --- a/layouts/community/list.html +++ b/layouts/community/list.html @@ -1,7 +1,7 @@ {{/* This file is in place as an override to Docsy */}} -{{ define "main" }} -{{ with .Content }} -{{ . }} +{{ define "main" -}} +{{ with .Content -}} +{{ . -}} +{{ end -}} {{ end }} -{{ end }} \ No newline at end of file diff --git a/layouts/docs/list.html b/layouts/docs/list.html index d49faba..bbad34a 100644 --- a/layouts/docs/list.html +++ b/layouts/docs/list.html @@ -1,6 +1,6 @@ {{/* This file is in place as an override to Docsy */}} -{{ define "main" }} +{{ define "main" -}}

{{ .Title }}

{{ with .Params.description }}
{{ . | markdownify }}
{{ end }} diff --git a/layouts/docs/single.html b/layouts/docs/single.html index d41e4a0..11a922d 100644 --- a/layouts/docs/single.html +++ b/layouts/docs/single.html @@ -1,6 +1,6 @@ {{/* This file is in place as an override to Docsy */}} -{{ define "main" }} +{{ define "main" -}}

{{ .Title }}

{{ .Description }}

@@ -10,4 +10,4 @@ -{{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/partials/breadcrumb.html b/layouts/partials/breadcrumb.html index 87fe060..8e73eea 100644 --- a/layouts/partials/breadcrumb.html +++ b/layouts/partials/breadcrumb.html @@ -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 -}} -{{ else }} +{{ else -}}
-{{ end }} +{{ end -}} {{ define "breadcrumbnav" }} {{ if .p1.Parent }} @@ -28,4 +28,4 @@ {{ end }} -{{ end }} \ No newline at end of file +{{ end -}} diff --git a/layouts/partials/favicons.html b/layouts/partials/favicons.html index 23b870a..2ce5758 100644 --- a/layouts/partials/favicons.html +++ b/layouts/partials/favicons.html @@ -1,4 +1,4 @@ -{{/* This file is in place as an override to Docsy */}} +{{/* This file is in place as an override to Docsy */ -}} diff --git a/layouts/partials/head-css.html b/layouts/partials/head-css.html index ea4ec6f..faeeb38 100644 --- a/layouts/partials/head-css.html +++ b/layouts/partials/head-css.html @@ -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 }} -{{ $includePaths := (slice "node_modules") }} -{{ $scssMain := "scss/main.scss"}} -{{ $cssOutput := "css/style.css" }} -{{ $devOpts := (dict "targetPath" $cssOutput "includePaths" $includePaths "enableSourceMap" true) }} -{{ $prodOpts := (dict "targetPath" $cssOutput "includePaths" $includePaths "outputStyle" "compressed") }} -{{ $cssOpts := cond $inServerMode $devOpts $prodOpts }} -{{ $css := resources.Get $scssMain | toCSS $cssOpts }} +{{ $inServerMode := site.IsServer -}} +{{ $includePaths := (slice "node_modules") -}} +{{ $scssMain := "scss/main.scss" -}} +{{ $cssOutput := "css/style.css" -}} +{{ $devOpts := (dict "targetPath" $cssOutput "includePaths" $includePaths "enableSourceMap" true) -}} +{{ $prodOpts := (dict "targetPath" $cssOutput "includePaths" $includePaths "outputStyle" "compressed") -}} +{{ $cssOpts := cond $inServerMode $devOpts $prodOpts -}} +{{ $css := resources.Get $scssMain | toCSS $cssOpts -}} -{{ if $inServerMode }} +{{ if $inServerMode -}} -{{ else }} -{{ $prodCss := $css | postCSS | minify | fingerprint }} +{{ else -}} +{{ $prodCss := $css | postCSS | minify | fingerprint -}} -{{ end }} \ No newline at end of file +{{ end -}} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index edaa4e9..c6ac665 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,4 +1,4 @@ -{{/* This file is in place as an override to Docsy */}} +{{/* This file is in place as an override to Docsy */ -}} @@ -21,22 +21,22 @@ {{ end -}} {{ .Site.Title -}} -{{- template "_internal/opengraph.html" . -}} -{{- template "_internal/google_news.html" . -}} -{{- template "_internal/schema.html" . -}} -{{- template "_internal/twitter_cards.html" . -}} -{{ if eq (getenv "HUGO_ENV") "production" }} -{{ template "_internal/google_analytics_async.html" . }} -{{ end }} +{{ template "_internal/opengraph.html" . -}} +{{ template "_internal/google_news.html" . -}} +{{ template "_internal/schema.html" . -}} +{{ template "_internal/twitter_cards.html" . -}} +{{ if eq (getenv "HUGO_ENV") "production" -}} +{{ template "_internal/google_analytics_async.html" . -}} +{{ end -}} {{ partialCached "head-css.html" . "asdf" }} -{{ if .Site.Params.offlineSearch }} +{{ if .Site.Params.offlineSearch -}} -{{end}} -{{ partial "hooks/head-end.html" . }} \ No newline at end of file +{{ end -}} +{{ partial "hooks/head-end.html" . -}} diff --git a/layouts/shortcodes/docs/prog-lang-home-content.md b/layouts/shortcodes/docs/prog-lang-home-content.md index 902657e..4e881a6 100644 --- a/layouts/shortcodes/docs/prog-lang-home-content.md +++ b/layouts/shortcodes/docs/prog-lang-home-content.md @@ -1,6 +1,6 @@ -{{ $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_link := printf "[grpc-%s repo](%s)" $lang $src_repo_url }} +{{ $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_link := printf "[grpc-%s repo](%s)" $lang $src_repo_url -}} {{ with .Page.Params.content -}}
@@ -22,4 +22,4 @@ {{ end }} {{ end }}
-{{ end }} +{{ end -}}