Skip to content

Commit

Permalink
Add new bounty
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Oct 3, 2022
1 parent 8ff39ad commit d022e80
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 14 deletions.
5 changes: 4 additions & 1 deletion docs/content/bounty/0.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
+++
title = "Ordinal Bounty 0"
title = "Bounty 0"
date = 2022-08-19
[extra]
claimed = true
+++
Send an ordinal whose number ends with a zero:

Expand Down
5 changes: 4 additions & 1 deletion docs/content/bounty/1.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
+++
title = "Ordinal Bounty 1"
title = "Bounty 1"
date = 2022-08-24
[extra]
claimed = true
+++
The transaction that submits a UTXO containing the oldest ordinal, i.e., that
with the lowest number, amongst all submitted UTXOs will be judged the winner.
Expand Down
6 changes: 6 additions & 0 deletions docs/content/bounty/2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
+++
title = "Bounty 2"
date = 2022-10-03
[extra]
claimed = false
+++
11 changes: 2 additions & 9 deletions docs/content/bounty/index.md → docs/content/bounty/_index.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
+++
title = "Bounties"
page_template = "bounty.html"
sort_by = "date"
+++

Next bounty coming soon! 🤠

Claimed Bounties
----------------

- [Bounty 0](0/)
- [Bounty 1](1/)

Hints
-----

Expand Down
9 changes: 9 additions & 0 deletions docs/templates/bounty.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% extends "base.html" %}

{% block content %}
<h1>{{ page.title }}</h1>
{{ page.content | safe }}

{% set section = get_section(path=page.ancestors | last) %}
{{ section.content | safe }}
{% endblock content %}
18 changes: 16 additions & 2 deletions docs/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
{% extends "base.html" %}

{% block content %}
<h1>Ordinal Docs</h1>

<nav>
{% for page in section.pages %}
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
{% endfor %}
</nav>

{% for path in section.subsections %}
{% set section = get_section(path=path) %}
<h2><a href="{{ section.permalink | safe }}">{{ section.title }}</a></h2>
<ul>
{% for page in section.pages %}
{% for page in section.pages %}
<li>
<time>{{ page.date | date(format="%d %b %Y") }}</time>
»
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
</li>
{% endfor %}
{% endfor %}
</ul>
{% endfor %}
{% endblock content %}
1 change: 0 additions & 1 deletion docs/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

{% block content %}
<h1>{{ page.title }}</h1>
<p><strong>{{ page.date }}</strong></p>
{{ page.content | safe }}
{% endblock content %}
14 changes: 14 additions & 0 deletions docs/templates/section.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ section.title }}</h1>
<ul>
{% for page in section.pages %}
<li>
<time>{{ page.date | date(format="%d %b %Y") }}</time>
»
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
</li>
{% endfor %}
</ul>
{{ section.content | safe }}
{% endblock content %}

0 comments on commit d022e80

Please sign in to comment.