mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 19:08:11 +08:00
Revamp the Graphite website (#1265)
Revamp the website with more content
This commit is contained in:
@@ -1,36 +1,40 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}Blog | {{ page.title }}{% endblock title %}
|
||||
|
||||
{% block title %}Blog | {% set this = section | default(value = page) %}{{ this.title }}{% endblock title %}
|
||||
|
||||
{% block head %}
|
||||
{% set this = section | default(value = page) %}
|
||||
<link rel="stylesheet" href="/article.css">
|
||||
<meta property="og:title" content="{{ page.title }}.">
|
||||
<meta property="og:title" content="{{ this.title }}.">
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:image" content="{{ page.extra.banner | safe }}">
|
||||
<meta property="og:image" content="{{ this.extra.banner | safe }}">
|
||||
<meta property="og:url" content="{{ current_url | safe }}">
|
||||
{% endblock head %}
|
||||
|
||||
{% block content %}
|
||||
<section id="article" class="section-row">
|
||||
{% set this = section | default(value = page) %}
|
||||
|
||||
<section class="section-row reading-material">
|
||||
<div class="section">
|
||||
<div class="details">
|
||||
<h2 class="headline">{{ page.title }}.</h2>
|
||||
<span class="publication">By {{ page.extra.author }}. {{ page.date | date(format="%B %d, %Y", timezone="America/Los_Angeles") }}.</span>
|
||||
<img class="banner" src="{{ page.extra.banner | safe }}" />
|
||||
<h1 class="headline">{{ this.title }}</h2>
|
||||
<span class="publication">By {{ this.extra.author }}. {{ this.date | date(format = "%B %d, %Y", timezone="America/Los_Angeles") }}.</span>
|
||||
<img class="banner" src="{{ this.extra.banner | safe }}" />
|
||||
</div>
|
||||
<hr />
|
||||
<article>
|
||||
{{ page.content | safe }}
|
||||
{{ this.content | safe }}
|
||||
</article>
|
||||
{% if page.extra.reddit or page.extra.twitter %}
|
||||
{% if this.extra.reddit or this.extra.twitter %}
|
||||
<hr />
|
||||
<div class="social">
|
||||
{% if page.extra.reddit %}
|
||||
<a href="{{ page.extra.reddit | safe }}" target="_blank" class="button arrow">
|
||||
{% if this.extra.reddit %}
|
||||
<a href="{{ this.extra.reddit | safe }}" target="_blank" class="button arrow">
|
||||
<img src="https://static.graphite.rs/icons/reddit.svg" /><span>Comment on Reddit</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if page.extra.twitter %}
|
||||
<a href="{{ page.extra.twitter | safe }}" target="_blank" class="button arrow">
|
||||
{% if this.extra.twitter %}
|
||||
<a href="{{ this.extra.twitter | safe }}" target="_blank" class="button arrow">
|
||||
<img src="https://static.graphite.rs/icons/twitter.svg" /><span>Comment on Twitter</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user