Bläddra i källkod

add branch to staging

Karathan 6 år sedan
förälder
incheckning
abddc04690
6 ändrade filer med 15 tillägg och 3 borttagningar
  1. 1
    0
      .drone.yml
  2. 1
    0
      content/_meta-staging.md
  3. 1
    0
      content/_meta.md
  4. 4
    1
      themes/stellar/article.twig
  5. 4
    1
      themes/stellar/generic.twig
  6. 4
    1
      themes/stellar/index.twig

+ 1
- 0
.drone.yml Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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>