Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/humrochagf/colordrop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHumberto Rocha <humrochagf@gmail.com>2020-10-25 19:44:41 +0300
committerHumberto Rocha <humrochagf@gmail.com>2020-10-25 19:44:41 +0300
commit76ccbf7303bfc243546504bb553b76b25e74f9e3 (patch)
treee8ca5532a6704a08fc7ee4c4f1cec177dbbdf4e3
parent4ac4e538409a4e0b360dd4ea82e16298adbd026d (diff)
Add image and summary to listing pagesv1.5.0
-rw-r--r--assets/sass/_global.scss5
-rw-r--r--assets/sass/_publish.scss2
-rw-r--r--layouts/_default/taxonomy.html4
-rw-r--r--layouts/blog/list.html4
4 files changed, 12 insertions, 3 deletions
diff --git a/assets/sass/_global.scss b/assets/sass/_global.scss
index 0919388..ffeb72d 100644
--- a/assets/sass/_global.scss
+++ b/assets/sass/_global.scss
@@ -37,6 +37,11 @@ main {
padding-bottom: 20px;
}
+ article .list-image {
+ width: 100%;
+ margin: 0 0 20px;
+ }
+
p img, .videogif, .itchio, .twitter-tweet {
width: 100%;
margin-left: 0;
diff --git a/assets/sass/_publish.scss b/assets/sass/_publish.scss
index 5a35b21..58190a6 100644
--- a/assets/sass/_publish.scss
+++ b/assets/sass/_publish.scss
@@ -1,5 +1,5 @@
.publish {
font-size: 12.8px;
color: lighten($theme-color, 40%);
- margin-bottom: 32px;
+ margin-bottom: 26px;
}
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
index 40515bb..3f8f808 100644
--- a/layouts/_default/taxonomy.html
+++ b/layouts/_default/taxonomy.html
@@ -13,7 +13,9 @@
{{ partial "publish" . }}
- {{ .Description }}
+ <img class="list-image" src="{{ index .Params.images 0 | safeURL }}" alt="{{ .Title }}" title="{{ .Title }}" />
+
+ {{ .Summary }}
</article>
<hr>
diff --git a/layouts/blog/list.html b/layouts/blog/list.html
index d5cb55b..30f32ee 100644
--- a/layouts/blog/list.html
+++ b/layouts/blog/list.html
@@ -13,7 +13,9 @@
{{ partial "publish" . }}
- {{ .Description }}
+ <img class="list-image" src="{{ index .Params.images 0 | safeURL }}" alt="{{ .Title }}" title="{{ .Title }}" />
+
+ {{ .Summary }}
</article>
<hr>