mirror of
https://gitlab.com/octtspacc/sitoctt
synced 2025-06-05 22:09:20 +02:00
Agg. interni; 1^a revisione nuovo articolo: 🥴 Brutta interfaccia? File tutti distrutti!
This commit is contained in:
@@ -20,6 +20,19 @@ Exp.Range = (Start, Stop, Step) => {
|
||||
);
|
||||
};
|
||||
|
||||
Exp.RawDataCssRule = RawData => {
|
||||
//RawData = RawData.map(x => {
|
||||
// return({animal: x});
|
||||
//});
|
||||
//var JsonData = {};
|
||||
//RawData.forEach(function(Val) { // sad, variable name not transcribed with function pass
|
||||
// var [Name] = Object.keys({Val});
|
||||
// Object.assign(JsonData, JSON.parse(`{"${Name}": "${Val}"}`));
|
||||
//});
|
||||
// TODO: Handle apostrophes?
|
||||
return `#RawDataCssInject{background:url('${JSON.stringify(RawData)}');}`;//'\n/*' + JSON.stringify(JsonData) + '*/';
|
||||
};
|
||||
|
||||
Exp.Unpack = (Left, Middle, Right) => {
|
||||
var Str = '';
|
||||
TryStringToList(Middle).forEach(function(Target) {
|
||||
|
@@ -242,6 +242,7 @@ const HandlePost = (PostSrc, Output) => {
|
||||
if (Output == 'file') {
|
||||
TryMkdirSync(PathDir);
|
||||
fs.writeFileSync(FinalFilePath, `\
|
||||
<!-- < Autogenerated by ListedDownsync.js. Do not edit (unless also set "% Downsync = False") - it would be overwritten. > -->
|
||||
${MakeMetaStr(Post)}
|
||||
<h1>${Post.Meta.HTMLTitle ? Post.Meta.HTMLTitle : Post.Meta.Title}</h1>
|
||||
|
||||
|
Reference in New Issue
Block a user