mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 13:30:48 +00:00
Simplify website template code
This commit is contained in:
parent
1bdbcfd9e7
commit
2f2daa25e9
16 changed files with 162 additions and 125 deletions
|
@ -1,7 +1,28 @@
|
|||
+++
|
||||
title = "Blog"
|
||||
template = "blog.html"
|
||||
sort_by = "date"
|
||||
page_template = "article.html"
|
||||
sort_by = "date"
|
||||
generate_feed = true
|
||||
+++
|
||||
|
||||
<section id="intro" class="section-row">
|
||||
<div class="section">
|
||||
|
||||
# Blog.
|
||||
|
||||
<div class="left-right-split">
|
||||
|
||||
Latest news and articles from the Graphite team.
|
||||
|
||||
<p class="feed">
|
||||
<a href="/blog/rss.xml">
|
||||
<img class="icon" src="https://static.graphite.rs/icons/feed.svg" alt="RSS" />
|
||||
<span class="link arrow">RSS Feed</span>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -3,7 +3,15 @@ title = "Contact the team"
|
|||
template = "page.html"
|
||||
+++
|
||||
|
||||
<section class="section-row">
|
||||
<div class="section">
|
||||
|
||||
# Contact the team.
|
||||
|
||||
* Members of the press, please see the [press resources](/press) page.
|
||||
* For general discussions, reach out on [Discord](https://discord.graphite.rs) or [Reddit](https://www.reddit.com/r/graphite/).
|
||||
* To report a bug or request a feature, please [file an issue](https://github.com/GraphiteEditor/Graphite/issues/new) on GitHub.
|
||||
* For other inquiries, please get in touch by email at <contact@graphite.rs>.
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -3,6 +3,11 @@ title = "Contribute to Graphite"
|
|||
template = "page.html"
|
||||
+++
|
||||
|
||||
<section class="section-row">
|
||||
<div class="section">
|
||||
|
||||
# Contribute to Graphite.
|
||||
|
||||
It's great to hear you are interested in contributing to Graphite! We want to make it as easy and frictionless as possible for you to get started. Here are the basics.
|
||||
|
||||
## Building and running the codebase.
|
||||
|
@ -133,3 +138,6 @@ Once you begin writing code, please open a pull request immediately and mark it
|
|||
Open a new PR as a draft / Convert an existing PR to a draft:
|
||||
|
||||

|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -3,6 +3,11 @@ title = "Features and roadmap"
|
|||
template = "page.html"
|
||||
+++
|
||||
|
||||
<section class="section-row">
|
||||
<div class="section">
|
||||
|
||||
# Features and roadmap.
|
||||
|
||||
The current version of Graphite provides tools for designing vector art with Bezier curves, similar to tools like Inkscape, Illustrator, and Affinity Designer. These creations may be exported to SVG, JPG, or PNG formats. External images may be imported and placed in the document as a layer (but not directly edited yet).
|
||||
|
||||
The present priority is building the node graph system and integrating it with the existing vector editing toolset. Once ready, work will shift to building a raster-based render engine. More advanced features will build off those core capabilities.
|
||||
|
@ -60,3 +65,6 @@ Long Term:
|
|||
- Live video compositing
|
||||
- Animated SVG authorship
|
||||
- Distributed rendering system
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
+++
|
||||
title = ""
|
||||
template = "index.html"
|
||||
+++
|
|
@ -3,6 +3,11 @@ title = "Graphite license"
|
|||
template = "page.html"
|
||||
+++
|
||||
|
||||
<section class="section-row">
|
||||
<div class="section">
|
||||
|
||||
# Graphite license.
|
||||
|
||||
Graphite is open source software built by the community. The application is free to use by anyone for any purpose, even commercially. The artwork you produce is solely yours.
|
||||
|
||||
The source code [available on GitHub](https://github.com/GraphiteEditor/Graphite) (including the Graphite editor application, Graphene system, libraries, and other software materials) is provided under the Apache 2.0 license posted below, unless otherwise noted. Artwork, including but not limited to logos, icons, SVG code, branding imagery, and sample art are excluded from this license and held under copyright by their respective owners. Learn about the [Graphite brand](/logo) for more information.
|
||||
|
@ -185,3 +190,6 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -1,8 +1,16 @@
|
|||
+++
|
||||
title = "Graphite logo"
|
||||
template = "logo.html"
|
||||
template = "page.html"
|
||||
|
||||
[extra]
|
||||
css = "/logo.css"
|
||||
+++
|
||||
|
||||
<section class="section-row">
|
||||
<div class="section">
|
||||
|
||||
# Graphite logo.
|
||||
|
||||
The Graphite logo is made available for community use. While the software is free and open source, the brand identity is more restrictive. Please be respectful of the Graphite brand by reviewing the usage policy.
|
||||
|
||||
## Usage policy.
|
||||
|
@ -19,3 +27,65 @@ If in doubt, please send an email to <contact@graphite.rs> for permission.
|
|||
## Download.
|
||||
|
||||
Download the complete [logo kit](https://static.graphite.rs/logos/graphite-logo-kit.zip) or a specific version in PNG or SVG format below.
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<br />
|
||||
|
||||
<section class="feature-box logo-view color">
|
||||
<div class="box">
|
||||
<div>
|
||||
<img src="https://static.graphite.rs/logos/graphite-logotype-color.svg" height="160" />
|
||||
<span>Graphite Logotype (Color)</span>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-color.svg" download>Download (SVG)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-color-240x937.png" download>Download (PNG 240x937)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-color-480x1874.png" download>Download (PNG 480x1874)</a>
|
||||
</div>
|
||||
<div>
|
||||
<img src="https://static.graphite.rs/logos/graphite-logo-color.svg" height="160" />
|
||||
<span>Graphite Icon (Color)</span>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-color.svg" download>Download (SVG)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-color-240x240.png" download>Download (PNG 240x240)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-color-480x480.png" download>Download (PNG 480x480)</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="feature-box logo-view light">
|
||||
<div class="box">
|
||||
<div>
|
||||
<img src="https://static.graphite.rs/logos/graphite-logotype-solid.svg" height="160" />
|
||||
<span>Graphite Logotype (Solid)</span>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-solid.svg" download>Download (SVG)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-solid-240x937.png" download>Download (PNG 240x937)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-solid-480x1874.png" download>Download (PNG 480x1874)</a>
|
||||
</div>
|
||||
<div>
|
||||
<img src="https://static.graphite.rs/logos/graphite-logo-solid.svg" height="160" />
|
||||
<span>Graphite Icon (Solid)</span>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-solid.svg" download>Download (SVG)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-solid-240x240.png" download>Download (PNG 240x240)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-solid-480x480.png" download>Download (PNG 480x480)</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="feature-box logo-view dark">
|
||||
<div class="box">
|
||||
<div>
|
||||
<img src="https://static.graphite.rs/logos/graphite-logotype-solid-white.svg" height="160" />
|
||||
<span>Graphite Logotype (Solid, White)</span>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-solid-white.svg" download>Download (SVG)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-solid-white-240x937.png" download>Download (PNG 240x937)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-solid-white-480x1874.png" download>Download (PNG 480x1874)</a>
|
||||
</div>
|
||||
<div>
|
||||
<img src="https://static.graphite.rs/logos/graphite-logo-solid-white.svg" height="160" />
|
||||
<span>Graphite Icon (Solid, White)</span>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-solid-white.svg" download>Download (SVG)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-solid-white-240x240.png" download>Download (PNG 240x240)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-solid-white-480x480.png" download>Download (PNG 480x480)</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -3,6 +3,11 @@ title = "Press resources"
|
|||
template = "page.html"
|
||||
+++
|
||||
|
||||
<section class="section-row">
|
||||
<div class="section">
|
||||
|
||||
# Press resources.
|
||||
|
||||
This page provides materials for members of the press and anyone looking to share Graphite with their audiences.
|
||||
|
||||
## Contact.
|
||||
|
@ -12,3 +17,6 @@ Please get in touch if you'd like to conduct an interview, get any questions ans
|
|||
## Logo.
|
||||
|
||||
Logos in PNG and SVG format are available for use in articles talking about Graphite. See the [logo](/logo) page for downloads.
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}Page not found.{% endblock title %}
|
||||
{% block title %}Page not found{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<section id="404" class="section-row">
|
||||
<div class="section">
|
||||
<h1>Page not found (yet).</h1>
|
||||
<p>
|
||||
Some pages are still actively under construction. Please check back in a few days!
|
||||
</p>
|
||||
<h1>Page not found.</h1>
|
||||
<br />
|
||||
<a href="/" class="link arrow">Home Page</a>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}Blog | {{ page.title }}.{% endblock title %}
|
||||
{% block title %}Blog | {{ page.title }}{% endblock title %}
|
||||
|
||||
{% block head %}
|
||||
<link rel="stylesheet" href="/article.css">
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, minimum-scale=1">
|
||||
<title>Graphite | {% block title %}{% endblock title %}</title>
|
||||
<title>Graphite | {% block title %}{% endblock title %}.</title>
|
||||
{% block rss %}
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path='blog/rss.xml', trailing_slash=false) }}">
|
||||
{% endblock %}
|
||||
|
@ -13,30 +13,28 @@
|
|||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bona+Nova:wght@400;700">
|
||||
<script src="/js/navbar.js"></script>
|
||||
<style>
|
||||
.balance-text {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
@media (scripting: none) {
|
||||
.balance-text {
|
||||
visibility: hidden;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
@media (scripting: none) {
|
||||
.balance-text {
|
||||
visibility: visible;
|
||||
}
|
||||
@supports (text-wrap: balance) {
|
||||
.balance-text {
|
||||
text-wrap: balance;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
@supports (text-wrap: balance) {
|
||||
.balance-text {
|
||||
text-wrap: balance;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
<noscript>
|
||||
<style>
|
||||
.balance-text {
|
||||
visibility: visible !important;
|
||||
}
|
||||
|
||||
.balance-text {
|
||||
visibility: visible !important;
|
||||
}
|
||||
</style>
|
||||
</noscript>
|
||||
</head>
|
||||
|
|
|
@ -1,25 +1,13 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}{{ section.title }}.{% endblock title %}
|
||||
{% block title %}{{ section.title }}{% endblock title %}
|
||||
|
||||
{% block head %}
|
||||
<link rel="stylesheet" href="/blog.css">
|
||||
{% endblock head %}
|
||||
|
||||
{% block content %}
|
||||
<section id="intro" class="section-row">
|
||||
<div class="section">
|
||||
<h1>{{ section.title }}.</h1>
|
||||
<div class="left-right-split">
|
||||
<p>Latest news and articles from the Graphite team.</p>
|
||||
<p class="feed">
|
||||
<a href="/blog/rss.xml">
|
||||
<img class="icon" src="https://static.graphite.rs/icons/feed.svg" alt="RSS" />
|
||||
<span class="link arrow">RSS Feed</span>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ section.content | safe }}
|
||||
|
||||
<section id="articles" class="section">
|
||||
{% for page in section.pages %}
|
||||
<article>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Redefining state-of-the-art graphics editing.{% endblock title %}
|
||||
{% block title %}Redefining state-of-the-art graphics editing{% endblock title %}
|
||||
|
||||
{% block head %}
|
||||
<link rel="stylesheet" href="/index.css">
|
||||
|
|
|
@ -1,70 +0,0 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}{{ section.title }}.{% endblock title %}
|
||||
|
||||
{% block head %}
|
||||
<link rel="stylesheet" href="/logo.css">
|
||||
{% endblock head %}
|
||||
|
||||
{% block content %}
|
||||
<section class="section-row">
|
||||
<div class="section">
|
||||
<h1>{{ section.title }}.</h1>
|
||||
{{ section.content | safe }}
|
||||
<br />
|
||||
</div>
|
||||
</section>
|
||||
<section class="feature-box logo-view color">
|
||||
<div class="box">
|
||||
<div>
|
||||
<img src="https://static.graphite.rs/logos/graphite-logotype-color.svg" height="160" />
|
||||
<span>Graphite Logotype (Color)</span>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-color.svg" download>Download (SVG)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-color-240x937.png" download>Download (PNG 240x937)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-color-480x1874.png" download>Download (PNG 480x1874)</a>
|
||||
</div>
|
||||
<div>
|
||||
<img src="https://static.graphite.rs/logos/graphite-logo-color.svg" height="160" />
|
||||
<span>Graphite Icon (Color)</span>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-color.svg" download>Download (SVG)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-color-240x240.png" download>Download (PNG 240x240)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-color-480x480.png" download>Download (PNG 480x480)</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="feature-box logo-view light">
|
||||
<div class="box">
|
||||
<div>
|
||||
<img src="https://static.graphite.rs/logos/graphite-logotype-solid.svg" height="160" />
|
||||
<span>Graphite Logotype (Solid)</span>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-solid.svg" download>Download (SVG)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-solid-240x937.png" download>Download (PNG 240x937)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-solid-480x1874.png" download>Download (PNG 480x1874)</a>
|
||||
</div>
|
||||
<div>
|
||||
<img src="https://static.graphite.rs/logos/graphite-logo-solid.svg" height="160" />
|
||||
<span>Graphite Icon (Solid)</span>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-solid.svg" download>Download (SVG)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-solid-240x240.png" download>Download (PNG 240x240)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-solid-480x480.png" download>Download (PNG 480x480)</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="feature-box logo-view dark">
|
||||
<div class="box">
|
||||
<div>
|
||||
<img src="https://static.graphite.rs/logos/graphite-logotype-solid-white.svg" height="160" />
|
||||
<span>Graphite Logotype (Solid, White)</span>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-solid-white.svg" download>Download (SVG)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-solid-white-240x937.png" download>Download (PNG 240x937)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logotype-solid-white-480x1874.png" download>Download (PNG 480x1874)</a>
|
||||
</div>
|
||||
<div>
|
||||
<img src="https://static.graphite.rs/logos/graphite-logo-solid-white.svg" height="160" />
|
||||
<span>Graphite Icon (Solid, White)</span>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-solid-white.svg" download>Download (SVG)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-solid-white-240x240.png" download>Download (PNG 240x240)</a>
|
||||
<a href="https://static.graphite.rs/logos/graphite-logo-solid-white-480x480.png" download>Download (PNG 480x480)</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock content %}
|
|
@ -1,15 +1,12 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}{{ section.title }}.{% endblock title %}
|
||||
{% block title %}{{ section.title }}{% endblock title %}
|
||||
|
||||
{% block head %}
|
||||
<link rel="stylesheet" href="/page.css">
|
||||
{% if section.extra.css %}
|
||||
<link rel="stylesheet" href="{{ section.extra.css | safe }}">
|
||||
{% endif %}
|
||||
{% endblock head %}
|
||||
|
||||
{% block content %}
|
||||
<section class="section-row">
|
||||
<div class="section">
|
||||
<h1>{{ section.title }}.</h1>
|
||||
{{ section.content | safe }}
|
||||
</div>
|
||||
</section>
|
||||
{{ section.content | safe }}
|
||||
{% endblock content %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue