Squashed: fix headers; add meta inforation
All checks were successful
the build was successful

This commit is contained in:
Robert Kaussow 2018-12-23 16:04:58 +01:00
parent 19c845d394
commit c8627b6e5b
8 changed files with 65 additions and 18 deletions

20
themes/geeklab/.drone.yml Normal file
View File

@ -0,0 +1,20 @@
pipeline:
build:
image: node
commands:
- npm install -g gulp
- npm install
- gulp
when:
event: push
update:
image: appleboy/drone-git-push
branch: master
remote: gitea@gitea.rknet.org:xoxys/theme-geeklab.git
commit: true
commit-message: "[SKIP CI] update artifacts"
force: false
secrets: [git_push_ssh_key]
when:
event: push

View File

@ -3,7 +3,7 @@
{{ range $paginator.Pages }}
<article class="post">
<header class="post-header">
<h2 class="post-header__title"><a class="post-header__link" href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<h1 class="post-header__title"><a class="post-header__link" href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
</header>
<section class="post-content">

View File

@ -1,7 +1,7 @@
{{ define "main" }}
<article class="post">
<header class="post-header">
<h2 class="post-header__title">{{ .Title }}</h2>
<h1 class="post-header__title">{{ .Title }}</h1>
</header>
<section class="post-content">
{{ .Content }}

View File

@ -1,11 +1,29 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title>{{ .Site.Title }}</title>
{{- if .IsHome }}
{{- $author := index $.Site.Data.authors .Site.Params.author }}
{{- with .Site.Params.description }}
<meta name="description" content="{{ . }}">
{{- end }}
<meta name="author" content="{{ $author.name }}">
{{- else if in .Page.URL "/posts/" }}
{{- with .Page.Description }}
<meta name="description" content="{{ . }}">
{{- end }}
{{- with .Page.Keywords }}
<meta name="keywords" content="{{ .Page.Keywords }}">
{{- end }}
{{- with .Page.Params.Author }}
{{- $author := index $.Site.Data.authors . }}
<meta name="author" content="{{ $author.name }}">
{{- end }}
{{- end }}
<title>{{ .Site.Title }} - {{ .Site.Params.longTitle }}</title>
<link rel="shortcut icon" href="/favicon.ico">
<link rel="icon" type="image/png" href="/favicon.png" sizes="32x32">
<link rel="icon" type="image/png" href="/favicon.png" sizes="96x96">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
{{ range .AlternativeOutputFormats -}}
{{- range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{- end }}
</head>

View File

@ -145,8 +145,10 @@ html{
.post-header__link:hover{
text-decoration: underline;
}
.post-header__title {
.post-header__title,
.post-content h1 {
font-weight: normal;
font-size: 1.6em;
}
.post-content__link {

View File

@ -9,8 +9,11 @@
text-decoration:none;
}
.post-content h1,
.post-content h2,
.post-content h2 {
font-weight: normal;
font-size: 1.35em
}
.post-content h3,
.post-content h4,
.post-content h5,

View File

@ -139,8 +139,10 @@ html {
.post-header__link:hover {
text-decoration: underline
}
.post-content h1,
.post-header__title {
font-weight: 400
font-weight: 400;
font-size: 1.6em
}
.post-content__link {
color: #0a539a;
@ -591,8 +593,10 @@ all and (max-width:710px) {
color: #fff;
text-decoration: none
}
.post-content h1,
.post-content h2,
.post-content h2 {
font-weight: 400;
font-size: 1.35em
}
.post-content h3,
.post-content h4,
.post-content h5,

File diff suppressed because one or more lines are too long