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

github.com/ExchangeRate-API/strange-case.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbimmer44 <david@rooikat.com>2019-01-28 19:25:41 +0300
committerbimmer44 <david@rooikat.com>2019-01-28 19:25:41 +0300
commit0f6662cf3cc62efae7d618346fd45efc253ef590 (patch)
tree911b1ddc6bbb162cd17d82a4498a0aca3efb7fe3
parentc638c3b0f753eb7232eba95aab68216c45fddfa8 (diff)
Added support for a mailto: link in the sidebar.
-rw-r--r--README.md4
-rw-r--r--layouts/partials/sidebar-content.html6
-rw-r--r--static/css/strange-case.css17
-rw-r--r--static/css/strange-case.min.css2
-rw-r--r--theme.toml2
5 files changed, 22 insertions, 9 deletions
diff --git a/README.md b/README.md
index 59741fd..28d8b1f 100644
--- a/README.md
+++ b/README.md
@@ -62,6 +62,8 @@ You can also include useful menu links by including `"menu=main"` items in your
You can optionally use the `pre` and `post` vars to include HTML before or after the `name` in the resulting links.
+You can use the `"contact_email"` `[param]` to set a mailto: link the in the sidebar. Leave blank if you don't want it.
+
### Color Schemes
@@ -193,4 +195,4 @@ Here is a full example `config.toml`:
## Licensing
-This theme is released under the [MIT License](LICENSE.md). \ No newline at end of file
+This theme is released under the [MIT License](LICENSE.md).
diff --git a/layouts/partials/sidebar-content.html b/layouts/partials/sidebar-content.html
index e19ca2a..a76501d 100644
--- a/layouts/partials/sidebar-content.html
+++ b/layouts/partials/sidebar-content.html
@@ -25,6 +25,12 @@
</ul>
</div>
+ {{ if .Site.Params.contact_email }}
+ <div class="sidebar-contact">
+ &#187; <a href="mailto:{{ .Site.Params.contact_email }}">Email Us</a>
+ </div>
+ {{ end }}
+
<p class="copyright">{{ with .Site.Params.copyright }}{{ . }}{{ else }}&copy; {{ now.Format "2006" }}. All rights reserved. {{end}}</p>
<p class="attr">Powered by <a href="http://gohugo.io">Hugo</a> &amp; <a href="https://github.com/ExchangeRate-API/strange-case">Strange Case</a> (inspired by <a href="https://github.com/poole/hyde">Hyde</a>).</p>
diff --git a/static/css/strange-case.css b/static/css/strange-case.css
index beb08bb..f7cc431 100644
--- a/static/css/strange-case.css
+++ b/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
@@ -101,6 +101,11 @@ p {
.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;
@@ -189,7 +194,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
@@ -287,4 +292,4 @@ p.attr {
}
.scheme-slate .post .post-heading span {
color: #9a9a9a;
-} \ No newline at end of file
+}
diff --git a/static/css/strange-case.min.css b/static/css/strange-case.min.css
index 055af69..ab6e86b 100644
--- a/static/css/strange-case.min.css
+++ b/static/css/strange-case.min.css
@@ -1 +1 @@
-html,body{height:100%}h1,h2,h3,h4{font-family:Roboto,sans-serif}p{font-family:Roboto,sans-serif;font-size:1.2em}.content{padding-left:5em}@media(max-width:768px){.content{padding-left:1em}}.post{margin-bottom:3em}.post .post-heading{margin-bottom:1em}.post .post-heading h1{margin-top:1.4em}.post h1{font-size:2.6em;margin-bottom:.2em;margin-top:1em;font-weight:bold}.post h2{font-size:1.8em;margin-bottom:.2em;margin-top:1em;font-weight:bold}.post .post-heading span{font-size:1.4em}.sidebar{padding:2em;font-size:1.3em;text-align:left}.sidebar .sidebar-content{width:85%;margin:0 auto}.sidebar .sidebar-freetext{margin-top:1.5em}.sidebar .sidebar-menus{padding-left:0;margin-left:0;margin-top:1.5em}.sidebar .sidebar-menus li{list-style:none;font-size:1em}.sidebar .sidebar-recent{margin-top:1.5em}.sidebar .sidebar-menus li a{text-decoration:underline}@media(min-width:768px){.sidebar{top:0;bottom:0;left:0;position:fixed}.sidebar-content{bottom:1em;left:1em;right:1em;position:absolute}.sidebar .sidebar-content{width:75%;margin:0 auto}}@media(max-width:992px){.sidebar{font-size:1em}}@media(max-width:1200px){.sidebar{font-size:1.1em}}.sidebar h1{font-size:1.8em;font-weight:bold;margin-bottom:0}.sidebar li{font-size:.8em}p.copyright{font-size:.7em;border-top:1px dotted #ccc;padding-top:1em;margin-top:2em;margin-bottom:.1em}p.attr{margin-top:0;font-size:.6em}.scheme-gulfracing .sidebar{background-color:#85b2d3;color:#444}.scheme-gulf .sidebar h1{color:#1c1c28}.scheme-gulf .sidebar a{color:#444}.scheme-gulf .content a{color:#e75e16}.scheme-gulf .post .post-heading span{color:#9a9a9a}.scheme-darkbrown .sidebar{background-color:#2d2d2d;color:#f2f0ec}.scheme-darkbrown .sidebar h1{color:#9c9}.scheme-darkbrown .sidebar a{color:#9c9}.scheme-darkbrown .content a{color:#2d2d2d}.scheme-darkbrown .post .post-heading span{color:#9a9a9a}.scheme-lightbrown .sidebar{background-color:#d3d0c8;color:#393939}.scheme-lightbrown .sidebar h1{color:#393939}.scheme-lightbrown .sidebar a{color:#515151}.scheme-lightbrown .content a{color:#393939}.scheme-lightbrown .post .post-heading span{color:#9a9a9a}.scheme-orange .sidebar{background-color:#f99157;color:#f2f0ec}.scheme-orange .sidebar h1{color:#515151}.scheme-orange .sidebar a{color:#747369}.scheme-orange .content a{color:#393939}.scheme-orange .post .post-heading span{color:#9a9a9a}.scheme-green .sidebar{background-color:#a3be8c;color:#4f5b66}.scheme-green .sidebar h1{color:#2b303b}.scheme-green .sidebar a{color:#eff1f5}.scheme-green .content a{color:#2d2d2d}.scheme-green .post .post-heading span{color:#9a9a9a}.scheme-slate .sidebar{background-color:#a7adba;color:#343d46}.scheme-slate .sidebar h1{color:#2b303b}.scheme-slate .sidebar a{color:#bf616a}.scheme-slate .content a{color:#65737e}.scheme-slate .post .post-heading span{color:#9a9a9a} \ No newline at end of file
+html,body{height:100%}h1,h2,h3,h4{font-family:Roboto,sans-serif}p{font-family:Roboto,sans-serif;font-size:1.2em}.content{padding-left:5em}@media(max-width:768px){.content{padding-left:1em}}.post{margin-bottom:3em}.post .post-heading{margin-bottom:1em}.post .post-heading h1{margin-top:1.4em}.post h1{font-size:2.6em;margin-bottom:.2em;margin-top:1em;font-weight:bold}.post h2{font-size:1.8em;margin-bottom:.2em;margin-top:1em;font-weight:bold}.post .post-heading span{font-size:1.4em}.sidebar{padding:2em;font-size:1.3em;text-align:left}.sidebar .sidebar-content{width:85%;margin:0 auto}.sidebar .sidebar-freetext{margin-top:1.5em}.sidebar .sidebar-menus{padding-left:0;margin-left:0;margin-top:1.5em}.sidebar .sidebar-menus li{list-style:none;font-size:1em}.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;bottom:0;left:0;position:fixed}.sidebar-content{bottom:1em;left:1em;right:1em;position:absolute}.sidebar .sidebar-content{width:75%;margin:0 auto}}@media(max-width:992px){.sidebar{font-size:1em}}@media(max-width:1200px){.sidebar{font-size:1.1em}}.sidebar h1{font-size:1.8em;font-weight:bold;margin-bottom:0}.sidebar li{font-size:.8em}p.copyright{font-size:.7em;border-top:1px dotted #ccc;padding-top:1em;margin-top:2em;margin-bottom:.1em}p.attr{margin-top:0;font-size:.6em}.scheme-gulfracing .sidebar{background-color:#85b2d3;color:#444}.scheme-gulfracing .sidebar h1{color:#1c1c28}.scheme-gulfracing .sidebar a{color:#444}.scheme-gulfracing .content a{color:#e75e16}.scheme-gulfracing .post .post-heading span{color:#9a9a9a}.scheme-darkbrown .sidebar{background-color:#2d2d2d;color:#f2f0ec}.scheme-darkbrown .sidebar h1{color:#9c9}.scheme-darkbrown .sidebar a{color:#9c9}.scheme-darkbrown .content a{color:#2d2d2d}.scheme-darkbrown .post .post-heading span{color:#9a9a9a}.scheme-lightbrown .sidebar{background-color:#d3d0c8;color:#393939}.scheme-lightbrown .sidebar h1{color:#393939}.scheme-lightbrown .sidebar a{color:#515151}.scheme-lightbrown .content a{color:#393939}.scheme-lightbrown .post .post-heading span{color:#9a9a9a}.scheme-orange .sidebar{background-color:#f99157;color:#f2f0ec}.scheme-orange .sidebar h1{color:#515151}.scheme-orange .sidebar a{color:#747369}.scheme-orange .content a{color:#393939}.scheme-orange .post .post-heading span{color:#9a9a9a}.scheme-green .sidebar{background-color:#a3be8c;color:#4f5b66}.scheme-green .sidebar h1{color:#2b303b}.scheme-green .sidebar a{color:#eff1f5}.scheme-green .content a{color:#2d2d2d}.scheme-green .post .post-heading span{color:#9a9a9a}.scheme-slate .sidebar{background-color:#a7adba;color:#343d46}.scheme-slate .sidebar h1{color:#2b303b}.scheme-slate .sidebar a{color:#bf616a}.scheme-slate .content a{color:#65737e}.scheme-slate .post .post-heading span{color:#9a9a9a} \ No newline at end of file
diff --git a/theme.toml b/theme.toml
index 26ca686..b114884 100644
--- a/theme.toml
+++ b/theme.toml
@@ -18,4 +18,4 @@ min_version = 0.15
[original]
name = ""
homepage = ""
- repo = "" \ No newline at end of file
+ repo = ""