1 Star 0 Fork 0

虎嗅蔷薇 / kotlin-web-site-cn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.html 4.57 KB
一键复制 编辑 原始数据 按行查看 历史
{% set restyled="v2" %}
{% extends 'base.html' %}
{% block head_preload %}
<link rel="preload" href="/assets/fonts/Inter/Inter-Regular.woff2" as="font">
<link rel="preload" href="/assets/fonts/Inter/Inter-Bold.woff2" as="font">
<link rel="preload" href="/assets/fonts/JetBrainsMono/JetBrainsMono-Regular.woff2" as="font">
<link rel="preload" href="/assets/fonts/JetBrainsMono/JetBrainsMono-Bold.woff2" as="font">
<link rel="preload" href="/assets/fonts/JetBrainsMono/JetBrainsMono-Italic.woff2" as="font">
{% endblock %}
{% block body_class %}page__index-new{% endblock %}
{% block page_outer_content %}
{% include 'inc/pages/index/intro.html' %}
{% include 'inc/pages/index/code-examples.html' %}
<section class="kotlin-banner-section kto-overview-section kto-overview-section_mode_dark">
<div class="g-layout">
<h2 class="kto-heading kto-heading_size_h4">Kotlin 近期动态</h2>
<div class="kotlin-banner-section__banner">
<a target="_blank" class="kotlin-banner-section__link"
href="https://blog.jetbrains.com/kotlin/2021/02/new-language-features-preview-in-kotlin-1-4-30/">
<img
alt="Kotlin 1.4.30 release" width="100%"
src="/assets/images/index/banners/promo.png?1.5-preview-feature"
>
</a>
</div>
<div class="kotlin-news-section">
{% set index_news_group = split_chunk(site.data["last-news"], 2) %}
{% for news_list in index_news_group %}
<div class="kotlin-news-section__chunk">
{% for news in news_list %}
{% set domain_link = get_domain(news.link) %}
<a class="kotlin-news-section__item" href="{{ news.link }}"{% if domain_link %} target="_blank"{% endif %}>
<p class="kto-text kto-text_size_s">
{% if news.tag %}{{ news.tag }}
{% elif domain_link %}{{ domain_link }}
{% else %}Overview{% endif %}
</p>
<h3 class="kto-text kto-text_size_m">
<span class="kotlin-news-section__title">{{ news.title }}</span>&nbsp;<span class="kotlin-news-section__arrow"></span>
</h3>
</a>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
</section>
{% include 'inc/pages/index/why-section.html' %}
<section id="usage-highlights" class="kto-overview-section kotlin-highlights-section">
<div class="g-layout">
<h2 class="kotlin-highlights-section__title kto-heading kto-heading_size_h1">
<a class="kto-overview-section__title_link" href="#usage-highlights">Kotlin 用途集锦</a>
</h2>
<ul class="kto-highlights">
{% for testimonial in data.testimonials %}
<li class="kto-highlights-item kto-highlights-item_company_{{ testimonial.company.lower() | safe }}">
<h3 class="kto-highlights-item__header">{{ testimonial.company | safe }}</h3>
<div class="kto-highlights-item__text">{{ testimonial.text | safe }}</div>
</li>
{% endfor %}
</ul>
</div>
</section>
{# include 'inc/pages/index/stay-in-touch.html' #}
<section id="get-started" class="kto-overview-section kotlin-get-started-section">
<div class="g-layout">
<p class="kto-text kto-text_size_s">How about to try?</p>
<h2 class="kto-heading kto-heading_size_hero kotlin-get-started-section__title">
<a class="kto-overview-section__title_link" href="#get-started">
立即开始使用 Kotlin!<br>
在喜欢的 IDE 中构建你的第一个应用
</a>
</h2>
<a
class="kto-button kto-button_size_m kto-button_mode_contrast smooth-anchor"
href="/docs/getting-started.html"
>入门</a>
</div>
</section>
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ url_for('static', filename='index.css')|autoversion }}">
{% endblock %}
{% block scripts %}
<script src="{{ url_for('static', filename='index.js')|autoversion }}"></script>
{% endblock %}
1
https://gitee.com/yongming9011/kotlin-web-site-cn.git
git@gitee.com:yongming9011/kotlin-web-site-cn.git
yongming9011
kotlin-web-site-cn
kotlin-web-site-cn
master

搜索帮助