mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Add new addional-recourse content type, which is rendered with comments
This commit is contained in:
@@ -21,6 +21,7 @@ contentdir = "../blog"
|
||||
|
||||
[permalinks]
|
||||
post = "/:slug.html"
|
||||
additional-resource = "/:filename.html"
|
||||
page = "/:filename.html"
|
||||
|
||||
[blackfriday]
|
||||
|
||||
1
layouts/_default/link.html
Normal file
1
layouts/_default/link.html
Normal file
@@ -0,0 +1 @@
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
11
layouts/additional-resource/single.html
Normal file
11
layouts/additional-resource/single.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<article class="post">
|
||||
<h1 class="post-title">{{ .Title }}</h1>
|
||||
|
||||
{{ .Content }}
|
||||
</article>
|
||||
|
||||
{{ partial "disqus.html" . }}
|
||||
{{ partial "anchorjs.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
Reference in New Issue
Block a user