Skip to content

Commit

Permalink
Added blog space on Thanos website.
Browse files Browse the repository at this point in the history
Signed-off-by: bwplotka <[email protected]>
  • Loading branch information
bwplotka committed Nov 7, 2022
1 parent ef3a331 commit 3fb1abf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .mdox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ transformations:
menu: contributing
lastmod: "{{ .Origin.LastMod }}"
backMatter: *docBackMatter


# Non-versioned element: Blog.
- glob: "blog/*"
path: /../blog/*

- glob: "**/README.md"
path: _index.md
frontMatter: &justTitleFrontMatter
Expand Down
11 changes: 11 additions & 0 deletions docs/blog/welcome.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Welcome to Thanos Blog Space!
author: Thanos Team
date: 2022-11-07
---

Welcome 👋🏼

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!

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).
3 changes: 3 additions & 0 deletions website/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
<li class="nav-item">
{{ partial "versioning/version-picker.html" . }}
</li>
<li class="nav-item">
<a class="nav-link" href="/blog">Blog</a>
</li>
<li class="nav-item">
<a href="https://github.com/{{ .Site.Params.GithubUser }}/{{ .Site.Params.GithubProject }}" class="nav-link"><i class="fab fa-fw fa-github"></i> GitHub</a>
</li>
Expand Down
1 change: 1 addition & 0 deletions website/layouts/partials/versioning/version-picker.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
{{- range .Site.Sections.Reverse }}
{{- $version := .Section }}
{{- if eq $version "blog" }}{{continue}}{{end}}
<a class="dropdown-item" href="{{ printf "../../../../%s" $version }}/thanos/getting-started.md">
{{ $version }}
</a>
Expand Down

0 comments on commit 3fb1abf

Please sign in to comment.