Browse Source

add branch to staging

Karathan 6 years ago
parent
commit
abddc04690

+ 1
- 0
.drone.yml View File

@@ -3,6 +3,7 @@ pipeline:
3 3
     image: debian:stretch
4 4
     commands:
5 5
       - mv content/_meta-staging.md content/_meta.md
6
+      - sed -i s/{0xDEADBEEF}/$(git rev-parse --short HEAD)/g content/_meta.md
6 7
       - mv config/config-staging.yml config/config.yml
7 8
     when:
8 9
       branch: staging

+ 1
- 0
content/_meta-staging.md View File

@@ -9,4 +9,5 @@ FooterText: "Maybe add some buy me a coffee button idk"
9 9
 Slogan: "Eisiger Wind trägt mein Lied über's Feld"
10 10
 Copyright: "Karathan"
11 11
 Branch: "staging"
12
+Commit: "{0xDEADBEEF}"
12 13
 ---

+ 1
- 0
content/_meta.md View File

@@ -9,4 +9,5 @@ FooterText: "Maybe add some buy me a coffee button idk"
9 9
 Slogan: "Eisiger Wind trägt mein Lied über's Feld"
10 10
 Copyright: "Karathan"
11 11
 Branch: "dev"
12
+Commit: "{0xDEADBEEF}"
12 13
 ---

+ 4
- 1
themes/stellar/article.twig View File

@@ -24,7 +24,10 @@
24 24
 						<p>{{pages._meta.meta.Slogan}}
25 25
 						{% if pages._meta.meta.Branch %}
26 26
 							<br />
27
-							<span class="icon fa-code-fork"></span> {{pages._meta.meta.Branch}}
27
+							<span class="icon fa-code-fork"></span> {{pages._meta.meta.Branch}} 
28
+							{% if pages._meta.meta.Commit %}
29
+							- {{pages._meta.meta.Commit}} 
30
+							{% endif %}
28 31
 						{% endif %}
29 32
 						</p>
30 33
 					</header>

+ 4
- 1
themes/stellar/generic.twig View File

@@ -24,7 +24,10 @@
24 24
 						<p>{{pages._meta.meta.Slogan}}
25 25
 						{% if pages._meta.meta.Branch %}
26 26
 							<br />
27
-							<span class="icon fa-code-fork"></span> {{pages._meta.meta.Branch}}
27
+							<span class="icon fa-code-fork"></span> {{pages._meta.meta.Branch}} 
28
+							{% if pages._meta.meta.Commit %}
29
+							- {{pages._meta.meta.Commit}} 
30
+							{% endif %}
28 31
 						{% endif %}
29 32
 						</p>
30 33
 					</header>

+ 4
- 1
themes/stellar/index.twig View File

@@ -23,7 +23,10 @@
23 23
 						<p>{{pages._meta.meta.Slogan}}
24 24
 						{% if pages._meta.meta.Branch %}
25 25
 							<br />
26
-							<span class="icon fa-code-fork"></span> {{pages._meta.meta.Branch}}
26
+							<span class="icon fa-code-fork"></span> {{pages._meta.meta.Branch}} 
27
+							{% if pages._meta.meta.Commit %}
28
+							- {{pages._meta.meta.Commit}} 
29
+							{% endif %}
27 30
 						{% endif %}
28 31
 						</p>
29 32
 					</header>