Erweiterung im html5Template
- ampLink hinzugefügt - bei einer Seite metaDescription hinzugefügt geändert: md/index.md geändert: pandocTemplate/cwsvJudo.html5.pandocTemplate - Graphikerzeugung überarbeitet geändert: Makefile - Funktion zur Rücklieferung des Galerielinks geändert: phpLib/cwsvJudo/galTable.php
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
RES_LIST = 64 128 256 512
|
||||||
|
|
||||||
cssFiles = $(wildcard css/*.css)
|
cssFiles = $(wildcard css/*.css)
|
||||||
mdFiles = $(wildcard md/*.md)
|
mdFiles = $(wildcard md/*.md)
|
||||||
phpFiles = $(patsubst md/%.md, build/%.php, $(mdFiles))
|
phpFiles = $(patsubst md/%.md, build/%.php, $(mdFiles))
|
||||||
@@ -106,12 +108,21 @@ build/.uploadMarker/config/%: config/%
|
|||||||
|
|
||||||
|
|
||||||
.PHONY: graphiken
|
.PHONY: graphiken
|
||||||
graphiken:
|
graphiken: cwsvLogoWappen cwsvJudoLogoWappen
|
||||||
convert -resize 128x graphiken/cwsvLogoWappen.x250.png build/graphiken/cwsvLogoWappen.128w.png
|
|
||||||
pngnq -Qf -s9 -e.png -f build/graphiken/cwsvLogoWappen.128w.png
|
cwsvJudoLogoWappen: $(addprefix build/graphiken/cwsvJudoLogoWappen/cwsvJudoLogoWappen., $(addsuffix w.png, $(RES_LIST)))
|
||||||
convert -resize 64x graphiken/cwsvLogoWappen.x250.png build/graphiken/cwsvLogoWappen.64w.png
|
cwsvLogoWappen: $(addprefix build/graphiken/cwsvLogoWappen/cwsvLogoWappen., $(addsuffix w.png, $(RES_LIST)))
|
||||||
pngnq -Qf -s9 -e.png -f build/graphiken/cwsvLogoWappen.64w.png
|
|
||||||
convert -resize 128x graphiken/cwsvJudoLogoWappen.x256.png build/graphiken/cwsvJudoLogoWappen.128w.png
|
build/graphiken/cwsvJudoLogoWappen/cwsvJudoLogoWappen.png: graphiken/cwsvJudoLogoWappen.xcf
|
||||||
pngnq -Qf -s9 -e.png -f build/graphiken/cwsvJudoLogoWappen.128w.png
|
build/graphiken/cwsvLogoWappen/cwsvLogoWappen.png: graphiken/cwsvLogoWappen.xcf
|
||||||
convert -resize 64x graphiken/cwsvJudoLogoWappen.x256.png build/graphiken/cwsvJudoLogoWappen.64w.png
|
mkdir -p $(dir $@)
|
||||||
pngnq -Qf -s9 -e.png -f build/graphiken/cwsvJudoLogoWappen.64w.png
|
convert -layers flatten -background transparent $< $@
|
||||||
|
|
||||||
|
build/graphiken/cwsvJudoLogoWappen/cwsvJudoLogoWappen.%w.png: build/graphiken/cwsvJudoLogoWappen/cwsvJudoLogoWappen.png
|
||||||
|
build/graphiken/cwsvLogoWappen/cwsvLogoWappen.%w.png: build/graphiken/cwsvLogoWappen/cwsvLogoWappen.png
|
||||||
|
mkdir -p $(dir $@)
|
||||||
|
convert -layers flatten -background transparent -resize $*x $< $@
|
||||||
|
# zopfli/zopflipng --iterations=500 --filters=01234mepb --lossy_8bit --lossy_transparent $@ $@
|
||||||
|
zopflipng -my $@ $@
|
||||||
|
|
||||||
|
echo:
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: Homepage der Judoka des Chemnitzer Freizeit- und Wohngebietssportvereines e. V.
|
title: "Judo im Chemnitzer WSV - Kinder- und Erwachsenentraining"
|
||||||
author: marko
|
description: "Informationen zu Trainingszeiten, Wettkämpfen und anderen Veranstaltungen der Abteilung Judo des Chemnitzer Freizeit- und Wohngebietssportvereines e. V."
|
||||||
|
author: "marko"
|
||||||
keywords:
|
keywords:
|
||||||
- "Judo"
|
- "Judo"
|
||||||
- "Chemnitzer Freizeit- und Wohngebietssportverein"
|
- "Chemnitzer Freizeit- und Wohngebietssportverein"
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ $if(keywords)$
|
|||||||
$endif$
|
$endif$
|
||||||
$if(description)$
|
$if(description)$
|
||||||
<meta name="description" content="$description$" />
|
<meta name="description" content="$description$" />
|
||||||
|
$endif$
|
||||||
|
$if(ampVersionLink)$
|
||||||
|
<link rel="amphtml" href="$ampVersionLink$" />
|
||||||
$endif$
|
$endif$
|
||||||
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
|
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
|
||||||
<style type="text/css">code{white-space: pre;}</style>
|
<style type="text/css">code{white-space: pre;}</style>
|
||||||
|
|||||||
@@ -129,3 +129,24 @@ $messages=array();
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getGalleryLink( $aGallerId ){
|
||||||
|
|
||||||
|
if( is_positive_integer($aGalleryId) ){
|
||||||
|
try{
|
||||||
|
$db_connection = new PDO('mysql:host='.$db_server.';dbname='.$db_name, $db_user, $db_password);
|
||||||
|
$query="SELECT url FROM wkGalerien WHERE id = \"".$_aGalleryId."\" ORDER BY Datum ASC LIMIT 1;";
|
||||||
|
$ergebnis = $db_connection->query( $query );
|
||||||
|
$galleryLink = $ergebnis->fetchAll();
|
||||||
|
|
||||||
|
return $galleryLink[0]['url'];
|
||||||
|
$db_connection = NULL;
|
||||||
|
}
|
||||||
|
catch(PDOException $db_error){
|
||||||
|
print "Error!: " . $db_error->getMessage() . "<br/>";
|
||||||
|
// echoGalTable();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user