diff options
author | uvok cheetah | 2024-10-04 18:18:23 +0200 |
---|---|---|
committer | uvok cheetah | 2024-10-04 18:18:23 +0200 |
commit | a6308a769b90f506fd1281e805a2bdf9a8706282 (patch) | |
tree | 5cacccb3fc505be87a41f9a6b8c8edad100b0e03 | |
parent | 8d8f2d78e540328d5f16459ab3a8750db9664b21 (diff) |
Add ipfs env for single-page
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | _layouts/home.html | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -15,3 +15,7 @@ make_push_to_server: production watch: bundle exec jekyll serve -l --drafts +ipfs: + rm -f ipfs.tar + JEKYLL_ENV=ipfs bundle exec jekyll build + cd _site && cp all.html index.html && tar cvf ../ipfs.tar $$(grep -L redirect *.html) assets index.html diff --git a/_layouts/home.html b/_layouts/home.html index dddeab2..675c4da 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -23,8 +23,8 @@ layout: default </a> </h3> </div> - {%- if site.show_excerpts -%} - {{ post.excerpt }} + {%- if jekyll.environment == 'ipfs' -%} + {{ post.content }} {%- endif -%} </li> {%- endfor -%} |