Browse Source

add branch to staging

Karathan 6 years ago
parent
commit
abddc04690

+ 1
- 0
.drone.yml View File

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

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

9
 Slogan: "Eisiger Wind trägt mein Lied über's Feld"
9
 Slogan: "Eisiger Wind trägt mein Lied über's Feld"
10
 Copyright: "Karathan"
10
 Copyright: "Karathan"
11
 Branch: "staging"
11
 Branch: "staging"
12
+Commit: "{0xDEADBEEF}"
12
 ---
13
 ---

+ 1
- 0
content/_meta.md View File

9
 Slogan: "Eisiger Wind trägt mein Lied über's Feld"
9
 Slogan: "Eisiger Wind trägt mein Lied über's Feld"
10
 Copyright: "Karathan"
10
 Copyright: "Karathan"
11
 Branch: "dev"
11
 Branch: "dev"
12
+Commit: "{0xDEADBEEF}"
12
 ---
13
 ---

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

24
 						<p>{{pages._meta.meta.Slogan}}
24
 						<p>{{pages._meta.meta.Slogan}}
25
 						{% if pages._meta.meta.Branch %}
25
 						{% if pages._meta.meta.Branch %}
26
 							<br />
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
 						{% endif %}
31
 						{% endif %}
29
 						</p>
32
 						</p>
30
 					</header>
33
 					</header>

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

24
 						<p>{{pages._meta.meta.Slogan}}
24
 						<p>{{pages._meta.meta.Slogan}}
25
 						{% if pages._meta.meta.Branch %}
25
 						{% if pages._meta.meta.Branch %}
26
 							<br />
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
 						{% endif %}
31
 						{% endif %}
29
 						</p>
32
 						</p>
30
 					</header>
33
 					</header>

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

23
 						<p>{{pages._meta.meta.Slogan}}
23
 						<p>{{pages._meta.meta.Slogan}}
24
 						{% if pages._meta.meta.Branch %}
24
 						{% if pages._meta.meta.Branch %}
25
 							<br />
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
 						{% endif %}
30
 						{% endif %}
28
 						</p>
31
 						</p>
29
 					</header>
32
 					</header>