added ls prints to some pages and index pages for subfolders

This commit is contained in:
Aviv "RustyStriker" Romem 2022-06-11 15:28:45 +03:00
parent c108f98432
commit f102c9f48c
5 changed files with 47 additions and 3 deletions

20
bscripts/index.html Normal file
View File

@ -0,0 +1,20 @@
<INJECT>cat $HOME/template/header.html | sed "s/__PAGE TITLE__/Build Scripts/"</INJECT>
<h1>Build Scripts</h1>
<div>
<p>
Folder keeping build script helpers(for running using my injector).
<br>
For example: a python script
(yes i know i hate python but its v quick for simple stuff)
to transform input from <code>ls</code> into a list of &lt;a&gt; tags(with space between)
</p>
<p>
here is the list of files here:
<br>
<INJECT>cd $CURRENT && ls *.* | python3 $HOME/bscripts/ls_to_a.py</INJECT>
</p>
</div>
<INJECT>cat $HOME/template/footer.html</INJECT>

View File

@ -5,5 +5,5 @@ while True:
try:
a = input()
except:
break;
print('<a href=\'' + a + '\'>' + a + '</a>')
break
print('<a href=\'' + a + '\'>' + a.replace('.html', '') + '</a><t>')

View File

@ -1,5 +1,11 @@
<INJECT>cat $HOME/template/header.html | sed "s/__PAGE TITLE__/Rusty's website/"</INJECT>
<p>
Folders: <INJECT>cd $CURRENT && ls */ -d | sed 's/\///' | python3 $HOME/bscripts/ls_to_a.py</INJECT>
<br>
Files: <INJECT>cd $CURRENT && ls *.html | python3 $HOME/bscripts/ls_to_a.py</INJECT>
</p>
<h1>
Welcome, to my WEBSITE!
</h1>

View File

@ -32,7 +32,7 @@
<title>__PAGE TITLE__</title>
<!--Style stuff -->
<link rel="stylesheet" type="text/css" href="default_style.css" media="all">
<link rel="stylesheet" type="text/css" href="http://rustystriker.dev/default_style.css" media="all">
</head>
<body>
<header>

18
template/index.html Normal file
View File

@ -0,0 +1,18 @@
<INJECT>cat $HOME/template/header.html | sed "s/__PAGE TITLE__/Template/"</INJECT>
<h1>Template</h1>
<div>
<p>
This is where I keep templates(or part of templates) for the website,
like the <a href = "header.html">header</a> and <a href = "footer.html">footer</a>
of the pages(also contains the start and end of the pages!, tho I might change that)
</p>
<p>
here is the list of templates in here:
<br>
<INJECT>cd $CURRENT && ls *.html | python3 $HOME/bscripts/ls_to_a.py</INJECT>
</p>
</div>
<INJECT>cat $HOME/template/footer.html</INJECT>