From 6911ef1ab394327535266b383ea7c23321d10c40 Mon Sep 17 00:00:00 2001 From: Karthik Date: Wed, 22 Jan 2020 15:40:25 +0530 Subject: drop monospace for post title --- .gitlab-ci.yml | 7 +++---- layouts/_default/list.html | 4 ++-- layouts/_default/single.html | 19 +++++++++---------- layouts/index.html | 8 ++++---- layouts/partials/footer.html | 2 +- layouts/partials/hero.html | 2 +- static/css/main.css | 0 static/img/paper.jpg | Bin 0 -> 416817 bytes 8 files changed, 20 insertions(+), 22 deletions(-) create mode 100644 static/css/main.css create mode 100644 static/img/paper.jpg diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f425d04..f16ac31 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,15 +1,14 @@ image: registry.gitlab.com/pages/hugo:latest pages: + script: - apk add git - - git clone https://github.com/gohugoio/hugoBasicExample - - cd hugoBasicExample + - git clone https://github.com/gohugoio/hugoBasicExample && cd hugoBasicExample - git submodule add -f https://gitlab.com/kskarthik/monopriv themes/monopriv - mv themes/monopriv/exampleSite/config.toml . - hugo -b https://kskarthik.gitlab.io/monopriv/ - - cd .. - - mv hugoBasicExample/public . + - cd .. && mv hugoBasicExample/public . artifacts: paths: - public diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 3c267c7..8b6ccee 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,5 @@ {{define "main"}} -
+

{{.Title}}

{{if eq .Kind "taxonomyTerm"}} {{range $key, $value := .Data.Terms.Alphabetical}} @@ -11,7 +11,7 @@
{{ .Title }}
{{if eq .Section "post"}} - {{.PublishDate.Format "January 2, 2006"}} | {{.ReadingTime}} minute read + {{.PublishDate.Format "January 2, 2006"}} | {{.ReadingTime}} minute read {{end}}
{{end}} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 67e30dd..3e7a36c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,30 +1,29 @@ {{define "main"}} -{{ if eq .Section "post"}} -
-

{{.Title}}

+{{ if eq .Section "post"}} +
+

{{.Title}}

Posted on {{ .PublishDate.Format "January 2, 2006" }} | {{.ReadingTime}} minute read -

{{ .Content }}

+
+ {{ .Content }} +
tags: {{- range .Params.tags -}} {{ . }} {{ end }} -
+
{{ if .Site.Params.disqus }} {{ template "_internal/disqus.html" . }} {{ else }} - Please mail your comments to {{.Site.Params.email}}
+ Please mail your comments to {{.Site.Params.email}}
{{end}} -
{{else}} - -
+

{{.Title}}

{{ .Content }}
- {{end}} {{end}} diff --git a/layouts/index.html b/layouts/index.html index 434fa48..1837ccc 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,13 +1,13 @@ {{define "main"}} {{- partial "hero.html" . -}} -
-

Recent Posts

+
+

Recent Posts

{{range first 5 .Site.RegularPages }} {{if eq .Section "post"}}
-
{{.Title}}
- {{ .PublishDate.Format "January 2, 2006" }} +
{{.Title}}
+ {{ .PublishDate.Format "January 2, 2006" }}
{{end}} {{end}} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 6307626..ad609f3 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,6 +1,6 @@
-
+
\ No newline at end of file diff --git a/static/css/main.css b/static/css/main.css new file mode 100644 index 0000000..e69de29 diff --git a/static/img/paper.jpg b/static/img/paper.jpg new file mode 100644 index 0000000..c5c2a7c Binary files /dev/null and b/static/img/paper.jpg differ -- cgit v1.2.3