mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
markdown preview
This commit is contained in:
1 parent
86f67a0ec3
commit
5ca424da0b
15 files changed
+123
-104
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{% macro nav_item(target_page_url, target_page_name, target_page_prefix) %}
|
||||
{% macro nav_item(target_page_name, target_page_args, target_page_prefix) %}
|
||||
<li class="nav__list-item">
|
||||
<a href="{{ target_page_url }}" class="nav__item{% if page_name.startsWith(target_page_prefix) %} nav--active{% endif %}">
|
||||
<a href="{{ url(target_page_name, target_page_args) }}" class="nav__item{% if page_name.startsWith(target_page_prefix) %} nav--active{% endif %}">
|
||||
{{ _(target_page_name) }}
|
||||
</a>
|
||||
</li>
|
||||
@@ -12,7 +12,7 @@
|
||||
<li class="nav__list-item"><a href="/" class="nav__logo"> </a></li>
|
||||
{% for item in Context.nav %}
|
||||
{% if item.checker(handler) %}
|
||||
{{ nav_item(item.path, item.name, item.prefix) }}
|
||||
{{ nav_item(item.name, item.args, item.prefix) }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ol>
|
||||
|
||||
@@ -7,7 +7,7 @@ Given two integers x and y, print the sum.
|
||||
# Format
|
||||
|
||||
## Input
|
||||
Two integers x and y, satisfying 0 <= x, y <= 32767.
|
||||
Two integers x and y, satisfying $0\leq x,y\leq 32767$ .
|
||||
|
||||
## Output
|
||||
One integer, the sum of x and y.
|
||||
@@ -15,16 +15,16 @@ One integer, the sum of x and y.
|
||||
# Sample 1
|
||||
|
||||
## Input
|
||||
|
||||
```
|
||||
123 500
|
||||
```
|
||||
|
||||
## Output
|
||||
|
||||
```
|
||||
623
|
||||
```
|
||||
|
||||
# Limitation
|
||||
1s, 1024KiB for each test case.
|
||||
|
||||
```
|
||||
Reference in new issue
Block a user