Compare commits

..

3 commits

Author SHA1 Message Date
83a1fe244f
fix ie6 support 2024-09-24 17:31:29 -04:00
0814a5b592
update blog times, fix blog refs 2024-09-24 17:31:18 -04:00
941e525f8e
add eff button 2024-09-24 17:30:28 -04:00
14 changed files with 27 additions and 11 deletions

View file

@ -3,12 +3,9 @@ MIXINS = $(shell find src/scss -name "_*.scss")
SCSS = $(shell find src/scss -name "*.scss" -not -name "_*")
CSS = $(patsubst src/scss/%.scss,src/public/css/%.css,$(SCSS))
.PHONY: all css dir clean
.PHONY: all css clean
css: dir $(CSS)
dir:
@mkdir -p src/public/css
css: $(CSS)
clean:
@printf "\033[31m RM \033[0m%s\n" src/public/css
@ -18,5 +15,6 @@ all: clean css
$(CSS): src/public/css/%.css : src/scss/%.scss $(MIXINS)
@printf "\033[33m SCSS \033[0m%s\n" $<
@mkdir -p $(@D)
@sassc --style compressed $< $@

BIN
src/public/buttons/eff.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

BIN
src/public/buttons/eff.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 B

View file

@ -0,0 +1 @@
#webring{height:5px}

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -2,10 +2,14 @@
@import "./variables";
* {
#header, #footer {
behavior: url(boxsizing.htc);
}
.ie-nav {
margin-left: 90px;
}
#main .col {
display: block !important;
width: 100% !important;
@ -16,8 +20,8 @@
padding-bottom: $outer-gap;
}
#nav {
behavior: url(display-table.htc);
#main .right {
margin-top: $outer-gap;
}
#new_comment {

View file

@ -153,6 +153,8 @@ body {
margin: 0 auto;
@include display-table($inner-gap);
ul { padding: none;}
li {
@include display-table-cell;
float: left;
@ -238,6 +240,7 @@ body {
.buttons {
a, img {
height: 30px;
text-decoration: none;
}
}
}

View file

@ -45,7 +45,7 @@ class Blog_controller extends Controller {
}
$this->view('header', $data);
$this->view('apps/blog_post', $data);
$ref = "blog/post{$name}";
$ref = "blog/post/{$name}";
$this->comments_controller->comments($data['post']['meta']['name'], $ref);
$this->view('footer', $data);
}

View file

@ -22,6 +22,9 @@
<?=image('buttons/eyes', 'alt_button_eyes', animated: TRUE, width: '88', height: '30')?>
<?=image('buttons/vim', 'alt_button_vim', animated: TRUE, width: '88', height: '30')?>
<?=image('buttons/gnu-linux', 'alt_button_gnu_linux', width: '88', height: '30')?>
<a href="https://www.eff.org/join">
<?=image('buttons/eff', 'alt_button_eff', width: '96', height: '30')?>
</a>
<a href="https://citrons.xyz/a/memetic-apioform-page.html">
<?=image('buttons/apiopage', 'alt_button_apiopage', width: '81', height: '30')?>
</a>
@ -36,6 +39,7 @@
<iframe
height="40"
class="bucket"
scrolling="no"
title="<?=lang('bucket_title')?>"
src="<?=$this->get_url('bucket?name=freya')?>"
></iframe>

View file

@ -17,7 +17,8 @@
</h1>
<div role="navigation">
<ul id="nav">
<li><?=ilang('action_home',
<li class="ie-nav">
<?=ilang('action_home',
href: $this->get_url('home'),
container: 'h2'
)?></li>

View file

@ -23,6 +23,8 @@ abstract class Core {
*/
public static function asset_stamp(string $path): int
{
if (ENVIRONMENT == 'devlopment')
return time();
$path = PUBLIC_ROOT . '/' . $path;
return @filemtime($path);
}
@ -80,6 +82,6 @@ abstract class Core {
*/
public static function format_date(string $iso_date): string
{
return date("Y-m-d D H:m", strtotime($iso_date));
return date("Y-m-d D H:i", strtotime($iso_date)) . ' EST';
}
}

View file

@ -73,6 +73,7 @@ function image(
if ($alt) {
$alt = lang($alt);
$attrs['alt'] = $alt;
$attrs['title'] = $alt;
}
if ($width) {
$attrs['width'] = $width;

View file

@ -3,6 +3,7 @@
// ========================= ENVIRONMENT ==
ini_set('html_errors', '1');
date_default_timezone_set('America/New_York');
// ENVIRONMENT
//

View file

@ -28,6 +28,7 @@ $lang['action_blog_tip'] = 'View my blog';
$lang['alt_button_eyes'] = 'Best viewed with eyes';
$lang['alt_button_vim'] = 'Edited with VIM';
$lang['alt_button_gnu_linux'] = 'Made with GNU/Linux';
$lang['alt_button_eff'] = 'Support the Electronic Frontier Foundation!';
$lang['alt_button_apiopage'] = 'Memetic apiopage';
$lang['alt_website_logo'] = 'Website Logo';