Parcourir la source

add meta info for staging and drone file

Karathan il y a 6 ans
Parent
révision
60caac6e2a
4 fichiers modifiés avec 90 ajouts et 1 suppressions
  1. 27
    0
      .drone.yml
  2. 50
    0
      config/config-staging.yml
  3. 12
    0
      content/_meta-staging.md
  4. 1
    1
      content/_meta.md

+ 27
- 0
.drone.yml Voir le fichier

@@ -0,0 +1,27 @@
1
+pipeline:  
2
+  deploy_staging:
3
+    image: appleboy/drone-scp
4
+    host: gitlab.karathan.at
5
+    port: 22
6
+    target: /var/www/blog-staging
7
+    source: *
8
+    secrets: [ ssh_password, ssh_username ]
9
+    branches: [ staging ]
10
+  
11
+  deploy_staging_config:
12
+    image: appleboy/drone-scp
13
+    host: gitlab.karathan.at
14
+    port: 22
15
+    target: /var/www/blog-staging/config/config.yml
16
+    source: config/config-staging.yml
17
+    secrets: [ ssh_password, ssh_username ]
18
+    branches: [ staging ]
19
+
20
+  deploy_staging_meta:
21
+    image: appleboy/drone-scp
22
+    host: gitlab.karathan.at
23
+    port: 22
24
+    target: /var/www/blog-staging/content/_meta.md
25
+    source: content/_meta-staging.md
26
+    secrets: [ ssh_password, ssh_username ]
27
+    branches: [ staging ]

+ 50
- 0
config/config-staging.yml Voir le fichier

@@ -0,0 +1,50 @@
1
+##
2
+# Basic
3
+#
4
+site_title: Karathan                # The title of your website
5
+base_url: https://staging.karathan.at   # Pico will try to guess its base URL, if this fails, override it here
6
+                                    #     Example: http://example.com/pico/
7
+rewrite_url: true                   # A boolean (true or false) indicating whether URL rewriting is forced
8
+timezone: UTC                       # Your PHP installation might require you to manually specify a timezone
9
+
10
+##
11
+# Theme
12
+#
13
+theme: stellar                      # The name of your custom theme
14
+theme_url: ~                        # Pico will try to guess the URL to the themes dir of your installation
15
+                                    #     If this fails, override it here. Example: http://example.com/pico/themes/
16
+theme_config:
17
+    widescreen: false               # Default theme: Use more horicontal space (i.e. make the site container wider)
18
+twig_config:
19
+    cache: false                    # Enable Twig template caching by specifying a path to a writable directory
20
+    autoescape: false               # Let Twig escape variables by default
21
+    debug: false                    # Enable Twig's debugging mode
22
+
23
+##
24
+# Content
25
+#
26
+date_format: %D %T                  # Pico's default date format
27
+                                    #     See http://php.net/manual/en/function.strftime.php for more info
28
+pages_order_by_meta: author         # Sort pages by meta value "author" (set "pages_order_by" to "meta")
29
+pages_order_by: alpha               # Change how Pico sorts pages ("alpha" for alphabetical order, "date", or "meta")
30
+pages_order: asc                    # Sort pages in ascending ("asc") or descending ("desc") order
31
+content_dir: content/               # The path to Pico's content directory
32
+content_ext: .md                    # The file extension of your Markdown files
33
+content_config:
34
+    extra: true                     # Use the Parsedown Extra parser to support extended markup
35
+                                    #     See https://michelf.ca/projects/php-markdown/extra/ for more info
36
+    breaks: false                   # A boolean indicating whether breaks in the markup should be reflected in the
37
+                                    #     parsed contents of the page
38
+    escape: false                   # Escape HTML markup in your content files; don't confuse this with some sort of
39
+                                    #     safe mode, enabling this doesn't allow you to process untrusted user input!
40
+    auto_urls: true                 # Automatically link URLs found in your markup
41
+
42
+##
43
+# Plugins
44
+#
45
+DummyPlugin.enabled: false          # Force the plugin "DummyPlugin" to be disabled
46
+
47
+##
48
+# Custom
49
+#
50
+my_custom_setting: Hello World!     # You can access custom settings in themes using {{ config.my_custom_setting }}

+ 12
- 0
content/_meta-staging.md Voir le fichier

@@ -0,0 +1,12 @@
1
+---
2
+social:
3
+    - title: "Gitea"
4
+      url: "https://gitlab.karathan.at"
5
+      icon: "fa-github alt"
6
+Email: "philipp@karathan.at"
7
+FooterTitle: "Support"
8
+FooterText: "Maybe add some buy me a coffee button idk"
9
+Slogan: "Eisiger Wind trägt mein Lied über's Feld"
10
+Copyright: "Karathan"
11
+Branch: "staging"
12
+---

+ 1
- 1
content/_meta.md Voir le fichier

@@ -6,7 +6,7 @@ social:
6 6
 Email: "philipp@karathan.at"
7 7
 FooterTitle: "Support"
8 8
 FooterText: "Maybe add some buy me a coffee button idk"
9
-Slogan: "Eisiger Wind trägt mein Lied übers Feld"
9
+Slogan: "Eisiger Wind trägt mein Lied über's Feld"
10 10
 Copyright: "Karathan"
11 11
 Branch: "dev"
12 12
 ---