Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
blog.milan-ihl.de
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Milan
blog.milan-ihl.de
Commits
9e8ffc29
Commit
9e8ffc29
authored
Jun 14, 2018
by
Milan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make page description an option, otherwise fallback to summary - add description to about page
parent
fd53c512
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
10 deletions
+23
-10
config.toml
config.toml
+1
-1
about.md
content/about.md
+1
-0
header.html
layouts/partials/header.html
+21
-9
No files found.
config.toml
View file @
9e8ffc29
baseURL
=
"https://blog.milan-ihl.de"
baseURL
=
"https://blog.milan-ihl.de
/
"
languageCode
=
"en-en"
title
=
"Milan Ihl's Blog"
Paginate
=
5
...
...
content/about.md
View file @
9e8ffc29
...
...
@@ -3,6 +3,7 @@ title: "About"
date
:
2018-06-08T19:58:30+02:00
draft
:
false
type
:
page
description
:
"
On
this
page,
Milan
does
an
attempt
of
describing
himself.
Well
at
least
he
tried."
menu
:
main
:
{}
---
...
...
layouts/partials/header.html
View file @
9e8ffc29
...
...
@@ -17,7 +17,11 @@
<title>
{{ if .IsHome }} {{ .Site.Title }} {{ else }} {{ .Title }} {{ end }}
</title>
<meta
http-equiv=
"content-type"
content=
"text/html; charset=utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, maximum-scale=1"
>
{{ if .Params.description }}
<meta
namo=
"description"
content=
"{{ .Params.description }}"
>
{{ else }}
<meta
name=
"description"
content=
"{{ .Summary }}"
>
{{ end }}
<meta
content=
'#747885'
name=
'theme-color'
>
<meta
property=
"og:title"
content=
"{{ .Title }}"
>
{{ if .IsPage }}
...
...
@@ -26,7 +30,11 @@
{{ else }}
<meta
property=
"og:type"
content=
"website"
>
{{ end }}
{{ if .Params.description }}
<meta
property=
"og:description"
content=
"{{ .Params.description }}"
>
{{ else }}
<meta
property=
"og:description"
content=
"{{ .Summary }}"
>
{{ end }}
<meta
property=
"og:url"
content=
"{{ .Permalink }}"
>
<meta
property=
"og:site_name"
content=
"{{ .Site.Title }}"
>
{{ if .Params.featured_image }}
...
...
@@ -38,18 +46,22 @@
{{ if .Site.Params.twitter_card_whitelisted }}
{{ if .Params.twitter_summary }}
<meta
property=
"twitter:card"
content=
"{{ .Params.twitter_summary }}"
>
{{ else if .D
escription }}
<meta
property=
"twitter:card"
content=
"{{ .
Summary
}}"
>
{{ else if .d
escription }}
<meta
property=
"twitter:card"
content=
"{{ .
Params.description
}}"
>
{{ else }}
<meta
property=
"twitter:card"
content=
"{{ .Title }}"
>
{{ end }}
{{ end }}
{{ if .Params.description }}
<meta
property=
"twitter:description"
content=
"{{ .Params.description }}"
>
{{ else }}
<meta
property=
"twitter:description"
content=
"{{ .Summary }}"
>
{{ end }}
<meta
property=
"twitter:title"
content=
"{{ .Title }}"
>
{{ if .Params.featured_image }}
<meta
property=
"twitter:image"
content=
"{{ .Site.BaseURL }}{{ .Params.featured_image }}"
>
{{ end }}
<link
rel=
"stylesheet"
href=
"{{ .Site.BaseURL }}
/
css/magical.css"
>
<link
rel=
"stylesheet"
href=
"{{ .Site.BaseURL }}css/magical.css"
>
{{ if .RSSLink }}
<link
href=
"{{ .RSSLink }}"
rel=
"feed"
type=
"application/rss+xml"
title=
"{{ .Site.Title }}"
/>
{{ end }}
<script
type=
"text/javascript"
>
var
_paq
=
_paq
||
[];
_paq
.
push
([
"
trackPageView
"
]),
_paq
.
push
([
"
enableLinkTracking
"
]),
function
(){
var
e
=
"
//piwik.tchncs.de/
"
;
_paq
.
push
([
"
setTrackerUrl
"
,
e
+
"
piwik.php
"
]),
_paq
.
push
([
"
setSiteId
"
,
"
16
"
]);
var
a
=
document
,
p
=
a
.
createElement
(
"
script
"
),
t
=
a
.
getElementsByTagName
(
"
script
"
)[
0
];
p
.
type
=
"
text/javascript
"
,
p
.
async
=!
0
,
p
.
defer
=!
0
,
p
.
src
=
e
+
"
piwik.js
"
,
t
.
parentNode
.
insertBefore
(
p
,
t
)}();
</script>
<noscript><img
src=
"//piwik.tchncs.de/piwik.php?idsite=16&rec=1"
style=
"border:0"
alt=
""
/></noscript>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment