Compare commits

..

No commits in common. "4581af875a16f411e7fd74f81d9b258884c46792" and "9cb754909bb5960b52a7832aeb018bd4496a2ace" have entirely different histories.

7 changed files with 86 additions and 116 deletions

View File

@ -9,7 +9,7 @@ fn conf_enable_blog {
conf_blog_editors=blog-editors conf_blog_editors=blog-editors
if(~ $"conf_max_posts_per_page '') if(~ $"conf_max_posts_per_page '')
conf_max_posts_per_page=32 conf_max_posts_per_page=16
} }
fn blagh_init { fn blagh_init {
@ -58,10 +58,6 @@ fn blagh_init {
notify_errors=$status notify_errors=$status
} }
} }
if not if (~ $req_path $blagh_uri^*){
echo 1
}
} }
} }

View File

@ -2,5 +2,4 @@
# requires discount markdown: <https://www.pell.portland.or.us/~orc/Code/discount/> # requires discount markdown: <https://www.pell.portland.or.us/~orc/Code/discount/>
# note: must restart the application when this is changed # note: must restart the application when this is changed
# flags can be seen at: <https://github.com/Orc/discount/blob/3520113e1fbf2e012ba24ceb1343c37acda4edf0/pgm_options.c#L45=> # flags can be seen at: <https://github.com/Orc/discount/blob/3520113e1fbf2e012ba24ceb1343c37acda4edf0/pgm_options.c#L45=>
/usr/bin/markdown -f fencedcode -f ext -f footnote -f latex $1
/usr/bin/markdown -f fencedcode -f ext -f footnote -f latex

View File

@ -1,69 +1,86 @@
/* Font */ /* latin-ext */
@font-face { @font-face {
font-family: 'Source Serif Pro'; font-family: 'Source Serif Pro';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
font-display: swap; font-display: swap;
src: url(https://nunosempere.com/.resources/source-serif-pro-latin-ext.woff2) format('woff2'), src: url(https://nunosempere.com/.resources/source-serif-pro-latin-ext.woff2) format('woff2');
url(https://nunosempere.com/.resources/source-serif-pro-latin.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* latin */
@font-face {
font-family: 'Source Serif Pro';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://nunosempere.com/.resources/source-serif-pro-latin.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
} }
/* Body */ /* Body */
body { body {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
font-family: serif; font-family: serif;
/* font-family: 'Source Serif Pro', serif; */
font-size: 1.5em; font-size: 1.5em;
background-color: #fcfcfc; background-color: #fff;
color:#333;
} }
/* header */ /* header */
header { header {
flex-basis: 100%; flex-basis: 100%;
flex-shrink: 0;
background-color: transparent;
clear: both;
padding: 0em;
margin: 0;
border-bottom: 2px solid #eee; border-bottom: 2px solid #eee;
} }
header h1 { header h1 {
margin-left: 0.7em; margin-left: 0.7em;
color:#333;
} }
header a { header a {
/*
color: inherit;
*/
text-decoration: none; text-decoration: none;
color: #333; color: black;
/*
* color: #005386;
*/
} }
header h1 span { header h1 span {
margin-left: 0em; margin-left: 0em;
/* font-size: 70%; */
color: #555; color: #555;
/* /*
font-size: 70%;
font-style: italic; font-style: italic;
*/ */
} }
header nav { /* Not used by me, but used by suckless.org */ /* Navigation bar */
header nav {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
/* Navigation bar */ body>nav {
nav {
display: flex;
flex-basis: 20%;
max-width: 20%;
min-width: 20%;
float: left; float: left;
margin: 0 1px 0 0; margin: 0 1px 0 0;
border-right: 2px solid #eee; border-right: 2px solid #eee;
/* width: 350px; */ width: 350px;
} }
nav a{ nav a{
/*
color: inherit;
*/
text-decoration: none; text-decoration: none;
color: #005386; color: #005386;
} }
@ -90,24 +107,21 @@ nav li a {
padding: 0.3em 2em 0.8ex 1em; padding: 0.3em 2em 0.8ex 1em;
} }
/* article */ /* Other sections */
article{ article{
padding: 0.3em 0 0 0;
flex-basis: 70%; flex-basis: 70%;
max-width: 70%;
min-width: 70%;
padding-left: 1em; padding-left: 1em;
color: #333;
/* padding: 0.3em 0 0 0; */
} }
/* footer */
footer { footer {
/* display: block; */ display: block;
flex-grow: 1; flex-grow: 1;
flex-basis: 100%; flex-basis: 100%;
flex-shrink: 0; flex-shrink: 0;
justify-content: space-between; justify-content: space-between;
padding: 0.1em 0em 1em 1em; padding: 1em 0em 1em 1em;
border-top: 2px solid #eee border-top: 2px solid #eee
} }
@ -130,23 +144,24 @@ figcaption {
font-size: 16px; font-size: 16px;
} }
.img-frontpage-center,
.img-medium-center,
img { img {
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
}
img {
width: 80%; width: 80%;
} }
.img-frontpage-center { .img-frontpage-center {
width: 40%; display: block;
margin-left: auto;
margin-right: auto;
width: 25%;
} }
.img-medium-center { .img-medium-center {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%; width: 50%;
} }
@ -155,6 +170,7 @@ img {
blockquote{ blockquote{
width:60%; width:60%;
margin: 5px auto; margin: 5px auto;
font-style:italic;
color: #555555; color: #555555;
padding: 1.2em 30px 1.2em 75px; padding: 1.2em 30px 1.2em 75px;
border-left:8px solid #005386 ; border-left:8px solid #005386 ;
@ -174,15 +190,16 @@ blockquote::before{
} }
/* Code bloocks */ /* Code bloocks */
pre { pre, code {
background-color: #eeeeee;
border: 2px solid;
overflow-x: auto;
}
pre,
code {
display: block; display: block;
padding: 0.5em; overflow-x: auto;
tab-width: 2;
line-height:1.7;
padding: 0.5em 0.5em 0.5em 0.5em;
margin-top: 1em;
margin-bottom: 1em;
margin: 2em;
background: #F0F0F0;
} }
/* Lists */ /* Lists */
@ -198,7 +215,6 @@ li{
} }
/* Tables */ /* Tables */
/* old style:
table { table {
border-collapse: collapse; border-collapse: collapse;
margin-left: auto; margin-left: auto;
@ -218,33 +234,34 @@ th {
background: var(--accent-bg); background: var(--accent-bg);
font-weight: bold; font-weight: bold;
} }
*/
table { /* If the screen size is 600px wide or less, set the font-size of <div> to 30px */
border: 3px solid #005386; @media screen and (max-width: 1400px) {
border-collapse: collapse; body {
table-layout: fixed; display: block;
text-align: left; }
width: 100%; .hidden-mobile {
display: none;
}
article {
flex-basis: 100%;
padding: 5px;
}
header h1 {
margin-left: 0;
}
.img-frontpage-center {
display: block;
margin-left: auto;
margin-right: auto;
width: 200px;
}
} }
table thead { @media screen and (min-width: 1400px) {
/* position: sticky; .hide-not-mobile {
top: 0; */ display: none;
} }
table tbody tr:nth-child(even) {
background: #E9F1F4;
}
table th {
background: #005386;
color: #fcfcfc;
font-weight: bold;
}
table th, table td {
padding: 1em 1em 1em 1em;
/* border: 3px solid #005386; */
} }
/* Newsletter stuff */ /* Newsletter stuff */
@ -272,7 +289,6 @@ table th {
border: 1px solid #ddd; border: 1px solid #ddd;
font-size: 20px; font-size: 20px;
} }
input:focus { input:focus {
border-color: #0055d4; border-color: #0055d4;
} }
@ -290,44 +306,3 @@ img + em {
text-align: center; text-align: center;
font-size: 1em; font-size: 1em;
} }
/* Isso comments */
/* You can see the general comments style: <https://comments.nunosempere.com/css/isso.css> */
.isso-textarea, #isso-postbox-author, #isso-postbox-email, #isso-postbox-website, .isso-post-action > input {
font-size: 20px;
}
.isso-textarea {
height: 15em;
resize: vertical !important;
}
/* If the screen size is 600px wide or less, set the font-size of <div> to 30px */
@media screen and (max-width: 1400px) {
body {
display: block;
}
.hidden-mobile {
display: none;
}
article {
flex-basis: 100%;
max-width: 100%;
min-width: 100%;
padding: 5px;
}
header h1 {
margin-left: 0;
}
.img-frontpage-center {
width: 28%; /* 40% * 70%, so that the relative size stays the same*/
}
}
@media screen and (min-width: 1400px) {
.hide-not-mobile {
display: none;
}
}