More iteration -- add a stub page

This commit is contained in:
Peter Williams 2020-04-07 22:37:30 -04:00
Родитель f64a8c297c
Коммит 1b4c2ce2ef
7 изменённых файлов: 58 добавлений и 22 удалений

Просмотреть файл

@ -1,14 +1,9 @@
# The URL the site will be built for
base_url = "https://worldwidetelescope.org"
# Whether to automatically compile all Sass files in the sass directory
title = "AAS WorldWide Telescope"
description = "AAS WorldWide Telescope is a tool for showcasing astronomical data and knowledge."
default_language = "en"
compile_sass = true
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = true
# Whether to build a search index to be used later on by a JavaScript library
build_search_index = false
[extra]

18
content/about.md Normal file
Просмотреть файл

@ -0,0 +1,18 @@
+++
date = 2020-04-07
title = "About AAS WorldWide Telescope"
+++
Here is some MarkDown content.
# First Major Heading
Lets write some stuff.
## First Subheading
A little section here.
# Second Major Heading
And finally some more text here.

Просмотреть файл

@ -8,13 +8,17 @@
}
@font-face {
font-family: UniversLTPro-45Light;
font-family: "UniversLTPro";
src: url("/assets/39762C_0_0.eot?#iefix") format("embedded-opentype"), url("/assets/39762C_0_0.woff2") format("woff2"), url("/assets/39762C_0_0.woff") format("woff"), url("/assets/39762C_0_0.ttf") format("truetype");
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: UniversLTPro-65Bold;
font-family: "UniversLTPro";
src: url("/assets/39762C_2_0.eot?#iefix") format("embedded-opentype"), url("/assets/39762C_2_0.woff2") format("woff2"), url("/assets/39762C_2_0.woff") format("woff"), url("/assets/39762C_2_0.ttf") format("truetype");
font-weight: 700;
font-style: normal;
}
// Breakpoints for responsive CSS media queries. For reference, Boostrap uses:
@ -39,7 +43,7 @@ html {
// Default font sizes are too small, I think. At a standard 1em = 16px,
// 1.375em becomes 22px.
font-size: 1.375em;
font-family: "UniversLTPro-45Light";
font-family: "UniversLTPro";
// The viewport width changes slightly if there's a scrollbar or now,
// causing the layout to shift when navigating between long and short
@ -96,23 +100,38 @@ hr {
a {
color: #e0e3f4;
&:hover {
color: #fefefe;
}
}
a:hover {
color: #fefefe;
.page-title {
font-size: 150%;
font-weight: 700;
line-height: 1;
margin: 0 0 1.2rem 0;
a {
text-decoration: none;
}
a:hover {
color: #fff;
}
}
h1 {
// Keep this smaller than `.post-title`
// Keep this smaller than `.page-title`
font-size: 125%;
margin: 1em 0 0.3em 0;
margin: 1.2rem 0 1rem 0;
}
h2 {
// Looks like we need to manually specify these font sizes to cascade down
// relative to h1.
font-size: 110%;
margin: 1.2rem 0 1rem 0;
}
h3, h4, h5, h6 {
@ -152,7 +171,7 @@ figcaption {
.maxwidth {
max-width: 42rem;
padding: 0 1.5rem 0 1.5rem;
padding: 0;
margin-left: auto;
margin-right: auto;
}
@ -183,6 +202,7 @@ header {
li {
margin: 0 0.2rem;
font-weight: 700;
a {
text-decoration: none;
@ -209,8 +229,12 @@ footer {
width: 100%;
clear: both;
font-size: 60%;
margin: 1rem 0 0 0;
padding: 0.3rem 0 0.3rem 0;
margin: 2rem 0 0 0;
div.maxwidth {
border-top: 1px solid #222;
padding: 0.3rem 0;
}
p {
margin: 0;

Двоичные данные
static/assets/img19028-cropped.jpg Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 121 KiB

Двоичные данные
static/assets/stacked-logo-white-on-transparent-260x103.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 28 KiB

Просмотреть файл

@ -22,8 +22,7 @@
<div>
<ul>
<!-- <li><a href="[[ macros__page_url(path="dir/file.md") ]]">Link</a></li> -->
<li><a href="{{ get_url(path="", trailing_slash=true) | safe }}">Topnav Link</a></li>
<li><a href="{{ macros::page_url(path='about.md', trailing_slash=true)}}">About</a></li>
</ul>
</div>
</nav>

Просмотреть файл

@ -5,6 +5,6 @@
{%- endblock title -%}
{% block content %}
<p class="post-title"><a href="{{ page.permalink | safe }}">{{ page.title }}</a></p>
<p class="page-title"><a href="{{ page.permalink | safe }}">{{ page.title }}</a></p>
{{ page.content | safe }}
{% endblock content %}