Skip to content

Commit 863dd57

Browse files
authoredNov 7, 2022
Added blog space on Thanos website. (thanos-io#5873)
Signed-off-by: bwplotka <bwplotka@gmail.com> Signed-off-by: bwplotka <bwplotka@gmail.com>
1 parent ef3a331 commit 863dd57

File tree

6 files changed

+23
-4
lines changed

6 files changed

+23
-4
lines changed
 

‎.mdox.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ transformations:
7070
menu: contributing
7171
lastmod: "{{ .Origin.LastMod }}"
7272
backMatter: *docBackMatter
73-
73+
74+
# Non-versioned element: Blog.
75+
- glob: "blog/*"
76+
path: /../blog/*
77+
7478
- glob: "**/README.md"
7579
path: _index.md
7680
frontMatter: &justTitleFrontMatter

‎docs/blog/welcome.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: Welcome to Thanos Blog Space!
3+
date: "2022-11-07"
4+
author: Thanos Team
5+
---
6+
7+
Welcome 👋🏼
8+
9+
This space was created for the Thanos community to share learnings, insights, best practices and cool things to the world. If you are interested in contributing relevant content to Thanos blog, feel free to add Pull Request (PR) to [Thanos repo's blog directory](http://github.com/thanos-io/thanos). See ya there!
10+
11+
PS: For Prometheus specific content, consider contributing to [Prometheus blog space](https://prometheus.io/blog/) by creating PR to [Prometheus docs repo](https://github.com/prometheus/docs/tree/main/content/blog).

‎netlify.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ publish = "website/public"
88

99
# Our Makefile builds Hugo, but it's faster if Netlify grabs the correct version on their own
1010
# via a simple cURL.
11-
environment = { HUGO_VERSION="0.80.0" }
11+
environment = { HUGO_VERSION="v0.101.0" }
1212

1313
# NOTE: the sleep at the end is to make sure logs are not truncated on error.
1414
command = "(env && make web HUGO=$(which hugo)) || (sleep 30; false)"

‎website/layouts/_default/baseof.html

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
<li class="nav-item">
5353
{{ partial "versioning/version-picker.html" . }}
5454
</li>
55+
<li class="nav-item">
56+
<a class="nav-link" href="/blog">Blog</a>
57+
</li>
5558
<li class="nav-item">
5659
<a href="https://github.com/{{ .Site.Params.GithubUser }}/{{ .Site.Params.GithubProject }}" class="nav-link"><i class="fab fa-fw fa-github"></i> GitHub</a>
5760
</li>

‎website/layouts/partials/versioning/banner.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{{- $currentVersion := index (split .Dir "/") 0 }}
1+
{{- $currentVersion := index (split .File.Dir "/") 0 }}
22
{{- $latestVersion := "tip" }}
3-
{{- $latestUrl := replace .URL $currentVersion $latestVersion }}
3+
{{- $latestUrl := replace .RelPermalink $currentVersion $latestVersion }}
44

55
{{- if ne $currentVersion $latestVersion }}
66
<div class="alert alert-warning" role="alert">

‎website/layouts/partials/versioning/version-picker.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
44
{{- range .Site.Sections.Reverse }}
55
{{- $version := .Section }}
6+
{{- if eq $version "blog" }}{{continue}}{{end}}
67
<a class="dropdown-item" href="{{ printf "../../../../%s" $version }}/thanos/getting-started.md">
78
{{ $version }}
89
</a>

0 commit comments

Comments
 (0)
Please sign in to comment.