Compare commits

...

42 Commits

Author SHA1 Message Date
Jennifer C J Radtke
529b95e89d try moving comments inside styled div
isso.css has explicit 0 margin which is causing the comments to be offset
2024-02-22 19:30:36 +00:00
Jennifer C J Radtke
e271ee3bf2 restrict width of comment box 2024-02-22 18:57:29 +00:00
Jennifer C J Radtke
5fcc5091cf change domain 2024-02-22 18:50:06 +00:00
Jennifer C J Radtke
a81cd16a45 try other close 2024-02-21 20:49:59 +00:00
Jennifer C J Radtke
780b480539 Add default isso script and comment section 2024-02-21 20:46:02 +00:00
Jennifer C J Radtke
b329b33760 it works if I spell description correctly
swap order of description vs date
2024-02-18 15:22:45 +00:00
Jennifer C J Radtke
7d4749fb68 Rename reflection to writing 2024-02-18 14:45:48 +00:00
Jennifer C J Radtke
cf5d3d208f try again 2024-02-18 14:38:54 +00:00
Jennifer C J Radtke
950fe3aad3 try exclude header pages 2024-02-18 14:38:13 +00:00
Jennifer C J Radtke
09fc071772 try again... 2024-02-18 14:26:16 +00:00
Jennifer C J Radtke
563cbbb9a7 try getting articles, not header pages 2024-02-18 14:22:02 +00:00
Jennifer C J Radtke
9b15175d9c rename index, set urls back to slightly less broken 2024-02-18 14:17:51 +00:00
Jennifer C J Radtke
5d4b0f7af2 try no % 2024-02-18 14:08:39 +00:00
Jennifer C J Radtke
83f0cb141d try fix feed links 2024-02-18 14:07:29 +00:00
Jennifer C J Radtke
0470a8e117 back to content 2024-02-18 09:37:14 +00:00
Jennifer C J Radtke
6d13e3b6ef try description in feed 2024-02-18 09:35:56 +00:00
Jennifer C J Radtke
26167fd7a2 add feed template 2024-02-18 09:30:12 +00:00
Jennifer C J Radtke
c035dd5667 rename to twig??? 2024-02-18 08:36:49 +00:00
Jennifer C J Radtke
ebdf7c4b56 not meta 2024-02-18 08:27:06 +00:00
Jennifer C J Radtke
e53141fc53 still looking for a description 2024-02-18 08:20:32 +00:00
Jennifer C J Radtke
70618d5fe0 add a pico-theme.yml file 2024-02-18 08:16:05 +00:00
Jennifer C J Radtke
2e6a2eee5c experimenting with descriptions 2024-02-18 08:08:56 +00:00
Jennifer C J Radtke
c654d0e7aa include welcome page 2024-02-17 20:13:07 +00:00
Jennifer C J Radtke
b2ceaa74b5 Use pages() function
Apparently this should restrict the results to "top level" pages (and be faster as a bonus!)
2024-02-17 20:07:11 +00:00
Jennifer C J Radtke
973bcbc8e3 add index for reflection posts 2024-02-17 19:58:48 +00:00
Jennifer C J Radtke
6e9b4e0c1b align details margin with paragraph margin 2024-02-17 18:52:40 +00:00
Jennifer C J Radtke
1cbcfe878f bigger 2024-02-17 18:49:47 +00:00
Jennifer C J Radtke
54d8459e6a remove extra config 2024-02-17 18:48:54 +00:00
Jennifer C J Radtke
9d17f836ba more font size changes 2024-02-17 18:47:27 +00:00
Jennifer C J Radtke
ee33dce653 syntax fix 2024-02-17 18:44:46 +00:00
Jennifer C J Radtke
23333b4530 adjust summary margins 2024-02-17 18:42:35 +00:00
Jennifer C J Radtke
1401c05b59 more messing with sizes 2024-02-17 18:39:23 +00:00
Jennifer C J Radtke
196fa69f51 messing with font sizes 2024-02-17 18:35:00 +00:00
Jennifer C J Radtke
61196de324 just make a hover colour for summary instead 2024-02-17 15:06:51 +00:00
Jennifer C J Radtke
cef7c7c400 Try fixing expanders 2024-02-17 15:01:17 +00:00
Jennifer C J Radtke
40320f7c92 Add Bible Gateway ref tag tool 2024-02-16 19:32:29 +00:00
Jennifer C J Radtke
3e7a409b21 update header 2024-02-16 19:18:57 +00:00
Jennifer C J Radtke
d18427f729 delete icons 2024-02-16 19:03:01 +00:00
Jennifer C J Radtke
1b0ad8d1c3 Put cc license link style back 2024-02-16 18:52:41 +00:00
Jennifer C J Radtke
d9f6a3818c Fix link colour 2024-02-15 21:18:32 +00:00
Jennifer C J Radtke
4571c5bacb Small accessibility fixes 2024-02-15 21:04:40 +00:00
Jennifer C J Radtke
17ab61e649 Add copyright in footer 2023-12-05 13:24:03 +00:00
7 changed files with 214 additions and 95 deletions

View File

@@ -9,7 +9,7 @@
header { header {
background: var(--header-background); background: var(--header-background);
color: var(--header-text); color: var(--header-text);
text-align: center; text-align: right;
padding: 25px 0; padding: 25px 0;
margin-bottom: 30px; margin-bottom: 30px;
} }
@@ -26,8 +26,9 @@ header a:hover,
footer a:hover { footer a:hover {
color: var(--header-text); color: var(--header-text);
} }
header h1 { header p {
font-weight: bold; font-weight: bold;
font-variant: small-caps;
margin: 0; margin: 0;
} }
header h1 a { header h1 a {
@@ -58,10 +59,6 @@ footer {
/* For larger screens /* For larger screens
/*---------------------------------------------*/ /*---------------------------------------------*/
@media (min-width: 550px) { @media (min-width: 550px) {
header {
padding: 60px 0;
margin-bottom: 80px;
}
header h1 { header h1 {
float: left; float: left;
} }

5
css/normalize.css vendored
View File

@@ -41,8 +41,7 @@ hgroup,
main, main,
menu, menu,
nav, nav,
section, section {
summary {
display: block; display: block;
} }
@@ -424,4 +423,4 @@ table {
td, td,
th { th {
padding: 0; padding: 0;
} }

41
css/skeleton.css vendored
View File

@@ -126,11 +126,8 @@
/* Base Styles /* Base Styles
*/ */
/* NOTE
html is set to 62.5% so that all the REM measurements throughout Skeleton
are based on 10px sizing. So basically 1.5rem = 15px :) */
html { html {
font-size: 62.5%; } font-size: 85%; }
body { body {
font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */ font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
line-height: 1.6; line-height: 1.6;
@@ -147,22 +144,12 @@ h1, h2, h3, h4, h5, h6 {
margin-top: 0; margin-top: 0;
margin-bottom: 2rem; margin-bottom: 2rem;
font-weight: 300; } font-weight: 300; }
h1 { font-size: 4.0rem; line-height: 1.2; letter-spacing: -.1rem;} h1 { font-size: 3.0rem; line-height: 1.2; letter-spacing: -.1rem;}
h2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; } h2 { font-size: 2.6rem; line-height: 1.25; letter-spacing: -.1rem; }
h3 { font-size: 3.0rem; line-height: 1.3; letter-spacing: -.1rem; } h3 { font-size: 2.4rem; line-height: 1.3; letter-spacing: -.08rem; }
h4 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; } h4 { font-size: 1.8rem; line-height: 1.35; letter-spacing: -.05rem; }
h5 { font-size: 1.8rem; line-height: 1.5; letter-spacing: -.05rem; } h5 { font-size: 1.5rem; line-height: 1.5; letter-spacing: 0; }
h6 { font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; } h6 { font-size: 1.2rem; line-height: 1.6; letter-spacing: 0; }
/* Larger than phablet */
@media (min-width: 550px) {
h1 { font-size: 5.0rem; }
h2 { font-size: 4.2rem; }
h3 { font-size: 3.6rem; }
h4 { font-size: 3.0rem; }
h5 { font-size: 2.4rem; }
h6 { font-size: 1.5rem; }
}
p { p {
margin-top: 0; } margin-top: 0; }
@@ -171,11 +158,22 @@ p {
/* Links /* Links
*/ */
a { a {
color: #1EAEDB; } color: #000000; }
a:hover { a:hover {
color: #0FA0CE; } color: #0FA0CE; }
/* Summary
*/
summary {
margin-top: .5em
margin-bottom: .5rem;
}
summary:hover {
color: #0FA0CE;
}
/* Buttons /* Buttons
*/ */
.button, .button,
@@ -364,6 +362,7 @@ dl,
figure, figure,
table, table,
p, p,
details,
ul, ul,
ol, ol,
form { form {

26
feed.twig Normal file
View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
{% set RFC822 = "D, d M Y H:i:s O" %}
<channel>
<title>{{ site_title | e }}</title>
<description>{{ pages.index.meta.description | e }}</description>
<link>{{ base_url }}/</link>
<atom:link href="{{ base_url ~ "/feed" }}" rel="self" type="application/rss+xml"/>
<pubDate>{{ "now" | date(RFC822) }}</pubDate>
<lastBuildDate>{{ "now" | date(RFC822) }}</lastBuildDate>
<generator>Pico</generator>
{% for page in pages(depth=2, depthOffset=1) if page.id not in ['index','feed'] and not end %}
<item>
<title>{{ page.title | e }}</title>
<description>{{ page.id | content | e }}</description>
<pubDate>{{ page.date | date(RFC822) }}</pubDate>
<link>{{ page.url }}</link>
<guid isPermaLink="true">{{ page.url }}</guid>
{% for cat in page.meta.categories %}
<category>{{ cat | e }}</category>
{% endfor %}
</item>
{% if loop.index == 10 %}{% set end = true %}{% endif %}
{% endfor %}
</channel>
</rss>

75
index.twig Normal file
View File

@@ -0,0 +1,75 @@
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<!-- Basic Page Needs
-->
<meta charset="utf-8" />
<title>{% if meta.title %}{{ meta.title }} | {% endif %}{{ site_title }}</title>
{% if meta.description %}
<meta name="description" content="{{ meta.description }}">
{% endif %}
{% if meta.robots %}
<meta name="robots" content="{{ meta.robots }}">
{% endif %}
<!-- Mobile Specific Metas
-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS
-->
<link rel="stylesheet" href="{{ theme_url }}/css/normalize.css">
<link rel="stylesheet" href="{{ theme_url }}/css/skeleton.css">
<link rel="stylesheet" href="{{ theme_url }}/css/custom-h-nav.css">
<!-- Favicon
-->
<link rel="icon" type="image/png" href="{{ theme_url }}/images/favicon.png">
</head>
<body>
<!-- Primary Page Layout
-->
<header>
<div class="container">
<div class="row">
<p><a href="{{ base_url }}">{{ site_title }}</a></p>
<ul class="nav">
{% for page in pages(depthOffset=-1) %}
<li><a href="{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
</div>
</div>
</header>
<section class="content container">
<div class="row">
{{ content }}
</div>
</section>
<div class="container">
<script data-isso="//comments.writing.straysong.co.uk/"
src="//comments.writing.straysong.co.uk/js/embed.min.js"></script>
<section id="isso-thread">
<noscript>Javascript is needed to display comments.</noscript>
</section>
</div>
<footer>
<div class="container">
<div class="row">
Unless otherwise stated, work on this website is by Jennifer C J Radtke. <p>This work is licensed under <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-SA 4.0</a></p>
</div>
</div>
</footer>
<script src="https://www.biblegateway.com/public/link-to-us/tooltips/bglinks.js" type="text/javascript"></script>
<script type="text/javascript">
BGLinks.version = "NRSVA";
BGLinks.linkVerses();
</script>
<!-- End Document
-->
</body>
</html>

12
pico-theme.yml Normal file
View File

@@ -0,0 +1,12 @@
api_version: 3 # Use Pico's latest API version for themes
meta: # Register meta headers used by this theme
Logo: logo # The URL to your website's logo (value is passed to Pico's "url" Twig filter)
Tagline: tagline # Your website's tag line, shown right below your site title (supports Markdown)
Social: social # A list of social icons that will be shown in your website's footer;
# You must specify a "title", "url" and "icon" per entry
twig_config: # Twig template engine config
autoescape: html # Let Twig escape variables by default
strict_variables: false # If set to true, Twig will bail out when unset variables are being used
charset: utf-8 # The charset used by Twig templates

View File

@@ -1,65 +1,76 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" class="no-js"> <html lang="en" class="no-js">
<head> <head>
<!-- Basic Page Needs <!-- Basic Page Needs
--> -->
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>{% if meta.title %}{{ meta.title }} | {% endif %}{{ site_title }}</title> <title>{% if meta.title %}{{ meta.title }} | {% endif %}{{ site_title }}</title>
{% if meta.description %} {% if meta.description %}
<meta name="description" content="{{ meta.description }}"> <meta name="description" content="{{ meta.description }}">
{% endif %} {% endif %}
{% if meta.robots %} {% if meta.robots %}
<meta name="robots" content="{{ meta.robots }}"> <meta name="robots" content="{{ meta.robots }}">
{% endif %} {% endif %}
<!-- Mobile Specific Metas <!-- Mobile Specific Metas
--> -->
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS <!-- CSS
--> -->
<link rel="stylesheet" href="{{ theme_url }}/css/normalize.css"> <link rel="stylesheet" href="{{ theme_url }}/css/normalize.css">
<link rel="stylesheet" href="{{ theme_url }}/css/skeleton.css"> <link rel="stylesheet" href="{{ theme_url }}/css/skeleton.css">
<link rel="stylesheet" href="{{ theme_url }}/css/custom-h-nav.css"> <link rel="stylesheet" href="{{ theme_url }}/css/custom-h-nav.css">
<!-- Favicon <!-- Favicon
--> -->
<link rel="icon" type="image/png" href="{{ theme_url }}/images/favicon.png"> <link rel="icon" type="image/png" href="{{ theme_url }}/images/favicon.png">
</head> </head>
<body> <body>
<!-- Primary Page Layout <!-- Primary Page Layout
--> -->
<header> <header>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<h1><a href="{{ base_url }}">{{ site_title }}</a></h1> <p><a href="{{ base_url }}">{{ site_title }}</a></p>
<ul class="nav"> <ul class="nav">
{% for page in pages %} {% for page in pages(depthOffset=-1) %}
<li><a href="{{ page.url }}">{{ page.title }}</a></li> <li><a href="{{ page.url }}">{{ page.title }}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>
</div> </div>
</header> </header>
<section class="content container"> <section class="content container">
<div class="row"> <div class="row">
{{ content }} {{ content }}
</div> {% for page in pages("writing")|sort_by("time")|reverse if not page.hidden %}
</section> <div class="post">
<h3><a href="{{ page.url }}">{{ page.title }}</a></h3>
<footer> <p>{{ page.description }}</p>
<div class="container"> <p class="date">{{ page.date_formatted }}</p>
<div class="row"> </div>
The website of Jennifer Radtke {% endfor %}
</div> </div>
</div> </section>
</footer>
<footer>
<!-- End Document <div class="container">
--> <div class="row">
</body> Unless otherwise stated, work on this website is by Jennifer C J Radtke. <p>This work is licensed under <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-SA 4.0</a></p>
</html> </div>
</div>
</footer>
<script src="https://www.biblegateway.com/public/link-to-us/tooltips/bglinks.js" type="text/javascript"></script>
<script type="text/javascript">
BGLinks.version = "NRSVA";
BGLinks.linkVerses();
</script>
<!-- End Document
-->
</body>
</html>