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

github.com/samrobbins85/hugo-developer-portfolio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Robbins <samrobbinsgb@gmail.com>2020-06-29 18:32:41 +0300
committerSam Robbins <samrobbinsgb@gmail.com>2020-06-29 18:32:41 +0300
commit668fdedcbd247d8c7fe8813c3ea8851f13d955a4 (patch)
tree84229211c7cf9fe4baad179798bceff3bbc3b6ef
parent54ca3f6e2ee1ebe88bcf6d44b3794d9cea7e85bd (diff)
Improve sizing for portrait images
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html7
-rw-r--r--layouts/portfolio/list.html2
3 files changed, 8 insertions, 3 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 2f2b21f..552657b 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -24,7 +24,7 @@
</div>
</div>
<div class="uk-card-footer">
- <a href="{{.Permalink}}" class="uk-button uk-button-text">Read more</a>
+ <a href="{{.Permalink | relURL}}" class="uk-button uk-button-text">Read more</a>
</div>
</div>
</div>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 743357a..ed4b5f5 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -55,8 +55,13 @@
}
@media only screen and (min-width: 960px) {
- .content img{width:60%}}
+ .content img{max-width:60vw; max-height:60vh}
+ .content img{
+ max-width:60vw;
+ max-height:60vh
+ }
+ }
.content{
width: 90vw;
max-width: 1200px
diff --git a/layouts/portfolio/list.html b/layouts/portfolio/list.html
index 142d199..43388bb 100644
--- a/layouts/portfolio/list.html
+++ b/layouts/portfolio/list.html
@@ -32,7 +32,7 @@
<div class="uk-card-footer">
- <a href="{{.Permalink}}" class="uk-button uk-button-text">Read more</a>
+ <a href="{{.Permalink| relURL}}" class="uk-button uk-button-text">Read more</a>
</div>
</div>
</li>