-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d98f94
commit ee25a4c
Showing
5 changed files
with
162 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
+++ | ||
title = "Events" | ||
description = "List of Rust India events in 2023" | ||
date = 2023-07-14T08:00:00+00:00 | ||
updated = 2023-07-14T08:00:00+00:00 | ||
draft = false | ||
template = "events/section.html" | ||
+++ | ||
|
||
The list of upcoming events. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{% extends "section.html" %} | ||
|
||
{% block body %} | ||
{% set page_class = "Community upcoming events" %} | ||
{% endblock body %} | ||
|
||
{% block header %} | ||
{# This value is matched by the config.extra.menu.main->section #} | ||
{% set current_section = "events" %} | ||
{{ macros_header::header(current_section=current_section)}} | ||
{% endblock header %} | ||
|
||
{% block content %} | ||
<div class="wrap container" role="document"> | ||
<div class="content"> | ||
<div class="row justify-content-center"> | ||
<div class="col-md-12 col-lg-10 col-xxl-14"> | ||
<article> | ||
<h1 class="text-center">{{ section.title }}</h1> | ||
<h3 class="text-center">{{ section.description }}</h3> | ||
</article> | ||
<article class="ifcontainer"> | ||
<style> | ||
.ifcontainer { | ||
position: relative; | ||
overflow: hidden; | ||
width: 100%; | ||
padding-top: 56.25%; | ||
/* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */ | ||
} | ||
|
||
/* Then style the iframe to fit in the container div with full height and width */ | ||
.responsive-iframe { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
bottom: 0; | ||
right: 0; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
</style> | ||
<iframe scrolling="no" class="responsive-iframe" | ||
src="https://serverless-events-zkwagd06.fermyon.app/static/events.html" title="rust-india-events" ></iframe> | ||
</article> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block seo %} | ||
{{ super() }} | ||
|
||
{% if config.title %} | ||
{% set title = config.title %} | ||
{% else %} | ||
{% set title = "" %} | ||
{% endif %} | ||
|
||
{% if config.extra.title_addition and title %} | ||
{% set title_addition = title_separator ~ config.extra.title_addition %} | ||
{% elif config.extra.title_addition %} | ||
{% set title_addition = config.extra.title_addition %} | ||
{% else %} | ||
{% set title_addition = "" %} | ||
{% endif %} | ||
|
||
{% set description = config.description %} | ||
|
||
{{ macros_head::seo(title=title, title_addition=title_addition, description=description, is_home=true) }} | ||
{% endblock seo %} | ||
|
||
{% block content %} | ||
<div class="wrap container" role="document"> | ||
<div class="content"> | ||
<section class="section container-fluid mt-n3 pb-3"> | ||
<div class="row justify-content-center"> | ||
<div class="col-lg-12 text-center"> | ||
<h1 class="mt-0">{{ section.title | default(value="Modern Documentation Theme") }}</h1> | ||
</div> | ||
<div class="col-lg-9 col-xl-8 text-center"> | ||
<p class="lead">{{ section.extra.lead | default(value="Please start setting config.toml and adding your content.") | safe }}</p> | ||
<a class="btn btn-primary btn-lg px-4 mb-2" href="{{ get_url(path=section.extra.url | default(value="/")) | safe }}" role="button">{{ section.extra.url_button | default(value="Get started") }}</a> | ||
<p class="meta">{{ section.extra.repo_license | default(value="MIT")}} <a href="{{ section.extra.repo_url | default(value="https://github.com/aaranxu/adidoks") | safe }}">{{ section.extra.repo_version | default(value="0.1.0") }}</a></p> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
</div> | ||
|
||
<section class="section section-sm"> | ||
<div class="container"> | ||
<div class="row justify-content-center text-center"> | ||
{% if section.extra.list %} | ||
{% for val in section.extra.list %} | ||
<div class="col-lg-5"> | ||
<a href="{{ val.url }}"> | ||
<h2 class="h4">{{ val.title }}</h2> | ||
</a> | ||
<p>{{ val.content | safe }}</p> | ||
</div> | ||
{% endfor %} | ||
{% else %} | ||
<div class="col-lg-5"> | ||
<h2 class="h4">Security aware</h2> | ||
<p>Get A+ scores on <a href="https://observatory.mozilla.org/analyze/doks.netlify.app">Mozilla Observatory</a> out of the box. Easily change the default Security Headers to suit your needs.</p> | ||
</div> | ||
<div class="col-lg-5"> | ||
<h2 class="h4">Fast by default ⚡️</h2> | ||
<p>Get 100 scores on <a href="https://googlechrome.github.io/lighthouse/viewer/?gist=7731347bb8ce999eff7428a8e763b637">Google Lighthouse</a> by default. Doks removes unused css, prefetches links, and lazy loads images.</p> | ||
</div> | ||
<div class="col-lg-5"> | ||
<h2 class="h4">SEO-ready</h2> | ||
<p>Use sensible defaults for structured data, open graph, and Twitter cards. Or easily change the SEO settings to your liking.</p> | ||
</div> | ||
<div class="col-lg-5"> | ||
<h2 class="h4">Full text search</h2> | ||
<p>Search your Doks site with FlexSearch. Easily customize index settings and search options to your liking.</p> | ||
</div> | ||
<div class="col-lg-5"> | ||
<h2 class="h4">Page layouts</h2> | ||
<p>Build pages with a landing page, blog, or documentation layout. Add custom sections and components to suit your needs.</p> | ||
</div> | ||
<div class="col-lg-5"> | ||
<h2 class="h4">Dark mode</h2> | ||
<p>Switch to a low-light UI with the click of a button. Change colors with variables to match your branding.</p> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section class="section section-sm container-fluid"> | ||
<div class="row justify-content-center text-center"> | ||
<div class="col-lg-9"></div> | ||
</div> | ||
</section> | ||
{% endblock content %} |