mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-25 14:06:29 +08:00
b10091c5f9
* Update the installation section. * Fix storage_pyramid.png * Update the landing page. * Update index.md * Add download buttons to the landing page. * Update the button style. * Update .gitignore
32 lines
No EOL
926 B
HTML
32 lines
No EOL
926 B
HTML
<!-- Actions -->
|
|
{% if page.edit_url %}
|
|
|
|
<!-- Edit button -->
|
|
{% if "content.action.edit" in features and "edit" not in page.meta.hide %}
|
|
<a
|
|
href="{{ page.edit_url }}"
|
|
title="{{ lang.t('action.edit') }}"
|
|
class="md-content__button md-icon"
|
|
>
|
|
{% set icon = config.theme.icon.edit or "material/file-edit-outline" %}
|
|
{% include ".icons/" ~ icon ~ ".svg" %}
|
|
</a>
|
|
{% endif %}
|
|
|
|
<!-- View button -->
|
|
{% if "content.action.view" in features %}
|
|
{% if "/blob/" in page.edit_url %}
|
|
{% set part = "blob" %}
|
|
{% else %}
|
|
{% set part = "edit" %}
|
|
{% endif %}
|
|
<a
|
|
href="{{ page.edit_url | replace(part, 'raw') }}"
|
|
title="{{ lang.t('action.view') }}"
|
|
class="md-content__button md-icon"
|
|
>
|
|
{% set icon = config.theme.icon.view or "material/file-eye-outline" %}
|
|
{% include ".icons/" ~ icon ~ ".svg" %}
|
|
</a>
|
|
{% endif %}
|
|
{% endif %} |