update nav

This commit is contained in:
dmitry 2023-12-04 20:19:39 +02:00
parent 427e4910c8
commit 66c1ac1f6e
4 changed files with 115 additions and 48 deletions

63
.idea/workspace.xml generated
View file

@ -4,7 +4,10 @@
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="b9871119-7d48-43df-9f66-6fd91d65a1cb" name="Changes" comment="update navbar">
<list default="true" id="b9871119-7d48-43df-9f66-6fd91d65a1cb" name="Changes" comment="update footer">
<change afterPath="$PROJECT_DIR$/content/new-news/index.md" afterDir="false" />
<change afterPath="$PROJECT_DIR$/templates/new-news.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/common/header.html" beforeDir="false" afterPath="$PROJECT_DIR$/templates/common/header.html" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
@ -38,32 +41,32 @@
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">{
&quot;keyToString&quot;: {
&quot;DefaultHtmlFileTemplate&quot;: &quot;HTML File&quot;,
&quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
&quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
&quot;git-widget-placeholder&quot;: &quot;preprod&quot;,
&quot;last_opened_file_path&quot;: &quot;/Users/dmitroantonuk/Documents/GitHub/organicmaps.github.io&quot;,
&quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
&quot;node.js.detected.package.stylelint&quot;: &quot;true&quot;,
&quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
&quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
&quot;node.js.selected.package.stylelint&quot;: &quot;E:/organicmaps.github.io/node_modules/stylelint&quot;,
&quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
&quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
&quot;prettierjs.PrettierConfiguration.Package&quot;: &quot;/Users/dmitroantonuk/Documents/development/organicmaps.github.io/node_modules/prettier&quot;,
&quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"DefaultHtmlFileTemplate": "HTML File",
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"WebServerToolWindowFactoryState": "false",
"git-widget-placeholder": "preprod",
"last_opened_file_path": "/Users/dmitroantonuk/Documents/GitHub/organicmaps.github.io/templates",
"node.js.detected.package.eslint": "true",
"node.js.detected.package.stylelint": "true",
"node.js.detected.package.tslint": "true",
"node.js.selected.package.eslint": "(autodetect)",
"node.js.selected.package.stylelint": "E:/organicmaps.github.io/node_modules/stylelint",
"node.js.selected.package.tslint": "(autodetect)",
"nodejs_package_manager_path": "npm",
"prettierjs.PrettierConfiguration.Package": "/Users/dmitroantonuk/Documents/development/organicmaps.github.io/node_modules/prettier",
"vue.rearranger.settings.migration": "true"
}
}</component>
}]]></component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/content/community" />
<recent name="$PROJECT_DIR$/templates" />
<recent name="$PROJECT_DIR$/content" />
<recent name="$PROJECT_DIR$/content/community" />
<recent name="$PROJECT_DIR$/content/new" />
<recent name="E:\organicmaps.github.io\static\images" />
<recent name="E:\organicmaps.github.io\templates" />
</key>
<key name="MoveFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/templates" />
@ -89,7 +92,11 @@
<workItem from="1700583569450" duration="24000" />
<workItem from="1701121159173" duration="598000" />
<workItem from="1701250034648" duration="374000" />
<workItem from="1701251942782" duration="44000" />
<workItem from="1701251942782" duration="917000" />
<workItem from="1701274485654" duration="598000" />
<workItem from="1701429859454" duration="1150000" />
<workItem from="1701686937193" duration="593000" />
<workItem from="1701701540827" duration="944000" />
</task>
<task id="LOCAL-00001" summary="no index">
<created>1699960224756</created>
@ -112,7 +119,14 @@
<option name="project" value="LOCAL" />
<updated>1700936414815</updated>
</task>
<option name="localTasksCounter" value="4" />
<task id="LOCAL-00004" summary="update footer">
<created>1701430404256</created>
<option name="number" value="00004" />
<option name="presentableId" value="LOCAL-00004" />
<option name="project" value="LOCAL" />
<updated>1701430404256</updated>
</task>
<option name="localTasksCounter" value="5" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
@ -132,6 +146,7 @@
<component name="VcsManagerConfiguration">
<MESSAGE value="no index" />
<MESSAGE value="update navbar" />
<option name="LAST_COMMIT_MESSAGE" value="update navbar" />
<MESSAGE value="update footer" />
<option name="LAST_COMMIT_MESSAGE" value="update footer" />
</component>
</project>

25
content/new-news/index.md Normal file
View file

@ -0,0 +1,25 @@
---
description:
template: new-news.html
weight: 10
extra:
hero_title: Donate
hero_image: /new-donate/donate-bg.png
menu_title_pre: Home
hero_description: Donate and create better maps together!
info_section_card_description_1: We rely on your donations to keep Organic Maps open, free, and without ads
info_section_card_description_2: We are a few enthusiasts contributing in our free time, and spending our families' money on the project. We love what we do, and we love our users
info_section_card_description_3: With your support, we are working toward a privacy-focused offering that is the preferred choice on the market
funding_section_title: How will funding be used?
funding_section_card_title_1: Developers
funding_section_card_title_2: Infrastructure
funding_section_card_title_3: Support
funding_section_card_description_1: Currently there is no full time team who is working to develop new features and improve the service. To consistently move the product forward, a core team is needed.
funding_section_card_description_2: We pay for fast servers, so anyone in the world can download free map data updates without delays. The maps data transfers are hundreds of terabytes monthly, and the amount is growing.
funding_section_card_description_3: User support, bug fixing, and improving the stability of the app are at the top of our priorities. There are 1200+ issues on GitHub that is growing every day, and a large number of items to address on AppStore, Google Play, and support emails.
users_way_section_title: Our users say
users_way_donation_description_1: I donate to Organic Maps for the unique offering they bring, and to support positive change
users_way_donation_description_2: I stopped using Google Maps and want to have an alternative to grow, for everyone to benefit from this
users_way_donation_name_1: Name Donat
users_way_donation_name_2: Name Donat
---

View file

@ -17,41 +17,59 @@
{% set page = get_page(path=translated.path) %}
{% endif %}
{% endif %}
<li class="header__nav header__{{ page.path | split(pat="/") | reverse | nth(n=1) }} header__link{% if page.path != resource.path %}">
<a href="{{ page.permalink | replace(from=config.base_url, to="") | safe }}">{% else %}_active">{% endif %}
{{ page.extra.menu_title }}
{%- if page.path != resource.path %}</a>
{% endif %}
<!-- <li class="header__nav header__{{ page.path | split(pat="/") | reverse | nth(n=1) }} header__link{% if page.path != resource.path %}">-->
<!-- <a href="{{ page.permalink | replace(from=config.base_url, to="") | safe }}">{% else %}_active">{% endif %}-->
<!-- {{ page.extra.menu_title }}-->
<!-- {%- if page.path != resource.path %}</a>-->
<!-- {% endif %}-->
</li>
{% endfor %}
<!-- <li class="header__nav header__link">-->
<!-- <a href="/faq/">-->
<!-- Faq-->
<!-- </a>-->
<!-- </li>-->
<!-- <li class="header__nav header__link">-->
<!-- <a href="/crowdfunding/">-->
<!-- Сrowdfunding-->
<!-- </a>-->
<!-- </li>-->
<!-- <li class="header__nav header__link">-->
<!-- <a href="/crowdfunding/">-->
<!-- Download-->
<!-- </a>-->
<!-- </li>-->
<!-- <li class="header__nav header__link">-->
<!-- <a href="/new-news/">-->
<!-- News-->
<!-- </a>-->
<!-- </li>-->
<!-- <li class="header__nav header__link">-->
<!-- <a href="/volunteering/">-->
<!-- Volunteering-->
<!-- </a>-->
<!-- </li>-->
<li class="header__nav header__link">
<a href="/faq/">
Faq
</a>
</li>
<li class="header__nav header__link">
<a href="/crowdfunding/">
Сrowdfunding
</a>
</li>
<li class="header__nav header__link">
<a href="/crowdfunding/">
Download
</a>
</li>
<li class="header__nav header__link">
<a href="/about-us/">
About us
<a href="/community/">
Community
</a>
</li>
<li class="header__nav header__link">
<a href="/new-donate/">
Donate
</a>
</li>
<li class="header__nav header__link">
<a href="/volunteering/">
Volunteering
<a href="/support/">
Support
</a>
</li>
<li class="header__nav header__link">
<a href="/about-us/">
About us
</a>
</li>
</ul>

9
templates/new-news.html Normal file
View file

@ -0,0 +1,9 @@
{% extends "base.html" %}
{%- block content %}
news
{%- endblock content %}