diff options
| author | Lei Zhang <antiagainst@google.com> | 2017-11-14 10:27:19 -0500 | 
|---|---|---|
| committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-11-14 23:27:19 +0800 | 
| commit | fa7e44cec87ae2ec0c572cf808976492d486e969 (patch) | |
| tree | 46842d1597470cea9dd86cc57ff4d30cbe404259 /layouts/post | |
| parent | c01c9cffb711cf3c647e68fdb417a505aa44c784 (diff) | |
fix: separate categories (#15)
* Separate categories with whitespace
* Modify the _header.scss file to add a 'ยท' character
release 2.6.6
Diffstat (limited to 'layouts/post')
| -rw-r--r-- | layouts/post/single.html | 8 | ||||
| -rw-r--r-- | layouts/post/summary.html | 8 | 
2 files changed, 8 insertions, 8 deletions
| diff --git a/layouts/post/single.html b/layouts/post/single.html index 7960c64..3a737d3 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -9,9 +9,9 @@          <span class="post-time"> {{ .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} </span>          {{ with .Params.categories -}}            <div class="post-category"> -            {{ range . -}} -              <a href="{{ "categories" | relURL }}/{{ . | urlize }}/">{{ . }}</a> -            {{- end }} +            {{ range . }} +              <a href="{{ "categories" | relURL }}/{{ . | urlize }}/"> {{ . }} </a> +            {{ end }}            </div>          {{- end }}          {{ if .Site.Params.moreMeta -}} @@ -63,4 +63,4 @@        </nav>      </footer>    </article> -{{- end }}
\ No newline at end of file +{{- end }} diff --git a/layouts/post/summary.html b/layouts/post/summary.html index be4366b..bbebe31 100644 --- a/layouts/post/summary.html +++ b/layouts/post/summary.html @@ -6,9 +6,9 @@        <span class="post-time"> {{ .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} </span>        {{ with .Params.categories -}}          <div class="post-category"> -          {{ range . -}} -            <a href="{{ "categories" | relURL }}/{{ . | urlize }}/">{{ . }}</a> -          {{- end }} +          {{ range . }} +            <a href="{{ "categories" | relURL }}/{{ . | urlize }}/"> {{ . }} </a> +          {{ end }}          </div>        {{- end }}        {{ if .Site.Params.moreMeta -}} @@ -26,4 +26,4 @@        <a href="{{ .URL }}" class="read-more-link">{{ $lang.posts.readmore }}</a>      </div>    </div> -</article>
\ No newline at end of file +</article> | 
