diff --git a/assets/sass/_layout.scss b/assets/sass/_layout.scss index 769b83e..12a07ce 100644 --- a/assets/sass/_layout.scss +++ b/assets/sass/_layout.scss @@ -15,7 +15,6 @@ html,body { } - img { max-width: 100%; } @@ -31,15 +30,20 @@ img { margin-top: 10px; } .mt25 { - margin-top: 0; + margin-top: 10; @include media-query($on-palm) { margin-top: 25px; } } -.p20{ +.p10 { + padding: 10px 0; +} + +.p20 { padding: 20px 0; } + .navbar-brand { font-weight: 900; font-size: 1.85em; @@ -55,9 +59,9 @@ img { .panel { margin-bottom: 2em; - border: none; - box-shadow: 0 0 1px rgba(0,0,0,.4); - transition: all 0.3s ease; + border: none; + box-shadow: 0 0 1px rgba(0,0,0,.4); + transition: all 0.3s ease; &:hover, &:focus, &:active { box-shadow: 0px 1px 0px #ccc, @@ -80,8 +84,6 @@ img { } - - footer { border-top: 1px solid $grey-color-light; } @@ -90,8 +92,8 @@ footer { list-style: none; display: inline; margin-left: 10px; - padding: 5px 8px; - font-size: 1.25em; + padding: 4px 3px; + font-size: 1.4em; } .social:hover { opacity: 0.7; diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ba4014d..d543601 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,9 +17,6 @@ - {{ with .Site.Params.analytics }} - {{ partial "analytics.html" . }} - {{ end }} \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 1d50576..7cef86b 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -6,67 +6,17 @@ Front Matter -
+
- {{ $paginator := .Paginate (where .Site.RegularPages "Section" "posts") }} - {{ range $paginator.Pages }} - - - {{ end }} + {{ $paginator := .Paginate (where .Site.RegularPages "Section" "posts") }} + {{ range $paginator.Pages }} + {{ partial "card.html" . }} + {{ end }}
-
-
- {{ if gt .Paginator.TotalPages 1 }} -
    - {{ if .Paginator.HasPrev }} -
  • « {{i18n "prev"}}
  • - {{ else }} -
  • « {{i18n "prev"}}
  • - {{ end }} - - {{ $scratch := newScratch }} - {{ $scratch.Set "current" .Paginator.PageNumber }} - - {{ range .Paginator.Pagers }} - {{ if eq .PageNumber ($scratch.Get "current") }} -
  • {{ .PageNumber }}
  • - {{ else }} -
  • {{ .PageNumber }}
  • - {{ end }} - {{ end }} - - {{ if .Paginator.HasNext }} -
  • {{i18n "next"}} »
  • - {{ else }} -
  • {{i18n "next"}} »
  • - {{ end }} -
- {{ end }} - -
-
+ {{ partial "pagination.html" . }}
diff --git a/layouts/partials/card.html b/layouts/partials/card.html new file mode 100644 index 0000000..823f1f8 --- /dev/null +++ b/layouts/partials/card.html @@ -0,0 +1,22 @@ + +
+ +
+ + {{ if .Params.img }} + {{ .Title }} + {{ else if .Site.Params.defaultImage }} + {{ .Site.Title }} + {{ end }} + +
+

{{ .Title | truncate 25 }}

+
+ +
+ {{ .Summary | plainify | truncate 100 }} +
+
+
+
+ diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 1220891..4aa3070 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,26 +1,32 @@ diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html new file mode 100644 index 0000000..d14ef77 --- /dev/null +++ b/layouts/partials/pagination.html @@ -0,0 +1,32 @@ +
+
+ {{ if gt .Paginator.TotalPages 1 }} + + {{ end }} + +
+
+ diff --git a/layouts/taxonomy/list.html b/layouts/taxonomy/list.html index 09a76ea..64646e2 100644 --- a/layouts/taxonomy/list.html +++ b/layouts/taxonomy/list.html @@ -7,67 +7,17 @@
- {{ $paginator := .Paginate (.Data.Pages) }}
- {{ range $paginator.Pages }} -
- -
- - {{ if .Params.img }} - {{ .Title }} - {{ else }} - {{ .Site.Title }} - {{ end }} - -
-

{{ .Title | truncate 25 }}

-
- -
- {{ .Summary | plainify | truncate 180 }} -
-
-
-
- - {{ end }} + {{ $paginator := .Paginate (.Data.Pages) }} + {{ range $paginator.Pages }} + {{ partial "card.html" . }} + {{ end }}
-
-
- {{ if gt .Paginator.TotalPages 1 }} - - {{ end }} - -
-
+ {{ partial "pagination.html" . }}
diff --git a/theme.yaml b/theme.yaml index e6760a5..794d54f 100644 --- a/theme.yaml +++ b/theme.yaml @@ -1,7 +1,6 @@ -# theme.yaml template for a Hugo theme -# See https://github.com/gohugoio/hugoThemes#themetoml for an example +# theme.yaml -name: Cybercards +name: cybercards license: "MIT" licenselink: "https://github.com/bul-ikana/hugo-cards/blob/master/LICENSE.md" description: "A bootstrap based minimal hugo theme based on webjeda-cards" @@ -11,8 +10,8 @@ features: [] min_version: "0.57.0" author: - name: "Hugo Aguirre" - homepage: "https://bool.netlify.com" + name: "cyberconcepts.org team" + homepage: "https://www.cyberconcepts.org" # If porting an existing theme original: