diff --git a/config.toml b/config.toml index f7ac4c9..7a704b8 100644 --- a/config.toml +++ b/config.toml @@ -11,6 +11,7 @@ unsafe = true style = "manni" [params] +locale = "en_US" grpc_release_tag = "v1.27.2" grpc_release_tag_no_v = "1.27.2" grpc_java_release_tag = "v1.27.2" @@ -27,6 +28,7 @@ gRPC is a modern open source high performance RPC framework that can run in any twitter = "https://twitter.com/grpcio" gitter = "https://gitter.im/grpc/grpc" reddit = "https://www.reddit.com/r/grpc" +twitter_handle = "grpcio" [[params.features]] title = "Simple service definition" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index d75d2b5..a512862 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,7 +2,7 @@ {{ $currentUrl := .RelPermalink }} {{ $lang := site.LanguageCode }} - + {{ partial "google-analytics.html" . }} {{ partial "meta.html" . }} diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index 55ce816..830f785 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -1,6 +1,34 @@ +{{ $url := .Permalink }} +{{ $title := cond .IsHome site.Title .Title }} +{{ $type := cond .IsHome "website" "article" }} +{{ $desc := .Param "description" }} +{{ $twitter := printf "@%s" site.Params.social.twitter_handle }} +{{ $img := "img/logos/grpc-icon-color.png" | absURL }} +{{ $imgAlt := printf "%s color logo" site.Title }} +{{ $locale := site.Params.locale }} {{ with .OutputFormats.Get "rss" -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} -{{ end -}} \ No newline at end of file +{{ end -}} + +{{/* Twitter Card metadata */}} + + + + + + +{{/* OpenGraph metadata */}} + + +{{ with $desc }} + +{{ end }} + + + + + + \ No newline at end of file