crappy-reverie : add seperated blog index, custom index
This commit is contained in:
parent
874d22b0af
commit
f6713c3d25
@ -9,6 +9,8 @@ The following has been add/edited from the original :
|
|||||||
- choice to disable/enable Twitter share on buttom.
|
- choice to disable/enable Twitter share on buttom.
|
||||||
- choice to enable/disable blog on first page.
|
- choice to enable/disable blog on first page.
|
||||||
- any file contain "hidden_true" will be exclude from sitemap (via _config.yaml)
|
- any file contain "hidden_true" will be exclude from sitemap (via _config.yaml)
|
||||||
|
- add custom index upper(before blog)
|
||||||
|
- add seperated blog index page
|
||||||
|
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
@ -108,7 +108,8 @@ defaults:
|
|||||||
|
|
||||||
header_pages:
|
header_pages:
|
||||||
- _pages/projects.md
|
- _pages/projects.md
|
||||||
- _pages/search_hidden_true.md
|
- _pages/source.md
|
||||||
|
# - _pages/search_hidden_true.md
|
||||||
- _pages/archive.md
|
- _pages/archive.md
|
||||||
- _pages/about.md
|
- _pages/about.md
|
||||||
|
|
||||||
|
9
_includes/custom-index-upper.html
Normal file
9
_includes/custom-index-upper.html
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{% comment %}
|
||||||
|
Placeholder to allow defining custom things in the index page, in principle, you can add anything here.
|
||||||
|
{% endcomment %}
|
||||||
|
|
||||||
|
<div class="posts">
|
||||||
|
<article class="post">
|
||||||
|
<center><h1> UuUWwUPOd </h1></center>
|
||||||
|
</article>
|
||||||
|
</div>
|
27
_pages/blog.md
Normal file
27
_pages/blog.md
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
layout: page
|
||||||
|
title:
|
||||||
|
permalink: /blog/
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
<div class="posts">
|
||||||
|
{% for post in site.posts %}
|
||||||
|
{% if post.hidden != true %}
|
||||||
|
<article class="post">
|
||||||
|
<a href="{{ site.baseurl }}{{ post.url }}">
|
||||||
|
<h1>{{ post.title }}</h1>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<p class="post_date">{{ post.date | date: "%B %e, %Y" }}</p>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<div class="entry">
|
||||||
|
{{ post.excerpt }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
|
||||||
|
</article>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
11
_pages/source.md
Normal file
11
_pages/source.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
layout: page
|
||||||
|
title: Source
|
||||||
|
permalink: /p-p/
|
||||||
|
---
|
||||||
|
|
||||||
|
If you're seeing this page, Nginx or somekind of Reverse Proxy is probably broken.
|
||||||
|
|
||||||
|
{% comment %}
|
||||||
|
In pratical this should redirect you to gitea via Rewrite
|
||||||
|
{% endcomment%}
|
@ -2,6 +2,8 @@
|
|||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
|
{%- include custom-index-upper.html -%}
|
||||||
|
|
||||||
{% if site.index_blog == true %}
|
{% if site.index_blog == true %}
|
||||||
<div class="posts">
|
<div class="posts">
|
||||||
{% for post in paginator.posts %}
|
{% for post in paginator.posts %}
|
||||||
|
Loading…
Reference in New Issue
Block a user