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:
authorparsiya@gmail.com <parsiya@gmail.com>2016-08-29 04:39:15 +0300
committerparsiya@gmail.com <parsiya@gmail.com>2016-08-29 04:39:15 +0300
commitae46ea85084f2a7ac16e0999a1bad468e586ca77 (patch)
treeda06669f6142de62cb45b9e6952b0bef33295356
parent1d888f76f101f0664484bfdf61e4f08017baa962 (diff)
Categories now wrap properly. Fixes #23
-rw-r--r--layouts/partials/post_header.html8
-rw-r--r--static/css/hugo-octopress.css5
2 files changed, 6 insertions, 7 deletions
diff --git a/layouts/partials/post_header.html b/layouts/partials/post_header.html
index 4c64bfc..8d81eb6 100644
--- a/layouts/partials/post_header.html
+++ b/layouts/partials/post_header.html
@@ -1,9 +1,6 @@
<!-- This file contains the header/title for each post -->
<header>
- <h1 class="entry-title">
- {{ if ($.Scratch.Get "isHome") }}<a href="{{ .Permalink }}">{{ .Title }}</a>{{ else }} {{ .Title }} {{ end }}
- </h1>
<p class="meta">{{ .Date.Format "Jan 2, 2006" }}
{{ if not .Site.Params.disableReadingTime }} - {{ .ReadingTime }} minute read {{ end }}
{{ if .Site.Params.disqusShortname }} - <a href="{{ .Permalink }}#disqus_thread">Comments</a>{{ end }}
@@ -12,7 +9,10 @@
<!-- <br/> this will make the categories go to the second line and mess with the title -->
<!-- in order to make category URLs work, we need to urlize them and then convert them to lowercase
e.g. .NET Remoting -urlize-> .NET-Remoting -lowercase-> .net-remoting -->
- - {{ range .Params.categories }}<a class="label" href="{{ "/categories/" | absURL }}{{ . | urlize | lower }}/">{{ . }}</a>{{ end }}
+ - {{ range .Params.categories }}<a class="label" href="{{ "/categories/" | absURL }}{{ . | urlize | lower }}/">{{ . }} </a>{{ end }}
{{ end }}
</p>
+ <h1 class="entry-title">
+ {{ if ($.Scratch.Get "isHome") }}<a href="{{ .Permalink }}">{{ .Title }}</a>{{ else }} {{ .Title }} {{ end }}
+ </h1>
</header>
diff --git a/static/css/hugo-octopress.css b/static/css/hugo-octopress.css
index 1862bf5..96153a6 100644
--- a/static/css/hugo-octopress.css
+++ b/static/css/hugo-octopress.css
@@ -1040,7 +1040,7 @@ article {
}
article header {
position: relative;
- padding-top: 2em;
+ /*padding-top: 2em;*/
padding-bottom: 1em;
margin-bottom: 1em;
}
@@ -1061,7 +1061,7 @@ article header p {
}
article header p.meta {
text-transform: uppercase;
- position: absolute;
+ /*position: absolute;*/
top: 0;
}
@media only screen and (min-width: 768px) {
@@ -2150,7 +2150,6 @@ th {
line-height: 1;
color: #fff;
text-align: center;
- white-space: nowrap;
vertical-align: baseline;
border-radius: .25em;
}