diff --git a/README.md b/README.md index cb9a827..a6cafd6 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ The following has been add/edited from the original : - choice to disable/enable Twitter share on buttom. - choice to enable/disable blog on first page. - any file contain "hidden_true" will be exclude from sitemap (via _config.yaml) + - add custom index upper(before blog) + - add seperated blog index page
diff --git a/_config.yml b/_config.yml index 33694e3..2b76e97 100644 --- a/_config.yml +++ b/_config.yml @@ -108,7 +108,8 @@ defaults: header_pages: - _pages/projects.md - - _pages/search_hidden_true.md + - _pages/source.md +# - _pages/search_hidden_true.md - _pages/archive.md - _pages/about.md diff --git a/_includes/custom-index-upper.html b/_includes/custom-index-upper.html new file mode 100644 index 0000000..6bfe42e --- /dev/null +++ b/_includes/custom-index-upper.html @@ -0,0 +1,9 @@ +{% comment %} + Placeholder to allow defining custom things in the index page, in principle, you can add anything here. +{% endcomment %} + +
+
+

UuUWwUPOd

+
+
\ No newline at end of file diff --git a/_pages/blog.md b/_pages/blog.md new file mode 100644 index 0000000..262b278 --- /dev/null +++ b/_pages/blog.md @@ -0,0 +1,27 @@ +--- +layout: page +title: +permalink: /blog/ +--- + + +
+ {% for post in site.posts %} + {% if post.hidden != true %} + + {% endif %} + {% endfor %} +
\ No newline at end of file diff --git a/_pages/source.md b/_pages/source.md new file mode 100644 index 0000000..06e94c5 --- /dev/null +++ b/_pages/source.md @@ -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%} \ No newline at end of file diff --git a/index.html b/index.html index 0f1904d..78acfb9 100644 --- a/index.html +++ b/index.html @@ -2,6 +2,8 @@ layout: default --- +{%- include custom-index-upper.html -%} + {% if site.index_blog == true %}
{% for post in paginator.posts %}