Skip to content

Commit 0c9bbcb

Browse files
committed
outdated posts
1 parent b1804c4 commit 0c9bbcb

14 files changed

Lines changed: 98 additions & 57 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea/
22
_site/
3+
.sass-cache/
34
Gemfile.lock
45
.DS_Store

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@
1212
https://github.com/Starefossen/docker-github-pages
1313

1414
```bash
15-
docker run -it --rm -v "$PWD":/usr/src/app -p "4000:4000" starefossen/github-pages jekyll serve -d /_site --watch --force_polling -H 0.0.0.0 -P 4000 --drafts
15+
# in other dir
16+
git clone https://github.com/github/pages-gem.git
17+
cd pages-gem
18+
make image
19+
# in current dir
20+
# disable markdown: CommonMarkGhPages in _config.yml
21+
docker run -it --rm -v "$PWD":/src/site -p "4000:4000" gh-pages /bin/bash -c "bundle install --gemfile=/src/site/Gemfile; jekyll serve --watch --force_polling -H 0.0.0.0 -P 4000 --drafts"
1622
```
1723

1824
## Dependencies

_includes/outdated_title.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{%- if include.post.outdated -%}[Outdated] {%- endif %}

_includes/post_listing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<h3>
1717
<a class="post-link" href="{{ post.url | relative_url }}">
18-
{{ post.title | escape }}
18+
{%- include outdated_title.html post=post -%}{{ post.title | escape }}
1919
</a>
2020
</h3>
2121
{%- if site.show_excerpts -%}

_includes/warning.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<div class="warning">
2+
<div>
3+
<h3 class="warning-icon">Warning</h3>
4+
<p>{{ include.content }}</p>
5+
</div>
6+
</div>

_layouts/post.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
55

66
<header class="post-header">
7-
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
7+
<h1 class="post-title p-name" itemprop="name headline">{%- include outdated_title.html post=page -%}{{ page.title | escape }}</h1>
88
<p class="post-meta">
99
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
1010
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
@@ -27,6 +27,9 @@ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}
2727
</header>
2828

2929
<div class="post-content e-content" itemprop="articleBody">
30+
{%- if page.outdated -%}
31+
{% include warning.html content="This post is outdated. Please refer to the latest documentation, common sense, your favorite search engine or LLM :stuck_out_tongue_winking_eye:" %}
32+
{%- endif -%}
3033
{{ content }}
3134
</div>
3235

_posts/2019-07-06-coreos-k8s-home-baremetal-01.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: "Home pet cluster. Kubernetes on CoreOS. Part 1: don't call us cattle!"
44
category: kubernetes
55
author: Maksym Romanowski
66
tags: [coreos, kubernetes, kubespray, nuc, udoo]
7+
outdated: true
78

89
---
910
I always wanted to run a small Kubernetes cluster at home.

_posts/2019-07-29-coreos-k8s-home-baremetal-02.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: "Home pet cluster. Kubernetes on CoreOS. Part 2: Spraying some kubes with
44
category: kubernetes
55
author: Maksym Romanowski
66
tags: [coreos, kubernetes, kubespray, nuc, udoo]
7+
outdated: true
78

89
---
910
At this point I have two Linux machines running CoreOS Container Linux.

_posts/2019-12-26-coreos-k8s-home-baremetal-03.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: "Home pet cluster. Kubernetes on CoreOS. Part 3: Ingress"
44
category: kubernetes
55
author: Maksym Romanowski
66
tags: [coreos, kubernetes, kubespray, nuc, udoo, metallb, nginx, cert-manager, openwrt, haproxy, oauth2-proxy, helm]
7+
outdated: true
78

89
---
910
My Kubernetes is up and running, and I've decided to expose certain services to the Internet, while keeping other services inside the home network.

_posts/2019-12-26-elasticsearch-32bit.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: "Running ElasticSearch on 32-bit Linux machine"
44
category: elasticsearch
55
author: Maksym Romanowski
66
tags: [elasticsearch, ELK, 32bit, i586]
7+
outdated: true
78

89
---
910
I have an old piece of hardware with [Atom D2700](https://ark.intel.com/content/www/us/en/ark/products/59683/intel-atom-processor-d2700-1m-cache-2-13-ghz.html) CPU, which according to ARK is capable of running x64 OS. Vendor, however, never released a BIOS with x64 support, and I was unable to find it on an Internet.
@@ -26,7 +27,7 @@ I've chosen official `deb` OSS distribution w/o JVM over `tar.gz` and commercial
2627
First things first, we need to prepare our OS:
2728

2829
{% raw %}
29-
```shell script
30+
```sh
3031
# I know, it's bad practice
3132
sudo -i
3233
export ES_VERSION=7.5.1
@@ -72,7 +73,7 @@ index 59f8bd5daf7..6a6b360726e 100644
7273
I am doing it on my macOS, which compiles Java much faster. Save `systemcallfilter-i386.patch` and navigate shell to the same directory (replace `<elasticsearch-host>` with your ES hostname):
7374

7475
{% raw %}
75-
```shell script
76+
```sh
7677
export ES_VERSION=7.5.1
7778

7879
# Prepare build environment
@@ -106,7 +107,7 @@ scp elasticsearch-${ES_VERSION}.jar <elasticsearch-host>:/tmp
106107

107108
Now we can continue (in the same shell with sudo and `ES_VERSION`):
108109
{% raw %}
109-
```shell script
110+
```sh
110111
# Replacing the ElasticSearch jar with the patched one
111112
mv /tmp/elasticsearch-${ES_VERSION}.jar /usr/share/elasticsearch/lib/
112113

0 commit comments

Comments
 (0)