From 21a13fde3d9e0e1180907040a1444b3ac54b8f3a Mon Sep 17 00:00:00 2001 From: karthik Date: Fri, 6 Dec 2019 15:27:56 +0530 Subject: test ci --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++ layouts/_default/list.html | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..fd12298 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,28 @@ +image: registry.gitlab.com/pages/hugo:latest + +#variables: +# GIT_SUBMODULE_STRATEGY: recursive + +#test: +# script: +# - hugo + +pages: + script: + - git clone https://github.com/gohugoio/hugobasicexample.git && mkdir -p hugobasicexample/themes/monopriv + - cp -r archetypes \ + exampleSite \ + images \ + layouts \ + resources \ + static \ + theme.toml \ + hugobasicexample/themes/monopriv/ && ls + - cd hugobasicexample/ + - mv themes/monopriv/exampleSite/config.toml . + - hugo -b https://kskarthik.gitlab.io/monopriv/ + artifacts: + paths: + - public + only: + - master diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 7967826..3c267c7 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -8,7 +8,7 @@ {{else}}
{{range .Pages}} -
+
{{ .Title }}
{{if eq .Section "post"}} {{.PublishDate.Format "January 2, 2006"}} | {{.ReadingTime}} minute read -- cgit v1.2.3