changing variables

This commit is contained in:
rick 2021-08-03 13:37:06 +05:30
parent 858ca9dfb4
commit 21b39a264f
9 changed files with 43 additions and 42 deletions

View File

@ -1,25 +0,0 @@
<html>
<head>
<title>Blog</title>
<meta charset="utf-8"/>
<link rel='stylesheet' type='text/css' href='style.css'>
</head>
<body>
<h1>Blog</h1>
<p>The blog content will appear below here.</p>
<!-- LB -->
<div class="entry">
<h2 id='this-is-what-a-post-looks-like'>This is what a post looks like</h2><small>[<a aria-hidden="true" href="2018.html#this-is-what-a-post-looks-like">link</a>&mdash;<a href="blog/this-is-what-a-post-looks-like.html">standalone</a>]</small>
<p>This is autogenerated by the blog. As you can see, an equivalent RSS feed entry and standalone blog post is generated after you finalize the post.</p>
<small>Wed, 16 May 2018 14:38:38 -0700</small>
</div>
</body>
</html>

19
2021.html Normal file
View File

@ -0,0 +1,19 @@
<html>
<head>
<title>Blog</title>
<meta charset="utf-8"/>
<link rel='stylesheet' type='text/css' href='style.css'>
</head>
<body>
<h1>Blog</h1>
<p>r1k's blog<p>
<!-- LB -->
</body>
</html>

View File

@ -1,3 +0,0 @@
github: lukesmithxyz
custom: ["https://lukesmith.xyz/donate", "https://paypal.me/lukemsmith", "https://lukesmith.xyz/crypto"]
patreon: lukesmith

View File

@ -1 +0,0 @@
AddDescription "This is what a post looks like" this-is-what-a-post-looks-like.html

View File

@ -1,3 +0,0 @@
<h2 id='this-is-what-a-post-looks-like'>This is what a post looks like</h2><small>[<a aria-hidden="true" href="2018.html#this-is-what-a-post-looks-like">link</a>&mdash;<a href="blog/this-is-what-a-post-looks-like.html">standalone</a>]</small>
<p>This is autogenerated by the blog. As you can see, an equivalent RSS feed entry and standalone blog post is generated after you finalize the post.</p>

View File

@ -6,12 +6,13 @@
</head>
<body>
<h1>Blog Index</h1>
<h1>r1k's Blog's Index</h1>
<p>The blog list will appear below. If you want to add year or month headings, you are expected to do it yourself. You could just as easily have this on your manin index.html. Remember to just change the blog index variable in the <code>lb</code> script to what you index file is.</p>
<p>This is a list of all my blog entries.</p>
<ul>
<!-- LB -->
<li>2021 Aug 03 &ndash; <a href="blog/test-post.html">test post</a></li>
</ul>
</body>

6
lb
View File

@ -1,13 +1,13 @@
#!/bin/bash
name="Luke Smith"
name="Rick"
webdir="$PWD"
website="https://lukesmith.xyz/" # Keep a trailing slash.
website="https://r1k.tilde.institute/" # Keep a trailing slash.
css="../style.css"
blogfile="$(date +%Y).html"
indexfile="blogindex.html"
rssfile="rss.xml"
archivefile="$webdir/blog/.htaccess"
[ -z "$EDITOR" ] && EDITOR="vim"
[ -z "$EDITOR" ] && EDITOR="nvim"
[ ! -d "$webdir/blog/.drafts" ] &&
read -erp "Initialize blog in $webdir?" ask &&

21
rss.xml
View File

@ -3,14 +3,27 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Your RSS Feed Title</title>
<description>A brief description of your RSS feed.</description>
<title>r1k's RSS feed</title>
<description>RSS feed of r1k's ~institute website</description>
<language>en-us</language>
<link>http://yourwebsite.com/rss.xml</link>
<atom:link href="http://yourwebsite.com/rss.xml" rel="self" type="application/rss+xml" />
<link>https://r1k.tilde.institute/rss.xml</link>
<atom:link href="https://r1k.tilde.institute/rss.xml" rel="self" type="application/rss+xml" />
<!-- LB -->
<item>
<title>test post</title>
<guid>https://r1k.tilde.institute/2021.html#test-post</guid>
<pubDate>Tue, 03 Aug 2021 13:19:45 +0530</pubDate>
<description><![CDATA[
cool
lol
Edit: hhahahaa
]]></description>
</item>
</channel>
</rss>

2
sup
View File

@ -5,7 +5,7 @@
exit 1
# You will want to change these variables to your needs.
website="https://lukesmith.xyz"
website="https://r1k.tilde.institute"
rssfile="rss.xml"
# In order to cleanly use sed on a multi-line file, we have to use `tr` to