Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/calintat/minimal
Browse files Browse the repository at this point in the history
  • Loading branch information
calintat committed Oct 31, 2019
2 parents 0545791 + 296c9be commit 182410a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<h2>{{ .Title }}</h2>

{{ range (.Paginator 4).Pages }} {{ partial "list-item" . }} {{ end }}
{{ range (.Paginator 5).Pages }} {{ partial "list-item" . }} {{ end }}

</main>

Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h5>{{ .Description }}</h5>
{{ partial "tags" . }}
</div>

<br> <div class="text-justify">{{ .Content }}</div>
<div align="start" class="content">{{ .Content }}</div>

</main>

Expand Down
2 changes: 1 addition & 1 deletion layouts/post/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h5>{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006") }}</h5
{{ partial "tags" . }}
</div>

<br> <div class="text-justify">{{ .Content }}</div>
<div align="start" class="content">{{ .Content }}</div>

<!-- Related posts -->
{{ $related := first 3 (where (where (where .Site.Pages.ByDate.Reverse ".Type" "==" "post") ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
Expand Down
34 changes: 21 additions & 13 deletions static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@ img {
max-width: 100%;
}

/* Footer */

.copyright {
margin: 15px 0;
}

/* Home page */
/* Homepage */

.intro {
transform: translateY(22vh);
Expand All @@ -42,13 +36,21 @@ img {
font-size: 3vmin;
}

.intro > .profile {
/* Page content */

.content {
padding-top: 20px;
}

/* Profile picture */

.profile {
width: 10vh;
height: 10vh;
border-radius: 50%;
}

/* Apply accent colour to links */
/* Colored links */

a:link, a:visited {
color: var(--accent);
Expand All @@ -62,7 +64,13 @@ a:hover {
color: var(--accent) !important;
}

/* Paginator at bottom of list view */
/* Copyright message */

.copyright {
margin: 15px 0;
}

/* Paginator */

.pages {
padding: 15px 0;
Expand All @@ -72,7 +80,7 @@ a:hover {
padding: 0 15px;
}

/* List item for posts and projects */
/* List item for posts/projects */

.item {
padding: 10px 0;
Expand All @@ -82,14 +90,14 @@ a:hover {
background-color: var(--accent);
}

/* Navigation bar icons */
/* Navigation icons */

.navbar-icon {
font-size: 125%;
display: inline-block !important;
}

/* Coloured borders at top and bottom of the page */
/* Colored borders at top/bottom of page */

.navbar.navbar-default {
border-top: var(--border-width) solid var(--accent);
Expand Down

0 comments on commit 182410a

Please sign in to comment.