mirror of https://github.com/lxndrblz/anatole.git

alexanderdavide
19.40.2022 f6c81503e9f3e7f8f1b734295cbd9b51148d0153
feat: url as link
2 files modified
35 ■■■■ changed files
exampleSite/content/english/post/series-part-2.md 2 ●●● patch | view | raw | blame | history
layouts/index.html 33 ●●●● patch | view | raw | blame | history
exampleSite/content/english/post/series-part-2.md
@@ -14,4 +14,4 @@
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.
layouts/index.html
@@ -58,24 +58,23 @@
      {{ end }}
      <div class="post__content">
        <h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
        <p>
          {{ if .Site.Params.fullPostContent }}
            {{ .Content }}
          {{ else }}
            {{ .Summary }}
          {{ end }}
        </p>
        <!-- add read more -->
        {{- if and (.Truncated) (.Site.Params.readMore) -}}
          <a href="{{ .RelPermalink }}">{{ i18n "read_more" }}</a>
        {{- end -}}
      </div>
      <p>
        {{ if .Site.Params.fullPostContent }}
          {{ .Content }}
        {{ else }}
          {{ .Summary }}
        {{ end }}
      </p>
      <!-- add read more -->
      {{- if and (.Truncated) (.Site.Params.readMore) -}}
        <a href="{{ .RelPermalink }}" class="post__more">{{ i18n "read_more" }}</a>
      {{- end -}}
      <!--  -->
      <div class="post__footer">