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

github.com/edavidaja/docter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoredavidaja <enyinnaya.aja@gmail.com>2019-06-06 16:21:22 +0300
committeredavidaja <enyinnaya.aja@gmail.com>2019-06-06 16:21:22 +0300
commitf3f37e99e57581d93646d81965290ec8a1e06007 (patch)
tree556af9fbcaba9e426e1b1611b0de4fbc13158d74
parent99fb69c39cb02e7bd20604686b93c5574eee89dd (diff)
explanatory comments in config and screenshots
-rw-r--r--exampleSite/config.toml20
-rw-r--r--images/screenshot.pngbin0 -> 170138 bytes
-rw-r--r--images/tn.pngbin0 -> 83797 bytes
-rw-r--r--layouts/partials/footer.html9
-rw-r--r--layouts/partials/header.html4
-rw-r--r--layouts/partials/sidebar.html4
6 files changed, 25 insertions, 12 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 49f63a8..038794d 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -5,12 +5,22 @@ title = "docter"
theme = "docter"
[params]
- name = "docter"
+ # the name of your project and a link back to the home page
+ home = "docter"
+ # A small snippet of text above the sidebar:
+ # subtitle = ""
+
author = "org name"
author_url= "https://github.com/edavidaja"
+
+ # Point readers to your repo and invite them to edit pages
repo_host = "Gitlab"
repo = "https://gitlab.com/edavidaja/docter"
- logourl= ""
- logoalt= ""
- hosted_on= "netlify"
- hosted_on_url= "https://www.netlify.com"
+
+ # Add a reference to a logo, which will appear in the top right
+ # logourl = ""
+ # logoalt = ""
+
+ # Mention your hosting provider
+ hosted_on = "hosting provider"
+ hosted_on_url= "#"
diff --git a/images/screenshot.png b/images/screenshot.png
new file mode 100644
index 0000000..a7184eb
--- /dev/null
+++ b/images/screenshot.png
Binary files differ
diff --git a/images/tn.png b/images/tn.png
new file mode 100644
index 0000000..2191e11
--- /dev/null
+++ b/images/tn.png
Binary files differ
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 884c557..234a5ab 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -13,10 +13,11 @@
</p>
<p>
- <a href="{{ .Site.Params.repo }}/edit/master/content/{{.File.Path}}"
- >Edit this page</a
- >
- or <a href="{{.Site.Params.repo}}/issues">file an issue</a> on
+ <a
+ href="{{ .Site.Params.repo }}/edit/master/content/
+ {{ with.File }}{{ .Path }}{{ end }}"
+ >Edit this page</a> or <a href="{{.Site.Params.repo}}/issues">
+ file an issue</a> on
{{.Site.Params.repo_host}}.
</p>
</div>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index f10a19b..1fd291f 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,8 +1,8 @@
<header role="banner">
<div class="wrap">
{{ if isset .Site.Params "logourl" }}
- <img class="logo" src="{{.Site.BaseURL}}{{ .Site.Params.logourl }}" alt="{{ .Site.Params.logoalt }}">
+ <img class="logo" src="{{ .Site.BaseURL}}{{ .Site.Params.logourl }}" alt="{{ .Site.Params.logoalt }}">
{{ end }}
- <h1 class="site-title"><a class="title-link" href="{{ .Site.BaseURL }}">{{ .Site.Params.name }}</a></h1>
+ <h1 class="site-title"><a class="title-link" href="{{ .Site.BaseURL }}">{{ .Site.Params.home }}</a></h1>
</div>
</header>
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index ab1dabd..2be4ad1 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -1,5 +1,7 @@
<aside>
- <p class="intro">{{ .Params.subtitle }}</p>
+ {{ if isset .Site.Params "subtitle"}}
+ <p class="intro">{{ .Site.Params.subtitle }}</p>
+ {{ end }}
<a class="skip-link visuallyhidden focusable" href="#main">Skip to Main Content</a>
<nav class="sidebar-nav" role="navigation">
<ul>