Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lgaida/mediumish-gohugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLenard Gaida <mail@lgaida.de>2018-10-07 12:57:41 +0300
committerLenard Gaida <mail@lgaida.de>2018-10-07 12:57:41 +0300
commitbe9c53c7e84cc8a80f5f4520d19b01d6b7035ee0 (patch)
treef1a915203379f8312333f77b18d49da06a7d96c2
parentacbd1444151935beede22292825e20b217dcdad2 (diff)
alertbar-param, change readme
-rw-r--r--README.md32
-rw-r--r--archetypes/default.md4
-rw-r--r--layouts/_default/list.html4
-rw-r--r--layouts/index.html6
4 files changed, 31 insertions, 15 deletions
diff --git a/README.md b/README.md
index 4eef2c4..6018594 100644
--- a/README.md
+++ b/README.md
@@ -37,6 +37,7 @@ You then have a few options which i want to point out in the following.
---
title: "My first post"
date: 2018-10-01T15:25:19+02:00
+publishdate: 2018-10-07T11:17:14+02:00
lastmod: 2018-10-08T18:55:29+02:00
image: "/images/Test.jpg"
tags: ["post", "interesting"]
@@ -47,7 +48,8 @@ comments: false
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean semper libero quis dictum dapibus. Nulla egestas vitae augue eu rutrum. Duis ullamcorper dictum ipsum. Interdum et malesuada fames ac ante ipsum primis in faucibus. Suspendisse tortor dui, fermentum non dapibus id, volutpat non odio.
```
-`lastmod`: is displayed as a updated-hint
+`publishdate`: is displayed at the top of the single-view
+`lastmod`: is displayed as a hint on the single-view
`image`: is displayed in the list- and single-view
`tags`: are used as usual, just add the tags you want to use. They are displayed in the jumbotron on the list-view, and on the bottom of each single-view
`comments`: true/false to turn on/off disqus-comments
@@ -56,9 +58,9 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean semper libero qu
## Static Content
I added a customized layout for content of type "static", which means that posts in the folder "static" are displayed as standalone pages. I also disabled the list-layout for this folder.
-For example: to create an impress, simply go with the following command and add your markdown-text.
+For example: to create an imprint, simply go with the following command and add your markdown-text.
```
-hugo new static/impress.md
+hugo new static/imprint.md
```
## Configuration
@@ -66,10 +68,10 @@ You should at least specify the following default params in your config.toml
```toml
baseURL = "http://yourdomain.com"
languageCode = "en-us"
-title = "The one and only techblog"
+title = "Mediumish"
theme = "mediumish-gohugo-theme"
summaryLength = 25
-copyright = "yourdomain.com - All rights reserved"
+copyright = "John Doe - All rights reserved"
disqusShortname = "shortDisquis"
googleAnalytics = "UA-1XXXXXXX1-X"
```
@@ -82,8 +84,8 @@ googleAnalytics = "UA-1XXXXXXX1-X"
### General Params
```toml
[params]
- logo = "/images/logo.png"
- description ="hands on tech!"
+ logo = "/images/icon.png"
+ description ="the clean blog!"
```
`logo`: is displayed in titlebar and alertbar
`description`: is displayed under title
@@ -95,7 +97,7 @@ HIER SCREENSHOTS REIN
[params.author]
name = "John Doe"
thumbnail = "/images/author.jpg"
- description = "Creator of this blog!"
+ description = "Creator of this blog."
```
HIER SCREENSHOTS REIN
@@ -104,8 +106,18 @@ HIER SCREENSHOTS REIN
[params.index]
picture = "/images/author.jpg"
title = "John Doe"
- subtitle = "B.Sc Computer Science"
- mdtext = '''This is the mdtextfield, where you can write markdown to provide more information than just a few textlines'''
+ subtitle = "I'm a unique placeholder. Working here and there!"
+ mdtext = '''Seeking ~~knowledge and~~ money. Currently trying to get this blog running, still don't know what the blog will be about!'''
+```
+HIER SCREENSHOTS REIN
+
+### Social Params
+You can currently provide your username from `github`, `linkedin`, `xing`. They will be displayed as icons on the landingpage.
+```toml
+[params.social]
+ github = "<username>"
+ linkedin = "<username>"
+ xing = "<username>"
```
HIER SCREENSHOTS REIN
diff --git a/archetypes/default.md b/archetypes/default.md
index 5f5aa3a..1ff17ca 100644
--- a/archetypes/default.md
+++ b/archetypes/default.md
@@ -2,8 +2,8 @@
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
publishdate: {{ .Date }}
-lastmod: {{ .Date }}
image: ""
+tags:[]
comments: true
draft: true
---- \ No newline at end of file
+---
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 8586128..5920d59 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -12,7 +12,7 @@
<h2><span>All Posts</span></h2>
</div>
<div class="row listrecent">
- {{ $post_paginator := .Paginate (where .Pages "Type" "post") 6 }}
+ {{ $post_paginator := .Paginate (.Pages) 6 }}
{{ range $post_paginator.Pages }}
{{- partial "list-partials/postbox.html" . -}}
{{end}}
@@ -26,4 +26,4 @@
{{ define "footer"}}
{{- partial "_shared/jumbotron.html" . -}}
{{- partial "_shared/footer.html" . -}}
-{{ end }} \ No newline at end of file
+{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
index 5691a2d..f1becef 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -19,7 +19,11 @@
</section>
</div>
{{- partial "_shared/social.html" . -}}
- {{- partial "_shared/alertbar.html" . -}}
+ {{ with .Site.Params.index.alertbar }}
+ {{ if . }}
+ {{- partial "_shared/alertbar.html" . -}}
+ {{ end }}
+ {{ end }}
{{end}}
{{ define "footer" }}