diff --git a/website/config.toml b/website/config.toml index 1736aa130a..a2e97a35e8 100644 --- a/website/config.toml +++ b/website/config.toml @@ -116,17 +116,17 @@ version_menu = "Releases" url_latest_version = "/v1.8" # Repository configuration (URLs for in-page links to opening issues and suggesting changes) -# github_repo = "https://github.com/googley-example" +github_repo = "https://github.com/siderolabs/talos" # An optional link to a related project repo. For example, the sibling repository where your product code lives. # github_project_repo = "https://github.com/googley" # Specify a value here if your content directory is not in your repo's root directory -# github_subdir = "" +github_subdir = "website" # Uncomment this if you have a newer GitHub repo with "main" as the default branch, # or specify a new value if you want to reference another branch in your GitHub links -# github_branch= "main" +github_branch= "main" # Google Custom Search Engine ID. Remove or comment out to disable search. # gcs_engine_id = "d72aa9b2712488cc3" diff --git a/website/themes/docsy/layouts/partials/page-meta-links.html b/website/themes/docsy/layouts/partials/page-meta-links.html index b68beb9b34..cf5577c8a3 100644 --- a/website/themes/docsy/layouts/partials/page-meta-links.html +++ b/website/themes/docsy/layouts/partials/page-meta-links.html @@ -11,11 +11,7 @@ {{ T "post_edit_this" }} {{ else if $gh_repo -}} {{ $gh_repo_path := printf "%s/content/%s" $gh_branch $pathFormatted -}} - {{ if and ($gh_subdir) (.Site.Language.Lang) -}} - {{ $gh_repo_path = printf "%s/%s/content/%s/%s" $gh_branch $gh_subdir ($.Site.Language.Lang) $pathFormatted -}} - {{ else if .Site.Language.Lang -}} - {{ $gh_repo_path = printf "%s/content/%s/%s" $gh_branch ($.Site.Language.Lang) $pathFormatted -}} - {{ else if $gh_subdir -}} + {{ if $gh_subdir -}} {{ $gh_repo_path = printf "%s/%s/content/%s" $gh_branch $gh_subdir $pathFormatted -}} {{ end -}} @@ -39,7 +35,6 @@ {{ T "post_view_this" }} {{ T "post_edit_this" }} - {{ T "post_create_child_page" }} {{ T "post_create_issue" }} {{ with $gh_project_repo -}} {{ $project_issueURL := printf "%s/issues/new" . -}}