aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgabrielgio <gabriel.giovanini@pm.me>2020-08-22 16:46:19 +0200
committergabrielgio <gabriel.giovanini@pm.me>2020-08-22 16:46:19 +0200
commit12e8802cd9829580275027533ce898e484d003d1 (patch)
tree2280c613f0b03c97d96d76aca571e5958812bc9e
parent735a7d73571f859d66a15611ced9e5bad97e94ce (diff)
downloadgabrielgio.me-12e8802cd9829580275027533ce898e484d003d1.tar.gz
gabrielgio.me-12e8802cd9829580275027533ce898e484d003d1.tar.bz2
gabrielgio.me-12e8802cd9829580275027533ce898e484d003d1.zip
feat: Add log for gitlab pages
Just a small explanation how to publish lein cljs into Gitlab pages.
-rw-r--r--content/logs/2020-08-22-genpass.org35
-rw-r--r--themes/flamingo/layouts/_default/baseof.html4
2 files changed, 35 insertions, 4 deletions
diff --git a/content/logs/2020-08-22-genpass.org b/content/logs/2020-08-22-genpass.org
new file mode 100644
index 0000000..595295f
--- /dev/null
+++ b/content/logs/2020-08-22-genpass.org
@@ -0,0 +1,35 @@
+---
+title: "Moveing from github to gitlab pages"
+date: 2020-09-22
+tags: ['gitlab']
+---
+
+This was quite simple, I had just to create a simple Gitlab pipeline job and
+publish to pages this is done by:
+
+#+BEGIN_SRC
+image: clojure:lein-2.7.0
+
+before_script:
+ - lein deps
+
+test:
+ script:
+ - lein test
+
+pages:
+ stage: deploy
+ script:
+ - lein package
+ artifacts:
+ paths:
+ - public
+ only:
+ - master
+
+#+END_SRC
+
+- before_script :: will download all the dependencies with ~lein deps~.
+- test :: is self explanatory.
+- pages :: will compile the cljs into js with ~lein package~ and publish it into
+ pages.
diff --git a/themes/flamingo/layouts/_default/baseof.html b/themes/flamingo/layouts/_default/baseof.html
index 095a2e5..f228281 100644
--- a/themes/flamingo/layouts/_default/baseof.html
+++ b/themes/flamingo/layouts/_default/baseof.html
@@ -15,11 +15,7 @@
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
- {{ with .OutputFormats.Get "RSS" -}}
- {{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
- {{- end }}
- <!-- Meta tags -->
{{ partial "meta" . }}
</head>
<body>