theme update
This commit is contained in:
parent
ca2457c0a5
commit
abe55287b2
|
@ -34,7 +34,7 @@ img {
|
||||||
a,
|
a,
|
||||||
a:hover,
|
a:hover,
|
||||||
a:focus {
|
a:focus {
|
||||||
text-decoration: none;
|
text-decoration: underline;
|
||||||
color: $primary-color;
|
color: $primary-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,6 +43,11 @@ a.text-primary:hover{
|
||||||
color: $primary-color !important;
|
color: $primary-color !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.btn {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
a,
|
a,
|
||||||
button,
|
button,
|
||||||
|
|
|
@ -1,8 +1,41 @@
|
||||||
/* typography */
|
/* typography */
|
||||||
|
|
||||||
// TODO To be served locally later
|
@font-face {
|
||||||
@import url('https://fontlibrary.org//face/gen-light');
|
font-family: 'KallaikosrevveRegular';
|
||||||
@import url('https://fontlibrary.org//face/kallaikos-revve-kallaikosrevve');
|
src: url('/webfonts/KallaikosrevveRegular.ttf') format('truetype');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'GenLight';
|
||||||
|
src: url('/webfonts/Gen-Light.otf') format('truetype');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'PanameraLight';
|
||||||
|
src: url('/webfonts/Panamera/Panamera-Light.otf') format('truetype');
|
||||||
|
font-weight: 300;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'PanameraRegular';
|
||||||
|
src: url('/webfonts/Panamera/Panamera-Regular.otf') format('truetype');
|
||||||
|
font-weight: 500;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'PanameraBold';
|
||||||
|
src: url('/webfonts/Panamera/Panamera-Bold.otf') format('truetype');
|
||||||
|
font-weight: 700;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
|
@ -24,19 +57,23 @@ p, .paragraph {
|
||||||
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
|
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
|
||||||
color: $text-color-dark;
|
color: $text-color-dark;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 1.3 !important;
|
line-height: 0.8!important;
|
||||||
&:not([class^='ti-']) {
|
&:not([class^='ti-']) {
|
||||||
font-family: $primary-font;
|
font-family: $primary-font;
|
||||||
}
|
}
|
||||||
|
text-decoration: none;
|
||||||
|
&:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-header {
|
.section-header {
|
||||||
font-variant: small-caps;
|
font-variant: small-caps;
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
|
font-family: PanameraRegular, Gen-Light, Tahoma, Geneva, Verdana, sans-serif !important;
|
||||||
font-weight: 600 !important;
|
font-weight: 500 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
a{
|
a {
|
||||||
&.h1,&.h2,&.h3,&.h4,&.h5,&.h6{
|
&.h1,&.h2,&.h3,&.h4,&.h5,&.h6{
|
||||||
color: $text-color-dark;
|
color: $text-color-dark;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,5 @@ $white: #fff;
|
||||||
$gray: #f4fcff;
|
$gray: #f4fcff;
|
||||||
|
|
||||||
// Font Variables
|
// Font Variables
|
||||||
//$primary-font: 'GenLight', sans-serif;
|
$primary-font: 'GenLight','Segoe UI', Geneva, Verdana, sans-serif;
|
||||||
$primary-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
||||||
$icon-font: 'fontawesome';
|
$icon-font: 'fontawesome';
|
|
@ -7,3 +7,9 @@
|
||||||
max-height: 100px;
|
max-height: 100px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
&-body {
|
||||||
|
padding: 1em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
/* card */
|
/* card */
|
||||||
|
.card {
|
||||||
|
&-body {
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.posts {
|
.posts {
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
@ -15,6 +21,15 @@
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
max-height: 250px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.post {
|
||||||
|
&-img {
|
||||||
|
display: block;
|
||||||
|
max-height: 400px;
|
||||||
|
margin: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,6 +118,7 @@
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
|
text-decoration: underline;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
|
@ -161,6 +177,7 @@
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
|
|
|
@ -22,6 +22,10 @@
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
color: $text-color-dark;
|
color: $text-color-dark;
|
||||||
|
text-decoration: none;
|
||||||
|
&:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Collapses */
|
/* Collapses */
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
||||||
{{- $pages := slice -}}
|
{{- $pages := slice -}}
|
||||||
{{- if or $.IsHome $.IsSection -}}
|
{{- if or $.IsHome $.IsSection -}}
|
||||||
{{- $pages = $pctx.RegularPages -}}
|
{{- $pages = where $pctx.RegularPages "Section" "blog" -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- $pages = $pctx.Pages -}}
|
{{- $pages = $pctx.Pages -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<section class="section-sm">
|
<section class="section-sm">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-8 mb-100 mb-lg-0">
|
<div class="col-lg-8 mb-10 mb-lg-0">
|
||||||
|
|
||||||
|
|
||||||
{{- $pctx := . -}}
|
{{- $pctx := . -}}
|
||||||
|
|
|
@ -4,20 +4,20 @@
|
||||||
<section class="section-sm">
|
<section class="section-sm">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-8 mb-100 mb-lg-0">
|
<div class="col-lg-8 mb-10 mb-lg-0">
|
||||||
<article>
|
<article>
|
||||||
<div class="tags-list">
|
<div class="tags-list">
|
||||||
{{ if .Params.tags }}
|
{{ if .Params.tags }}
|
||||||
{{ partial "tags" .Params.tags }}
|
{{ partial "tags" .Params.tags }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<h1 class="mb-0">{{ .Title }}</h1>
|
<h1 class="mb-0 mt-2">{{ .Title }}</h1>
|
||||||
<p class="mb-1">{{ i18n "published" }} {{ i18n "on" }} {{ (time .Date) | time.Format (.Params.date_format | default "2 January 2006") }}. {{ i18n "readingTime" }} {{ i18n "readingTimeValue" .ReadingTime }}.</p>
|
<p class="mb-1">{{ i18n "published" }} {{ i18n "on" }} {{ (time .Date) | time.Format (.Params.date_format | default "2 January 2006") }}. {{ i18n "readingTime" }} {{ i18n "readingTimeValue" .ReadingTime }}.</p>
|
||||||
|
|
||||||
{{ if .Params.Image }}
|
{{ if .Params.Image }}
|
||||||
{{ $article := .Permalink | relURL }}
|
{{ $article := .Permalink | relURL }}
|
||||||
{{ $image := .Params.Image | relURL }}
|
{{ $image := .Params.Image | relURL }}
|
||||||
<img src="{{ print $article $image }}" class="img-fluid w-100 mb-4" alt="{{ .Title | markdownify }}">
|
<img src="{{ print $article $image }}" class="mb-4 post-img" alt="{{ .Title | markdownify }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{{ .Page.Content }}
|
{{ .Page.Content }}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-8 mb-100 mb-lg-0">
|
<div class="col-lg-8 mb-10 mb-lg-0">
|
||||||
{{ $cv_sections := where .Pages "Params.Widget" "cv"}}
|
{{ $cv_sections := where .Pages "Params.Widget" "cv"}}
|
||||||
{{ range $ids, $item := sort $cv_sections ".Params.weight" "asc" }}
|
{{ range $ids, $item := sort $cv_sections ".Params.weight" "asc" }}
|
||||||
{{ $items_len := len .Params.items }}
|
{{ $items_len := len .Params.items }}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<section class="section-sm">
|
<section class="section-sm">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-8 mb-100 mb-lg-0">
|
<div class="col-lg-8 mb-10 mb-lg-0">
|
||||||
<h3 class="section-header">{{ i18n "lastPosts" }}</h3>
|
<h3 class="section-header">{{ i18n "lastPosts" }}</h3>
|
||||||
{{ range first 5 (where .Site.RegularPages "Type" "blog") }}
|
{{ range first 5 (where .Site.RegularPages "Type" "blog") }}
|
||||||
<article class="posts featured-post">
|
<article class="posts featured-post">
|
||||||
|
|
1
layouts/shortcodes/castopod.html
Normal file
1
layouts/shortcodes/castopod.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<iframe width="100%" height="112" scrolling="no" frameborder="no" style="width: 100%; height: 112px; overflow: hidden;" src="{{ with .Get "playerUrl" }}{{ . }}{{ end }}"></iframe>
|
BIN
static/webfonts/Gen-Light.otf
Normal file
BIN
static/webfonts/Gen-Light.otf
Normal file
Binary file not shown.
BIN
static/webfonts/KallaikosrevveRegular.ttf
Normal file
BIN
static/webfonts/KallaikosrevveRegular.ttf
Normal file
Binary file not shown.
BIN
static/webfonts/Panamera/.DS_Store
vendored
Normal file
BIN
static/webfonts/Panamera/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
static/webfonts/Panamera/Panamera-Bold.otf
Normal file
BIN
static/webfonts/Panamera/Panamera-Bold.otf
Normal file
Binary file not shown.
BIN
static/webfonts/Panamera/Panamera-Light.otf
Normal file
BIN
static/webfonts/Panamera/Panamera-Light.otf
Normal file
Binary file not shown.
BIN
static/webfonts/Panamera/Panamera-Regular.otf
Normal file
BIN
static/webfonts/Panamera/Panamera-Regular.otf
Normal file
Binary file not shown.
Loading…
Reference in a new issue