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 "_*") SCSS = $(shell find src/scss -name "*.scss" -not -name "_*")
CSS = $(patsubst src/scss/%.scss,src/public/css/%.css,$(SCSS)) CSS = $(patsubst src/scss/%.scss,src/public/css/%.css,$(SCSS))
.PHONY: all css dir clean .PHONY: all css clean
css: dir $(CSS) css: $(CSS)
dir:
@mkdir -p src/public/css
clean: clean:
@printf "\033[31m RM \033[0m%s\n" src/public/css @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) $(CSS): src/public/css/%.css : src/scss/%.scss $(MIXINS)
@printf "\033[33m SCSS \033[0m%s\n" $< @printf "\033[33m SCSS \033[0m%s\n" $<
@mkdir -p $(@D)
@sassc --style compressed $< $@ @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"; @import "./variables";
* { #header, #footer {
behavior: url(boxsizing.htc); behavior: url(boxsizing.htc);
} }
.ie-nav {
margin-left: 90px;
}
#main .col { #main .col {
display: block !important; display: block !important;
width: 100% !important; width: 100% !important;
@ -16,8 +20,8 @@
padding-bottom: $outer-gap; padding-bottom: $outer-gap;
} }
#nav { #main .right {
behavior: url(display-table.htc); margin-top: $outer-gap;
} }
#new_comment { #new_comment {

View file

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

View file

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

View file

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

View file

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

View file

@ -23,6 +23,8 @@ abstract class Core {
*/ */
public static function asset_stamp(string $path): int public static function asset_stamp(string $path): int
{ {
if (ENVIRONMENT == 'devlopment')
return time();
$path = PUBLIC_ROOT . '/' . $path; $path = PUBLIC_ROOT . '/' . $path;
return @filemtime($path); return @filemtime($path);
} }
@ -80,6 +82,6 @@ abstract class Core {
*/ */
public static function format_date(string $iso_date): string 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) { if ($alt) {
$alt = lang($alt); $alt = lang($alt);
$attrs['alt'] = $alt; $attrs['alt'] = $alt;
$attrs['title'] = $alt;
} }
if ($width) { if ($width) {
$attrs['width'] = $width; $attrs['width'] = $width;

View file

@ -3,6 +3,7 @@
// ========================= ENVIRONMENT == // ========================= ENVIRONMENT ==
ini_set('html_errors', '1'); ini_set('html_errors', '1');
date_default_timezone_set('America/New_York');
// ENVIRONMENT // 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_eyes'] = 'Best viewed with eyes';
$lang['alt_button_vim'] = 'Edited with VIM'; $lang['alt_button_vim'] = 'Edited with VIM';
$lang['alt_button_gnu_linux'] = 'Made with GNU/Linux'; $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_button_apiopage'] = 'Memetic apiopage';
$lang['alt_website_logo'] = 'Website Logo'; $lang['alt_website_logo'] = 'Website Logo';