Update for the day
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
<a href="{{ .Permalink }}" class="card-link-wrapper" rel="bookmark" title="Link to {{ .Title }}" >
|
<a href="{{ .Permalink }}" class="card-link-wrapper" rel="bookmark" title="Link to {{ .Title }}" >
|
||||||
|
{{ if isset .Params "featuredimage" }}
|
||||||
|
<img src="{{ .Site.BaseURL }}/{{.Params.featuredimage }}" class="card-img">
|
||||||
|
{{ end }}
|
||||||
<article class="card">
|
<article class="card">
|
||||||
<h2 class="card-title">{{ .Title }}</h2>
|
<h2 class="card-title">{{ .Title }}</h2>
|
||||||
<div class="post-date card-date">Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></div>
|
<p class="card-date post-date">Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></div>
|
||||||
<p class="card-text">{{ .Description }}</p>
|
<p class="card-text">{{ .Description }}</p>
|
||||||
<!-- {{ if .Truncated }}<a class="moretag" href="{{ .Permalink }}">Continue reading</a>{{ end }} -->
|
<!-- {{ if .Truncated }}<a class="moretag" href="{{ .Permalink }}">Continue reading</a>{{ end }} -->
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
@@ -5,10 +5,15 @@
|
|||||||
<div class="content-container">
|
<div class="content-container">
|
||||||
<main class="content">
|
<main class="content">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<header class="post-header">
|
||||||
<h1>{{ .Title }}</h1>
|
<h1 class="post-title">{{ .Title }}</h1>
|
||||||
<time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}" class="post-date">{{ .PublishDate.Format "Jan 2, 2006" }}</time>
|
<p class="post-date">Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></p>
|
||||||
</header>
|
</header>
|
||||||
|
{{ if isset .Params "featuredimage" }}
|
||||||
|
<figure class="post-figure">
|
||||||
|
<img src="{{ .Site.BaseURL }}/{{.Params.featuredimage }}">
|
||||||
|
</figure>
|
||||||
|
{{ end }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</article>
|
</article>
|
||||||
<hr />
|
<hr />
|
||||||
|
|||||||
@@ -1,27 +1,37 @@
|
|||||||
body {
|
body {
|
||||||
font-family: 'LatoLatinWeb', Avenir, HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
|
font-family: 'LatoLatinWeb', Avenir, HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
|
||||||
color: #3A3B3C;
|
color: #3A3B3C;
|
||||||
font-size: 1rem;
|
font-size: 1.1em;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
p {
|
p {
|
||||||
line-height: 1.5rem;
|
margin: 1em 0;
|
||||||
margin: 1.5rem 0;
|
|
||||||
}
|
}
|
||||||
b,
|
b,
|
||||||
strong {
|
strong {
|
||||||
font-family: 'LatoLatinWebHeavy';
|
font-family: 'LatoLatinWebHeavy';
|
||||||
font-weight: normal
|
font-weight: normal
|
||||||
}
|
}
|
||||||
header > h1 {
|
.post {
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
.post-header {
|
||||||
|
margin: 2em 0;
|
||||||
|
}
|
||||||
|
.post-title {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
line-height: 1.2em;
|
line-height: 1.2;
|
||||||
margin-bottom: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
.post-date {
|
.post-date {
|
||||||
|
display: block;
|
||||||
color: #7A7B7C;
|
color: #7A7B7C;
|
||||||
font-size: .8em
|
font-size: 0.8em;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.post-figure {
|
||||||
|
margin: 1.5em 0;
|
||||||
}
|
}
|
||||||
.post > p:first-of-type::first-letter {
|
.post > p:first-of-type::first-letter {
|
||||||
font-family: 'LatoLatinWebHeavyItalic';
|
font-family: 'LatoLatinWebHeavyItalic';
|
||||||
@@ -29,7 +39,6 @@ header > h1 {
|
|||||||
font-size: 3em;
|
font-size: 3em;
|
||||||
line-height: 1em;
|
line-height: 1em;
|
||||||
padding-right: 0.1em;
|
padding-right: 0.1em;
|
||||||
margin-bottom: -0.2em;
|
|
||||||
/* initial-letter: 2; Maybe someday*/
|
/* initial-letter: 2; Maybe someday*/
|
||||||
}
|
}
|
||||||
img {
|
img {
|
||||||
@@ -39,7 +48,7 @@ img {
|
|||||||
.content-container {
|
.content-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 0 15px;
|
padding: 0 1em;
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
max-width: 700px;
|
max-width: 700px;
|
||||||
@@ -51,66 +60,72 @@ img {
|
|||||||
.card-columns {
|
.card-columns {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
grid-gap: 30px;
|
grid-gap: 2em;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
.card-link-wrapper {
|
.card-link-wrapper {
|
||||||
color: #3A3B3C;
|
color: #3A3B3C;
|
||||||
display: block;
|
display: block;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border-radius: 5px;
|
border-radius: 0.4em;
|
||||||
transition: transform 0.3s, box-shadow 0.3s;
|
transition: transform 0.3s, box-shadow 0.3s;
|
||||||
box-shadow: 0 20px 25px 0px rgba(0, 0, 0, 0.05);
|
box-shadow: 0 1em 1.6em 0 rgba(0, 0, 0, 0.06);
|
||||||
}
|
}
|
||||||
.card-link-wrapper:active {
|
.card-link-wrapper:active {
|
||||||
transform: scale(0.95);
|
transform: scale(0.95);
|
||||||
box-shadow: 0 15px 22px 0px rgba(0, 0, 0, 0.08);
|
box-shadow: 0 0.8em 1.4em 0px rgba(0, 0, 0, 0.08);
|
||||||
}
|
}
|
||||||
.card {
|
.card {
|
||||||
padding: 15px;
|
padding: 1em;
|
||||||
|
}
|
||||||
|
.card-img {
|
||||||
|
border-radius: 0.4em 0.4em 0 0;
|
||||||
|
margin-bottom: -1.2em;
|
||||||
|
max-height: 10em;
|
||||||
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
.card-title {
|
.card-title {
|
||||||
margin: 10px 0 5px 0;
|
margin: 0.5em 0 0.2em 0;
|
||||||
text-align: center;
|
/* text-align: center; */
|
||||||
}
|
}
|
||||||
.card-date {
|
.card-date {
|
||||||
display: block;
|
display: block;
|
||||||
text-align: center;
|
/* text-align: center; */
|
||||||
}
|
}
|
||||||
.card-text {
|
.card-text {
|
||||||
|
line-height: 1.5;
|
||||||
|
margin: 0.8em 0 0.5em 0;
|
||||||
}
|
}
|
||||||
blockquote {
|
blockquote {
|
||||||
border-left: 5px solid #D1D1D1;
|
border-left: 0.3em solid #D1D1D1;
|
||||||
margin: 1.5em 20px;
|
margin: 1.5em 0.8em;
|
||||||
padding: .5em 10px;
|
padding: .5em 0.5em;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
blockquote p {
|
blockquote p {
|
||||||
display: inline
|
display: inline;
|
||||||
}
|
}
|
||||||
ul,
|
ul,
|
||||||
ol {
|
ol {
|
||||||
line-height: 1.5rem;
|
padding-left: 1.6em;
|
||||||
padding-left: 35px
|
|
||||||
}
|
}
|
||||||
li ul, li ol {
|
li ul, li ol {
|
||||||
padding-left: 20px;
|
padding-left: 1em;
|
||||||
}
|
}
|
||||||
li > p {
|
li > p {
|
||||||
margin: 0px;
|
margin: 0;
|
||||||
}
|
}
|
||||||
code {
|
code {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
padding: .2em .5em;
|
padding: .2em .5em;
|
||||||
line-height: 1.5em;
|
line-height: 1.5;
|
||||||
border-radius: 3px;
|
border-radius: 0.2em;
|
||||||
background-color: #f3f3f3;
|
background-color: #f3f3f3;
|
||||||
}
|
}
|
||||||
hr {
|
hr {
|
||||||
border: 0;
|
border: 0;
|
||||||
border-bottom: 1px solid #D1D1D1;
|
border-bottom: 1px solid #D1D1D1;
|
||||||
margin-top: 3.125rem 0;
|
margin-top: 3em 0;
|
||||||
}
|
}
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@@ -119,12 +134,12 @@ table {
|
|||||||
color: #3A3B3C;
|
color: #3A3B3C;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
margin: 1.5rem 0;
|
margin: 1em 0;
|
||||||
}
|
}
|
||||||
td,
|
td,
|
||||||
th {
|
th {
|
||||||
padding: 7px 15px;
|
padding: 0.5em 1em;
|
||||||
border: 1px solid #D1D1D1
|
border: thin solid #D1D1D1
|
||||||
}
|
}
|
||||||
th {
|
th {
|
||||||
font-family: 'LatoLatinWebHeavy';
|
font-family: 'LatoLatinWebHeavy';
|
||||||
@@ -154,6 +169,9 @@ tr:nth-child(even) td {
|
|||||||
|
|
||||||
/* Large devices (desktops, 992px and up) */
|
/* Large devices (desktops, 992px and up) */
|
||||||
@media (min-width: 992px) {
|
@media (min-width: 992px) {
|
||||||
|
.post-title {
|
||||||
|
font-size: 2.5em;
|
||||||
|
}
|
||||||
.card-container{
|
.card-container{
|
||||||
max-width: 900px;
|
max-width: 900px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user