Skip to content

Commit

Permalink
change github icon to opendream, footer for contributing to ref
Browse files Browse the repository at this point in the history
  • Loading branch information
hry-gh committed May 28, 2024
1 parent 992c5dc commit 849b0d5
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
15 changes: 12 additions & 3 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,14 @@
<body>
<div class="flex gap-10 px-3 safe-h-screen">

<div class="left-bar hidden md:block safe-h-screen" id="left-bar">
<div class="left-bar hidden md:block h-[100%]" id="left-bar">
<div class="flex flex-row">
<img src="{{ get_url(path='favicon.svg') | safe }}" width=24px><input data-stork="ref-search" class="flex-grow m-2 pr-2" type="text" />
<div class="flex flex-col justify-center">
<a href="{{ config.base_url | safe }}">
<img src="{{ get_url(path='favicon.svg') | safe }}" width=24px>
</a>
</div>
<input data-stork="ref-search" class="flex-grow m-2 pr-2" type="text" />
</div>
<div data-stork="ref-search-output" class="results"></div>
<nav role="navigation" class="pr-2">
Expand All @@ -70,7 +75,7 @@
<img src="{{ get_url(path='favicon.svg') | safe }}" width=28px class="md:hidden">
<div class="flex flex-row gap-1">
<div class="p-1">
<a href="{{ config.extra.repo }}/blob/{{ config.extra.branch }}/content/{{ pageOrSubsection.relative_path }}?plain=1">
<a href="https://github.com/OpenDreamProject/OpenDream" target="_blank">
<i class="fa-brands fa-github fa-2xl"></i></div>
</a>
<div class="p-1 md:hidden">
Expand All @@ -81,6 +86,10 @@
<div>
{% block content %}{% endblock %}
</div>

<hr>
<div class="flex flex-row justify-center"><a class="text-gray-500" href="{{macros::get_github_link(page=pageOrSubsection)}}"><i class="fa-brands fa-github text-gray-500"></i> Improve this page</a></div>

</div>
</div>
</section>
Expand Down
6 changes: 5 additions & 1 deletion templates/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -319,4 +319,8 @@ <h1 class="title text-3xl">
{{ page.content | safe }}

</div>
{% endmacro %}
{% endmacro %}

{% macro get_github_link(page) %}
{{ config.extra.repo }}/blob/{{ config.extra.branch }}/content/{{ page.relative_path }}?plain=1
{% endmacro get_github_link %}
4 changes: 4 additions & 0 deletions templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ <h1 class="title text-3xl">

{{ page.content | safe }}

{%- if page.content | length -%}
{{ page.content | length }}
{%- endif -%}

{{ macros::render_backlinks(page=page) }}

</div>
Expand Down
7 changes: 7 additions & 0 deletions templates/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ <h1 class="title text-3xl">

{{ macros::render_backlinks(page=section) }}

{%- if not section.content | length -%}
<div class="border-l-2 border-yellow-600 pl-5">
<div class="text-xl">Work In Progress 👷</div>
This page doesn't have any content at the moment. You can contribute to this page <a href="{{macros::get_github_link(page=section)}}"><i class="fa-brands fa-github"></i> here</a>.
</div>
{%- endif -%}

</div>

{% endblock content %}

0 comments on commit 849b0d5

Please sign in to comment.