Waldemar Brodkorb 4 недель назад
Родитель
Сommit
a49c864921

+ 3 - 2
waldemar-brodkorb.de/content/_index.md

@@ -14,6 +14,7 @@ You can find me on [Xing](https://www.xing.com/profile/Waldemar_Brodkorb) and
 
 # Links to my Open Source software projects
 
-  +	[OpenADK](https://openadk.org) - buildsystem
-  +	[uClibc-ng](https://uclibc-ng.org) - small C library
+  +	[OpenADK](https://openadk.org) - Linux buildsystem
+  +	[uClibc-ng](https://uclibc-ng.org) - small C library for embedded Linux
+  +	[FreeWRT](https://www.freewrt.de) - small Linux distribution for vintage WLAN routers
 

+ 16 - 12
waldemar-brodkorb.de/themes/strange-case/README.md

@@ -6,7 +6,7 @@ The theme was built from an empty Bootstrap 3 template with the goal of easy mod
 
 Pull requests are welcome.
 
-![Strange Case Screenshot](http://i.imgur.com/i7aarpG.png)
+![Strange Case Screenshot](https://i.imgur.com/i7aarpG.png)
 
 
 ## Contents
@@ -38,36 +38,42 @@ Next, open the `config.toml` file in the base of the Hugo folder and ensure the
 
 There are various options you can easily set from your `config.toml` file.
 
-This text will appear after the Title of your site in your `<title>` meta tag:
+This text will appear after the Title of your site in your `<title>` meta tag, and after the Title in the sidebar:
 
 	description = "A Hugo Theme built with Bootstrap"
 
 
 ### Sidebar
 
-This text will appear in the sidebar immediately under your site's Title:
+This text will appear in a free paragraph below the Title & Description and above the menu links. Set it to "" if you don't want it.
 
-	sidebarDescription = "A Hugo Theme built with Bootstrap"
+	sidebarFreeText = "A optional paragraph of free text. Set to blank in config.toml to clear..."
 
-This text will appear in a free paragraph below the Title & sidebarDescription and above the menu links. Set it to "" if you don't want it.
+You can include clickable icons (e.g. for social networks )by including `"menu=icons"` items in your `config.toml`. Example:
 
-	sidebarFreeText = "A optional paragraph of free text. Set to blank in config.toml to clear..."
+	[[menu.icons]]
+		name = "GitHub"
+		post = "<img src=\"/images/github.png\""
+		url = "https://github.com"
 
-You can also include useful menu links by including `"menu=main"` items in your `config.toml`. Example:
+You can optionally use the `post` var to include HTML after the `name` in the resulting links.
+You can include useful menu links by including `"menu=main"` items in your `config.toml`. Example:
 
 	[[menu.main]]
 		name = "Hugo"
 		post = "<span class='glyphicon glyphicon-fire'></span>"
 		url = "http://gohugo.io"
 
-You can optionally use the `pre` and `post` vars to include HTML before or after the `name` in the resulting links.
+You can optionally use the `post` var to include HTML after the `name` in the resulting links.
+
+You can use the `"contact_email"` field in `[params]` to set a mailto: link the in the sidebar. Leave blank if you don't want it.
 
 
 ### Color Schemes
 
 In keeping with our attempt to replicate the original Hyde in Bootstrap we've included some colour scheme options. These are not the same as in the original, but we used palettes from the same [Base16](https://github.com/chriskempson/base16) project.
 
-![Strange Case in Light Brown](http://i.imgur.com/oLjV8LV.png)
+![Strange Case in Light Brown](https://i.imgur.com/oLjV8LV.png)
 
 The themes are:
 
@@ -92,7 +98,6 @@ Using a theme is as simple as changing the `colorScheme` param in your `config.t
 		colorScheme = "scheme-darkbrown"
 		DateFormat = "2 Jan 2006"
 		description = "A Hugo Theme built with Bootstrap"
-		sidebarDescription = "A Hugo Theme built with Bootstrap"
 		sidebarFreeText = "A optional paragraph of free text. Set to blank in config.toml to clear..."
 
 
@@ -148,7 +153,6 @@ Here is a full example `config.toml`:
 		colorScheme = "scheme-darkbrown"
 		DateFormat = "2 Jan 2006"
 		description = "A blog about content"
-		sidebarDescription = "This is my blog about content"
 		sidebarFreeText = "A optional paragraph of free text. Set to blank in config.toml to clear..."
 		piwikSiteID = ""
 		piwikURL = ""
@@ -193,4 +197,4 @@ Here is a full example `config.toml`:
 
 ## Licensing
 
-This theme is released under the [MIT License](LICENSE.md).
+This theme is released under the [MIT License](LICENSE.md).

+ 1 - 0
waldemar-brodkorb.de/themes/strange-case/layouts/_default/single.html

@@ -13,6 +13,7 @@
 
 					<div class="post-heading">
 						<h1>{{ .Title }}</h1>
+						<span class="post-date"># {{ .Date.Format "Jan 2, 2006" }}{{ if .Params.author }} by {{ .Params.author }}{{ end }}</span>
 					</div>
 
 					{{ .Content }}

+ 5 - 2
waldemar-brodkorb.de/themes/strange-case/layouts/partials/header.html

@@ -4,7 +4,7 @@
 	<meta charset="utf-8">
 	<meta http-equiv="X-UA-Compatible" content="IE=edge">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
-	{{ .Hugo.Generator }}
+	{{ hugo.Generator }}
 	<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
 	<title>{{ .Title }} - {{ .Site.Params.description }}</title>
 
@@ -22,5 +22,8 @@
 	<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
 	<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
 	{{ "<![endif]-->" | safeHTML }}
+
+	<!-- RSS -->
+	<link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
 </head>
-<body class="{{ .Site.Params.colorScheme }}">
+<body class="{{ .Site.Params.colorScheme }}">

+ 23 - 11
waldemar-brodkorb.de/themes/strange-case/static/css/strange-case.css

@@ -1,13 +1,13 @@
 
 /*
- * 
+ *
  * Strange Case
  * ------------
- * 
+ *
  * Built by ExchangeRate-API with Bootstrap - inspired by
  * Hyde (https://github.com/mdo/hyde) for Hugo.
- * 
- * 
+ *
+ *
  * CSS SECTIONS
  *
  * Defaults
@@ -31,6 +31,9 @@ p {
 	font-family: Roboto, sans-serif;
 	font-size: 1.2em;
 }
+img {
+	max-width:100%;
+}
 
 
 
@@ -48,6 +51,9 @@ p {
 .post {
 	margin-bottom: 3em;
 }
+.post a {
+    text-decoration: underline;
+}
 .post .post-heading {
 	margin-bottom: 1em;
 }
@@ -73,7 +79,6 @@ p {
 
 /* SIDEBAR */
 
-
 .sidebar {
 	padding: 2em;
 	font-size: 1.3em;
@@ -95,12 +100,20 @@ p {
 	list-style: none;
 	font-size:1em;
 }
+.sidebar .sidebar-icons li {
+        display: inline-block;
+}
 .sidebar .sidebar-recent {
 	margin-top: 1.5em;
 }
 .sidebar .sidebar-menus li a {
 	text-decoration:underline;
 }
+.sidebar .sidebar-contact {
+	padding-left: 0;
+	margin-left: 0;
+	margin-top: 1.5em;
+}
 @media (min-width: 768px) {
 	.sidebar {
 		top: 0;
@@ -109,7 +122,6 @@ p {
 		position: fixed;
 	}
 	.sidebar-content {
-		top: 1em;
 		bottom: 1em;
 		left: 1em;
 		right: 1em;
@@ -159,16 +171,16 @@ p.attr {
 	background-color: #85B2D3;
 	color: #444;
 }
-.scheme-gulf .sidebar h1 {
+.scheme-gulfracing .sidebar h1 {
 	color: #1C1C28;
 }
-.scheme-gulf .sidebar a {
+.scheme-gulfracing .sidebar a {
 	color: #444;
 }
-.scheme-gulf .content a {
+.scheme-gulfracing .content a {
 	color: #E75E16;
 }
-.scheme-gulf .post .post-heading span {
+.scheme-gulfracing .post .post-heading span {
 	color: #9a9a9a;
 }
 
@@ -190,7 +202,7 @@ p.attr {
 	color: #9a9a9a;
 }*/
 
-/* 
+/*
  * The original Hyde theme uses Base16 for colour schemes so
  * we decided to also use this project. We picked different
  * colors though. We also used the Ocean and 80's palettes in

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
waldemar-brodkorb.de/themes/strange-case/static/css/strange-case.min.css


+ 4 - 4
waldemar-brodkorb.de/themes/strange-case/theme.toml

@@ -6,9 +6,9 @@ license = "MIT"
 licenselink = "https://github.com/ExchangeRate-API/strange-case/LICENSE.md"
 description = "A 2 column blog theme for Hugo using Bootstrap - inspired by the Jekyll theme Hyde by mdo"
 homepage = "https://github.com/ExchangeRate-API/strange-case"
-tags = ["", ""]
-features = ["", ""]
-min_version = 0.15
+tags = ["Blog", "Responsive", "Minimal", "Simple", "Clean", "Bootstrap"]
+features = ["Blog", "Responsive", "Bootstrap"]
+min_version = 0.53
 
 [author]
 	name = "ExchangeRate-API"
@@ -18,4 +18,4 @@ min_version = 0.15
 [original]
 	name = ""
 	homepage = ""
-	repo = ""
+	repo = ""

Некоторые файлы не были показаны из-за большого количества измененных файлов