Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Some changes to layout and CSS #102

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .Rhistory
Empty file.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
exampleSite/public
.Rproj.user
22 changes: 21 additions & 1 deletion assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,25 @@ textarea {
}
}
}

/*Blog post image attributes*/

.postimg {
display:block;
width:50%;
margin-left:auto;
margin-right:auto;

}

.imgcaption {
font-size:.5em;
font-style:italic;
font-family: "Raleway", Helvetica, sans-serif;
color:#535353;
text-align:center;
}


/* Pagination */

Expand Down Expand Up @@ -1561,7 +1580,7 @@ textarea {
flex: 1 1 100%;
}
.mini-post {
background: #ffffff;
background: #000000;
border: solid 1px rgba(160, 160, 160, 0.3);
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -1870,3 +1889,4 @@ textarea {
page-break-after: avoid;
}
}

13 changes: 13 additions & 0 deletions hugo future imperfect slim.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX
2 changes: 1 addition & 1 deletion layouts/partials/site-sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h1>{{ i18n "recent_posts" }}</h1>
</header>
{{ range first (.Site.Params.sidebar.postAmount | default 5) (where .Site.Pages "Type" "post") }}
<article class="mini-post">
<article class="mini-post" style="background-color:#FFFFFF">
<section>
{{ .Render "featured" }}
</section>
Expand Down
6 changes: 5 additions & 1 deletion layouts/post/featured.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{{ if .Params.images }}
<figure>
<a href="{{ .RelPermalink }}" class="image featured">
{{ range first 1 .Params.images }}
<img src="{{ . | relURL }}" alt="">
<img class = "postimg" src="{{ . | relURL }}" alt="">
{{ end }}
</a>
<figurecaption class= "caption"> {{ .Params.caption }} </figurecaption>
</figure>

{{ else if .Params.featured }}
<a href="{{ .RelPermalink }}" class="image featured">
<img src="{{ (path.Join "img" (cond (eq .Params.featuredpath "date") (.Page.Date.Format "2006/01") (.Params.featuredpath)) .Params.featured) | relURL }}" alt="{{ .Params.featuredalt }}">
Expand Down