It would help to actually spell the flag correctly
continuous-integration/drone/push Build is failing Details

drafts
Nick Dumas 5 months ago
parent 5ae9fac278
commit eabf6e747c

@ -9,7 +9,7 @@ steps:
- name: hugo - name: hugo
image: code.ndumas.com/ndumas/hugo image: code.ndumas.com/ndumas/hugo
commands: commands:
- hugo -d /drone/src/public/ --baseUrl https://blog.ndumas.com - hugo -d /drone/src/public/ --baseURL https://blog.ndumas.com
- name: publish - name: publish
depends_on: depends_on:
- hugo - hugo
@ -38,7 +38,7 @@ steps:
- name: hugo - name: hugo
image: code.ndumas.com/ndumas/hugo image: code.ndumas.com/ndumas/hugo
commands: commands:
- hugo -d /drone/src/public/ --baseUrl https://dev.blog.ndumas.com - hugo -d /drone/src/public/ --baseURL https://dev.blog.ndumas.com
- name: publish - name: publish
depends_on: depends_on:
- hugo - hugo
@ -68,7 +68,7 @@ steps:
- name: hugo - name: hugo
image: code.ndumas.com/ndumas/hugo image: code.ndumas.com/ndumas/hugo
commands: commands:
- hugo -DF -d /drone/src/public/ --baseUrl https://drafts.blog.ndumas.com - hugo -DF -d /drone/src/public/ --baseURL https://drafts.blog.ndumas.com
- name: publish - name: publish
depends_on: depends_on:
- hugo - hugo

@ -1,3 +1,3 @@
{{ $baseURL := (urls.AbsURL "") }} {{ $baseURL := urls.AbsURL "" }}
{{ $baseURL }} {{ $baseURL }}
<script defer data-domain='{{ if eq $baseURL "https://blog.ndumas.com/" }}blog.ndumas.com{{ else }}dev.blog.ndumas.com{{ end }}' src="https://analytics.ndumas.com/js/script.js"></script> <script defer data-domain='{{ if eq $baseURL "https://blog.ndumas.com/" }}blog.ndumas.com{{ else }}dev.blog.ndumas.com{{ end }}' src="https://analytics.ndumas.com/js/script.js"></script>

Loading…
Cancel
Save