Skip to content

Commit

Permalink
feat: url as link
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderdavide committed Feb 19, 2022
1 parent ec4043e commit f6c8150
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion exampleSite/content/english/post/series-part-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ In this second part of the series we'll show you where to find the full series
When you created a series, you'll probably want to link to the full set of blogposts.
In this example we used `series-setup` as our series name.

This means we can now go to `http://localhost:1313/series/series-setup/` to see all the blog posts of this serie.
This means we can now go to [http://localhost:1313/series/series-setup/](http://localhost:1313/series/series-setup/) to see all the blog posts of this serie.
25 changes: 12 additions & 13 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,23 @@ <h2>{{ .Params.mainSectionsTitle }}</h2>
{{ end }}
<div class="post__content">
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
</div>
<p>
{{ if .Site.Params.fullPostContent }}
{{ .Content }}
<p>
{{ if .Site.Params.fullPostContent }}
{{ .Content }}


{{ else }}
{{ .Summary }}
{{ else }}
{{ .Summary }}


{{ end }}
</p>
<!-- add read more -->
{{- if and (.Truncated) (.Site.Params.readMore) -}}
<a href="{{ .RelPermalink }}" class="post__more">{{ i18n "read_more" }}</a>

{{- end -}}
{{ end }}
</p>
<!-- add read more -->
{{- if and (.Truncated) (.Site.Params.readMore) -}}
<a href="{{ .RelPermalink }}">{{ i18n "read_more" }}</a>

{{- end -}}
</div>

<!-- -->
<div class="post__footer">
Expand Down

0 comments on commit f6c8150

Please sign in to comment.