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

github.com/parsiya/Hugo-Octopress.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParsia Hakimian <parsiya@users.noreply.github.com>2016-07-31 07:31:45 +0300
committerGitHub <noreply@github.com>2016-07-31 07:31:45 +0300
commit11cef13cb43f39bbfdea36d1c27d35a486bb1ca3 (patch)
tree6306ac7dae0b8eb37de1a969f3cbdd2a75a1e52d
parent61ec7259110f7ea75a082a40d3f7fb0e5cce70e0 (diff)
parente4f348d4490885a1a1fb2d56c0730801e54e9f5c (diff)
Merge pull request #18 from Erethon/master
Various small fixes
-rw-r--r--README.md7
-rw-r--r--layouts/indexes/tag.html6
-rw-r--r--layouts/partials/header.html2
-rw-r--r--layouts/partials/navigation.html11
-rw-r--r--layouts/partials/post_footer.html8
-rw-r--r--sample-config.toml7
6 files changed, 30 insertions, 11 deletions
diff --git a/README.md b/README.md
index 267cc11..9bee7d7 100644
--- a/README.md
+++ b/README.md
@@ -100,6 +100,10 @@ post = "/blog/:year-:month-:day-:title/"
# switch to true to enable RSS icon link in the navigation menu
rss = true
+ # set to true to use a text label for RSS instead of an icon
+ # this is overwritten by the `rss` setting
+ textrss = false
+
# Website's default description used in meta tags
defaultDescription = ""
@@ -120,6 +124,9 @@ post = "/blog/:year-:month-:day-:title/"
# Set to true to hide ReadingTime on posts
disableReadingTime = false
+
+ # Set to true to disable downloading of remote Google fonts
+ disableGoogleFonts = false
```
## <a name="highlight"></a>Code highlight
diff --git a/layouts/indexes/tag.html b/layouts/indexes/tag.html
index d3ee56d..e688005 100644
--- a/layouts/indexes/tag.html
+++ b/layouts/indexes/tag.html
@@ -27,13 +27,13 @@
</time>
<footer>
<span class="categories"> <!-- show categories and tags -->
- posted in:
{{ if isset .Params "categories" }}
+ posted in:
{{ range .Params.categories }} <a class="category" href="{{ "/categories/" | absURL }}{{ . | urlize | lower }}">{{ . }}</a>{{ end }}
- {{ end }}
</br>
- tags:
+ {{ end }}
{{ if isset .Params "tags" }}
+ tags:
{{ range .Params.tags }} <a class="category" href="{{ "/tags/" | absURL }}{{ . | urlize | lower }}">{{ . }}</a>{{ end }}
{{ end }}
</span>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index b1ee375..5ca4f64 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -9,9 +9,11 @@
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1">
+ {{ if not .Site.Params.disableGoogleFonts }}
<!--Fonts from Google"s Web font directory at http://google.com/webfonts added from Octo-->
<link href="//fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="//fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
+ {{ end }}
<!-- goes into the title bar -->
<title>{{ .Title }}</title>
diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html
index a846ac8..2158654 100644
--- a/layouts/partials/navigation.html
+++ b/layouts/partials/navigation.html
@@ -13,10 +13,13 @@
<!-- http://fontawesome.io icon fa-lg adapts it to size (at least it is supposed to) -->
<ul class="subscription">
- {{ if .Site.Params.rss }}<a href="{{ "/index.xml" | absURL }}" target="_blank" type="application/rss+xml" title="RSS"><i class="fa fa-rss-square fa-lg"></i></a>{{ end }}
-
- <!-- If you prefer RSS text (like Octopress) replace the line above with next comment -->
- <!-- <li><a href="/index.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li> -->
+ {{ if or .Site.Params.rss .Site.Params.textrss }}
+ {{ if .Site.Params.rss }}
+ <a href="{{ "/index.xml" | absURL }}" target="_blank" type="application/rss+xml" title="RSS"><i class="fa fa-rss-square fa-lg"></i></a>
+ {{ else }}
+ <li><a href="/index.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
+ {{ end }}
+ {{ end }}
</ul>
diff --git a/layouts/partials/post_footer.html b/layouts/partials/post_footer.html
index 261ed5f..cfa4d48 100644
--- a/layouts/partials/post_footer.html
+++ b/layouts/partials/post_footer.html
@@ -5,12 +5,12 @@
<span class="byline author vcard">Posted by <span class="fn">{{ with .Site.Params.author }}{{ . }}{{ end }}</span></span>
<!-- can't put the .Date.Format inside the datetime attribute because of double quotes, so it's outside -->
<time>{{ .Date.Format "Jan 2, 2006" }}</time>
- <span class="categories">
- Tags:
- {{ if isset .Params "tags" }}
+ {{ if isset .Params "tags" }}
+ <span class="categories">
+ Tags:
<!-- need to convert the tags to lower for the URLs to work -->
{{ range .Params.tags }}<a class="category" href="{{ "/tags/" | absURL }}{{ . | urlize | lower }}">{{ . }}</a> {{ end }}
- {{ end }}
+ {{ end }}
</span>
</p>
diff --git a/sample-config.toml b/sample-config.toml
index 8912c80..d3c8f96 100644
--- a/sample-config.toml
+++ b/sample-config.toml
@@ -121,6 +121,10 @@ post = "/blog/:year-:month-:day-:title/" # change the post URL to look like the
rss = true # switch to true to enable RSS icon link
+ # set to true to use a text label for RSS instead of an icon
+ # this is overwritten by the `rss` setting
+ textrss = false
+
defaultDescription = ""
# populate this with your own keywords
@@ -139,6 +143,9 @@ post = "/blog/:year-:month-:day-:title/" # change the post URL to look like the
# Set to true to hide ReadingTime on posts
disableReadingTime = false
+ # Set to true to disable downloading of remote Google fonts
+ disableGoogleFonts = false
+
# blackfriday is Hugo's markdown engine. Options are at: https://gohugo.io/overview/configuration/ (scroll down to "Configure Blackfriday rendering")
[blackfriday]
hrefTargetBlank = true # open the external links in a new window