try the fonts suggested by 4oo2 and add start of #9
This commit is contained in:
parent
4d6dd8dbea
commit
0dadd4c02d
@ -15,6 +15,10 @@
|
|||||||
|
|
||||||
{{- partial "network_card.html" . -}}
|
{{- partial "network_card.html" . -}}
|
||||||
|
|
||||||
|
{{ else if in .Params.categories "shouts" }}
|
||||||
|
|
||||||
|
{{- partial "shout_card.html" . -}}
|
||||||
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
|
||||||
{{- partial "card.html" . -}}
|
{{- partial "card.html" . -}}
|
||||||
|
@ -15,6 +15,10 @@
|
|||||||
|
|
||||||
{{- partial "network_card.html" . -}}
|
{{- partial "network_card.html" . -}}
|
||||||
|
|
||||||
|
{{ else if in .Params.categories "shouts" }}
|
||||||
|
|
||||||
|
{{- partial "shout_card.html" . -}}
|
||||||
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
|
||||||
{{- partial "card.html" . -}}
|
{{- partial "card.html" . -}}
|
||||||
|
@ -11,6 +11,9 @@
|
|||||||
<meta name="author" content='{{ .Site.Params.author }}'>
|
<meta name="author" content='{{ .Site.Params.author }}'>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{ template "_internal/opengraph.html" . }}
|
||||||
|
{{ template "_internal/twitter_cards.html" . }}
|
||||||
|
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/main.css">
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/main.css">
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/video-box.css">
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/video-box.css">
|
||||||
<link media="print" rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css">
|
<link media="print" rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css">
|
||||||
|
36
layouts/partials/shout_card.html
Normal file
36
layouts/partials/shout_card.html
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<div class='shout card'>
|
||||||
|
<article class="h-entry shout">
|
||||||
|
<header>
|
||||||
|
{{ $postPermalink := .Permalink}}
|
||||||
|
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
{{ with (index (.Resources.ByType "image") 0) }}
|
||||||
|
{{ $height := add .Height 0.0}}
|
||||||
|
{{ $ratio := div $height .Width}}
|
||||||
|
{{ $thumb := .Fit "540x360"}}
|
||||||
|
<div class="p-summary{{if gt $ratio 1 }} portrait {{else}} landscape {{end}}">
|
||||||
|
<div class="summary-image {{if gt $ratio 1 }} portrait {{else}} landscape {{end}}">
|
||||||
|
<a href="{{ $postPermalink }}"><img src="{{ $thumb.Permalink }}" alt="{{ .Title }}"> </a>
|
||||||
|
</div>
|
||||||
|
{{ else }}
|
||||||
|
<div class="p-summary">
|
||||||
|
{{ end }}
|
||||||
|
<div class="summary-text">
|
||||||
|
{{ .Summary }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="shout-source"></div>
|
||||||
|
|
||||||
|
<footer class='post-footer'>
|
||||||
|
<div class='footer-metadata'>
|
||||||
|
<span class="from p-author">From {{ if .Params.author }}<b>{{.Params.author}}</b> on{{ end }}</span>
|
||||||
|
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time>
|
||||||
|
</div>
|
||||||
|
{{ if .Truncated }}
|
||||||
|
<div class="footer-filler"></div>
|
||||||
|
<div class='read-more'><a href="{{ .RelPermalink }}">Read More…</a></div>
|
||||||
|
{{ end }}
|
||||||
|
</footer>
|
||||||
|
</article>
|
||||||
|
</div>
|
BIN
static/css/fonts/Anonymous_Pro_Regular.woff
Normal file
BIN
static/css/fonts/Anonymous_Pro_Regular.woff
Normal file
Binary file not shown.
BIN
static/css/fonts/Barrio_Regular.woff
Normal file
BIN
static/css/fonts/Barrio_Regular.woff
Normal file
Binary file not shown.
BIN
static/css/fonts/Zen_Maru_Gothic_Regular.woff
Normal file
BIN
static/css/fonts/Zen_Maru_Gothic_Regular.woff
Normal file
Binary file not shown.
@ -5,20 +5,40 @@ peachpuff - tomato
|
|||||||
lightpink - crimson
|
lightpink - crimson
|
||||||
lightblue - cornflowerblue
|
lightblue - cornflowerblue
|
||||||
palegreen - lightseagreen
|
palegreen - lightseagreen
|
||||||
|
steelblue - aliceblue
|
||||||
|
|
||||||
fonts
|
fonts
|
||||||
bungeeshade
|
bungeeshade
|
||||||
allerta
|
allerta
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: BarrioRegular;
|
||||||
|
src: url(fonts/Barrio_Regular.woff);
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: ZenMaruGothic;
|
||||||
|
src: url(fonts/Zen_Maru_Gothic_Regular.woff);
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: AnonymousPro;
|
||||||
|
src: url(fonts/Anonymous_Pro_Regular.woff);
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3 {
|
||||||
|
font-family: BarrioRegular;
|
||||||
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--border-color: tomato;
|
--border-color: tomato;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Main Stuff*/
|
/*Main Stuff*/
|
||||||
body {
|
body {
|
||||||
font-size:16px;
|
font-size:24px;
|
||||||
font-family: sans-serif;
|
font-family: ZenMaruGothic;
|
||||||
color: maroon;
|
color: maroon;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -321,7 +341,7 @@ footer.post-footer {
|
|||||||
display: inherit;
|
display: inherit;
|
||||||
}
|
}
|
||||||
.network .summary-text {
|
.network .summary-text {
|
||||||
font-size: 14px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.network-source{
|
div.network-source{
|
||||||
@ -358,6 +378,21 @@ div.network-source{
|
|||||||
padding: 0.5em 1.2em 0.5em 1.2em;
|
padding: 0.5em 1.2em 0.5em 1.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* shouts cards */
|
||||||
|
|
||||||
|
.card.shout{
|
||||||
|
border-color: steelblue;
|
||||||
|
border: 2px solid;
|
||||||
|
box-shadow:1em 1em 0 #d2d1c8;
|
||||||
|
background-color: aliceblue;
|
||||||
|
max-width: min-content;
|
||||||
|
margin-bottom: 2em;
|
||||||
|
flex: auto;
|
||||||
|
margin: 0 3em 3em 0;
|
||||||
|
align-self: start;
|
||||||
|
color: steelblue;
|
||||||
|
}
|
||||||
|
|
||||||
/* calendar cards */
|
/* calendar cards */
|
||||||
|
|
||||||
.card.calendar {
|
.card.calendar {
|
||||||
|
Loading…
Reference in New Issue
Block a user