Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prettify the grid page #118

Merged
merged 1 commit into from
Jun 5, 2017
Merged
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
213 changes: 213 additions & 0 deletions config.codekit3
Original file line number Diff line number Diff line change
Expand Up @@ -4683,6 +4683,24 @@
"oO": 0,
"oS": 1
},
"\/CONTRIBUTING.md": {
"cS": 0,
"eF": 1,
"eL": 1,
"eLB": 0,
"ema": 1,
"eSQ": 1,
"ft": 4096,
"oA": 1,
"oAP": "\/CONTRIBUTING.html",
"oF": 0,
"oFM": 0,
"oS": 0,
"pHT": 0,
"pME": 1,
"rFN": 0,
"uCM": 0
},
"\/exampleSite\/.gitignore": {
"ft": 8192,
"oA": 2,
Expand Down Expand Up @@ -5167,6 +5185,12 @@
"oAP": "\/exampleSite\/public\/books\/index.html",
"oF": 0
},
"\/exampleSite\/public\/categories\/index.xml": {
"ft": 8192,
"oA": 2,
"oAP": "\/exampleSite\/public\/categories\/index.xml",
"oF": 0
},
"\/exampleSite\/public\/contact\/index.html": {
"ft": 8192,
"oA": 2,
Expand Down Expand Up @@ -5219,6 +5243,16 @@
"oF": 0,
"oS": 0
},
"\/exampleSite\/public\/css\/grey.css": {
"aP": 1,
"bl": 0,
"ft": 16,
"ma": 0,
"oA": 1,
"oAP": "\/exampleSite\/public\/css\/grey-min.css",
"oF": 0,
"oS": 0
},
"\/exampleSite\/public\/css\/jssocials-theme-plain.css": {
"aP": 1,
"bl": 0,
Expand Down Expand Up @@ -5831,6 +5865,12 @@
"oAP": "\/exampleSite\/public\/fonts\/FontAwesome.otf",
"oF": 0
},
"\/exampleSite\/public\/fonts\/FontAwesome0.otf": {
"ft": 8192,
"oA": 2,
"oAP": "\/exampleSite\/public\/fonts\/FontAwesome0.otf",
"oF": 0
},
"\/exampleSite\/public\/fonts\/glyphicons-halflings-regular.eot": {
"ft": 8192,
"oA": 2,
Expand Down Expand Up @@ -5883,6 +5923,46 @@
"oAP": "\/exampleSite\/public\/guest\/mstratton\/index.html",
"oF": 0
},
"\/exampleSite\/public\/img\/episode\/april.jpg": {
"ft": 16384,
"iS": 45637,
"oA": 0,
"oAP": "\/exampleSite\/public\/img\/episode\/april.jpg",
"oF": 0,
"oIPL": 0,
"opt": 0,
"q": 100
},
"\/exampleSite\/public\/img\/episode\/aug.jpg": {
"ft": 16384,
"iS": 19793,
"oA": 0,
"oAP": "\/exampleSite\/public\/img\/episode\/aug.jpg",
"oF": 0,
"oIPL": 0,
"opt": 0,
"q": 100
},
"\/exampleSite\/public\/img\/episode\/dec.jpg": {
"ft": 16384,
"iS": 79354,
"oA": 0,
"oAP": "\/exampleSite\/public\/img\/episode\/dec.jpg",
"oF": 0,
"oIPL": 0,
"opt": 0,
"q": 100
},
"\/exampleSite\/public\/img\/episode\/default-banner.jpg": {
"ft": 16384,
"iS": 116684,
"oA": 0,
"oAP": "\/exampleSite\/public\/img\/episode\/default-banner.jpg",
"oF": 0,
"oIPL": 0,
"opt": 0,
"q": 100
},
"\/exampleSite\/public\/img\/episode\/default-social.jpg": {
"ft": 16384,
"iS": 147346,
Expand All @@ -5903,6 +5983,96 @@
"opt": 0,
"q": 100
},
"\/exampleSite\/public\/img\/episode\/feb.jpg": {
"ft": 16384,
"iS": 49956,
"oA": 0,
"oAP": "\/exampleSite\/public\/img\/episode\/feb.jpg",
"oF": 0,
"oIPL": 0,
"opt": 0,
"q": 100
},
"\/exampleSite\/public\/img\/episode\/jan.jpg": {
"ft": 16384,
"iS": 56082,
"oA": 0,
"oAP": "\/exampleSite\/public\/img\/episode\/jan.jpg",
"oF": 0,
"oIPL": 0,
"opt": 0,
"q": 100
},
"\/exampleSite\/public\/img\/episode\/july.jpg": {
"ft": 16384,
"iS": 39449,
"oA": 0,
"oAP": "\/exampleSite\/public\/img\/episode\/july.jpg",
"oF": 0,
"oIPL": 0,
"opt": 0,
"q": 100
},
"\/exampleSite\/public\/img\/episode\/june.jpg": {
"ft": 16384,
"iS": 46334,
"oA": 0,
"oAP": "\/exampleSite\/public\/img\/episode\/june.jpg",
"oF": 0,
"oIPL": 0,
"opt": 0,
"q": 100
},
"\/exampleSite\/public\/img\/episode\/march.jpg": {
"ft": 16384,
"iS": 78471,
"oA": 0,
"oAP": "\/exampleSite\/public\/img\/episode\/march.jpg",
"oF": 0,
"oIPL": 0,
"opt": 0,
"q": 100
},
"\/exampleSite\/public\/img\/episode\/may.jpg": {
"ft": 16384,
"iS": 107283,
"oA": 0,
"oAP": "\/exampleSite\/public\/img\/episode\/may.jpg",
"oF": 0,
"oIPL": 0,
"opt": 0,
"q": 100
},
"\/exampleSite\/public\/img\/episode\/nov.jpg": {
"ft": 16384,
"iS": 60706,
"oA": 0,
"oAP": "\/exampleSite\/public\/img\/episode\/nov.jpg",
"oF": 0,
"oIPL": 0,
"opt": 0,
"q": 100
},
"\/exampleSite\/public\/img\/episode\/oct.jpg": {
"ft": 16384,
"iS": 55721,
"oA": 0,
"oAP": "\/exampleSite\/public\/img\/episode\/oct.jpg",
"oF": 0,
"oIPL": 0,
"opt": 0,
"q": 100
},
"\/exampleSite\/public\/img\/episode\/sept.jpg": {
"ft": 16384,
"iS": 38483,
"oA": 0,
"oAP": "\/exampleSite\/public\/img\/episode\/sept.jpg",
"oF": 0,
"oIPL": 0,
"opt": 0,
"q": 100
},
"\/exampleSite\/public\/img\/guest\/default-guest.png": {
"ft": 32768,
"iS": 15613,
Expand Down Expand Up @@ -5944,6 +6114,17 @@
"opt": 0,
"q": 100
},
"\/exampleSite\/public\/img\/host\/matt.png": {
"ft": 32768,
"iS": 66491,
"oA": 0,
"oAP": "\/exampleSite\/public\/img\/host\/matt.png",
"oF": 0,
"oIPL": 0,
"opt": 0,
"oT": 1,
"q": 100
},
"\/exampleSite\/public\/img\/player-graphics.gif": {
"ft": 4194304,
"iS": 4499,
Expand Down Expand Up @@ -7438,6 +7619,32 @@
"oS": 3,
"uL": 1
},
"\/exampleSite\/public\/scss\/grey.scss": {
"aP": 1,
"bl": 0,
"dP": 10,
"dS": 0,
"ft": 4,
"ma": 0,
"oA": 0,
"oAP": "\/exampleSite\/public\/css\/grey.css",
"oF": 0,
"oS": 3,
"uL": 1
},
"\/exampleSite\/public\/scss\/grey_variables.scss": {
"aP": 1,
"bl": 0,
"dP": 10,
"dS": 0,
"ft": 4,
"ma": 0,
"oA": 1,
"oAP": "\/exampleSite\/public\/css\/grey_variables.css",
"oF": 0,
"oS": 3,
"uL": 1
},
"\/exampleSite\/public\/scss\/orange.scss": {
"aP": 1,
"bl": 0,
Expand Down Expand Up @@ -7529,6 +7736,12 @@
"oAP": "\/exampleSite\/public\/swf\/audiojs.swf",
"oF": 0
},
"\/exampleSite\/public\/tags\/index.xml": {
"ft": 8192,
"oA": 2,
"oAP": "\/exampleSite\/public\/tags\/index.xml",
"oF": 0
},
"\/exampleSite\/static\/.gitkeep": {
"ft": 8192,
"oA": 2,
Expand Down
4 changes: 2 additions & 2 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ themesdir = "../.."
parent = "resources"

[params]
site_theme = "orange"
site_layout = "grid"
site_theme = "blue"
site_layout = "row"
enable_jumbo = "true"
# about_logo = "/img/hugocast.png"
copyright_notice = "Copyright 2016 [Matt Stratton](https://www.mattstrattion.io)"
Expand Down
7 changes: 4 additions & 3 deletions layouts/partials/grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h2 class = "episode-list-header">All Episodes</h2>
{{ $paginator := .Paginate (where .Data.Pages "Type" "episode") }}
{{ range $paginator.Pages }}
{{ $.Scratch.Set "episode" .File.BaseFileName }}
<div class="col-md-4">
<div class="col-md-4 grid_episode_col">
<div class="episode-image-homepage">
<a href="{{ .Permalink }}">
<img src="{{ .Params.episode_image | absURL }}" class="img-fluid" alt="{{ .Title }}" />
Expand All @@ -19,8 +19,9 @@ <h2 class = "episode-list-header">All Episodes</h2>

</a>
</div>
<div class="details">
{{ title .Title }}
<div class="grid_episode_detail">
<a href="{{ .Permalink }}" class= "grid_episode_title"><h3>{{ title .Title }}</h3></a>
<small class = "grid_episode_title">Posted on {{ dateFormat "Monday, Jan 2, 2006" .Date }}</small>
</div>

</div>
Expand Down
8 changes: 4 additions & 4 deletions layouts/partials/row.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h2>
{{- if eq ($.Scratch.Get "youtube") "true" -}}
<div class = "row homepage_episode_row">
<div class = "col">
<a href="{{ .Permalink }}"><h2>{{ .Title }}</h2></a>
<a href="{{ .Permalink }}" class = "row_latest_episode_title"><h2>{{ .Title }}</h2></a>
<small>Posted on {{ dateFormat "Monday, Jan 2, 2006" .Date }}</small>
</div>
</div>
Expand All @@ -41,7 +41,7 @@ <h2>
{{- else if eq ($.Scratch.Get "episode_banner") "true" -}}
<div class = "row homepage_episode_row">
<div class = "col">
<a href="{{ .Permalink }}"><h2>{{ .Title }}</h2></a>
<a href="{{ .Permalink }}" class = "row_latest_episode_title"><h2>{{ .Title }}</h2></a>
<small>Posted on {{ dateFormat "Monday, Jan 2, 2006" .Date }}</small>
</div>
</div>
Expand All @@ -59,7 +59,7 @@ <h2>
<!-- begin square row -->
<div class = "row homepage_episode_row">
<div class = "col-md-12">
<a href="{{ .Permalink }}"><h2>{{ .Title }}</h2></a>
<a href="{{ .Permalink }}" class = "row_latest_episode_title"><h2>{{ .Title }}</h2></a>
<small>Posted on {{ dateFormat "Monday, Jan 2, 2006" .Date }}</small>
</div>
</div>
Expand Down Expand Up @@ -117,7 +117,7 @@ <h2>
{{- range $paginator.Pages -}}
<div class = "row homepage_episode_row">
<div class = "col-md-12">
<a href="{{ .Permalink }}"><h2>{{ .Title }}</h2></a>
<a href="{{ .Permalink }}" class= "grid_episode_title"><h3 class= "grid_episode_title">{{ .Title }}</h3></a>
<small>Posted on {{ dateFormat "Monday, Jan 2, 2006" .Date }}</small>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion static/css/blue.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/css/grey.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/css/orange.css

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions static/scss/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,37 @@
.grid_container {
padding-top: 20px;
}

.grid_episode_col {
margin-bottom: 20px;
}

.grid_episode_detail {
background-color: #000;
padding: 10px;
}

.grid_episode_title {
color: $body-bg;
> h3 {
text-transform: capitalize;
}
}
.grid_episode_title:hover {
text-decoration: none;
color: $castanet-middle-container-bg;
}

.row_latest_episode_title {
> h3 {
text-transform: capitalize;
}
}
.row_latest_episode_title:hover {
text-decoration: none;
color: $castanet-main-container-bg;
}

.sidebar_general {
background-color: $castanet-sidebar-bg;
// border-radius:15px;
Expand Down