Skip to content

Commit

Permalink
add generator to this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Sild committed Oct 21, 2024
1 parent 5d5dc7d commit f35948c
Show file tree
Hide file tree
Showing 16 changed files with 188 additions and 73 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.hugo_build.lock
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
```
# check changes
hugo server -D
# deploy changes
hugo -D && git commit -am "up content" && git push
```
5 changes: 5 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++
14 changes: 14 additions & 0 deletions content/posts/crypto_introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
+++
title = 'Crypto introduction'
date = 2024-03-23T16:15:01+01:00
draft = true
tags = ['crypto']
+++

Such a thing happened and I started a new job in the crypto domain knowing nothing about it.

Here are a few links which make me more aware of what's happening:

* [DEX](https://www.coinbase.com/en-gb/learn/crypto-basics/what-is-a-dex) - what is it and what are its advantages compared to centralized exchanges
* [The Open Network Architecture](https://blog.ton.org/the-architecture-behind-the-open-network) - an overview of the TON network architecture and ideas
* [How to build your own blockchain](https://bigishdata.com/2017/10/17/write-your-own-blockchain-part-1-creating-storing-syncing-displaying-mining-and-proving-work/) - a step-by-step guide for building a simple blockchain. Look into [my repo](https://github.com/sild/educhain) to see what happened!
19 changes: 19 additions & 0 deletions content/posts/how_to_build_it.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
+++
title = 'How to build such blog'
date = 2023-12-06T19:32:50+01:00
draft = false
tags = ['articles']
+++

[Here](https://habr.com/en/articles/778900/) is a short guide on how you can build a page like this yourself using [Hugo](https://gohugo.io/).

Few snippets for quick onboarding:

create new post: `hugo new post/my_new_post.md`

edit that post: `vim /content/post/my_new_post.md`

run local test server to check your changes: `hugo server -D`



32 changes: 32 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/sh

set -e

printf "\033[0;32mDeploying to Github!..\033[0m\n"

msg="rebuilding site $(date)"
if [ -n "$*" ]; then
msg="$*"
fi

echo ""
echo ""
echo "Commit changes to $(pwd)"
hugo -D

cd public

echo ""
echo ""
echo "Commit changes to $(pwd)"
git add .
git commit -m "$msg"
git push origin

cd ..
echo ""
echo ""
echo "Commit changes to $(pwd)"
git add .
git commit -m "$msg"
git push origin
48 changes: 48 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
baseURL = 'https://sild.github.io/'
languageCode = 'en-us'
title = "Sild's blog"
theme = 'hugo-theme-hello-friend-ng'
paginate = 10

[params]
dateform = "Jan 2, 2006"
dateformShort = "Jan 2"
dateformNum = "2006-01-02"
dateformNumTime = "2006-01-02 15:04"

homeSubtitle = "Job and Education"

# Set disableReadOtherPosts to true in order to hide the links to other posts.
disableReadOtherPosts = false

# Enable sharing buttons, if you like
enableSharingButtons = true

# Show a global language switcher in the navigation bar
#enableGlobalLanguageMenu = true

# Metadata mostly used in document's head
description = "Job and Education"
keywords = "blog,sild"
images = [""]

[taxonomies]
category = "categories"
tag = "tags"

[languages]
[languages.en]
copyright = '<a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
[languages.en.params.logo]
logoText = "Hi"
logoHomeLink = "/"

[[menu.main]]
identifier = "posts"
name = "Posts"
url = "/posts"

[[menu.main]]
identifier = "tags"
name = "Tags"
url = "/tags"
2 changes: 1 addition & 1 deletion public/categories/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>Categories on Sild&#39;s blog</title>
<link>https://sild.github.io/categories/</link>
<description>Recent content in Categories on Sild&#39;s blog</description>
<generator>Hugo -- gohugo.io</generator>
<generator>Hugo</generator>
<language>en</language>
<copyright>&lt;a href=&#34;https://creativecommons.org/licenses/by-nc/4.0/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;CC BY-NC 4.0&lt;/a&gt;</copyright>
<atom:link href="https://sild.github.io/categories/index.xml" rel="self" type="application/rss+xml" />
Expand Down
6 changes: 3 additions & 3 deletions public/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>Sild&#39;s blog</title>
<link>https://sild.github.io/</link>
<description>Recent content on Sild&#39;s blog</description>
<generator>Hugo -- gohugo.io</generator>
<generator>Hugo</generator>
<language>en</language>
<copyright>&lt;a href=&#34;https://creativecommons.org/licenses/by-nc/4.0/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;CC BY-NC 4.0&lt;/a&gt;</copyright>
<lastBuildDate>Sat, 23 Mar 2024 16:15:01 +0100</lastBuildDate>
Expand All @@ -14,14 +14,14 @@
<link>https://sild.github.io/posts/crypto_introduction/</link>
<pubDate>Sat, 23 Mar 2024 16:15:01 +0100</pubDate>
<guid>https://sild.github.io/posts/crypto_introduction/</guid>
<description>Such a thing happened and I started a new job in the crypto domain knowing nothing about it.&#xA;Here are a few links which make me more aware of what&amp;rsquo;s happening:&#xA;DEX - what is it and what are its advantages compared to centralized exchanges The Open Network Architecture - an overview of the TON network architecture and ideas How to build your own blockchain - a step-by-step guide for building a simple blockchain.</description>
<description>&lt;p&gt;Such a thing happened and I started a new job in the crypto domain knowing nothing about it.&lt;/p&gt;&#xA;&lt;p&gt;Here are a few links which make me more aware of what&amp;rsquo;s happening:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.coinbase.com/en-gb/learn/crypto-basics/what-is-a-dex&#34;&gt;DEX&lt;/a&gt; - what is it and what are its advantages compared to centralized exchanges&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.ton.org/the-architecture-behind-the-open-network&#34;&gt;The Open Network Architecture&lt;/a&gt; - an overview of the TON network architecture and ideas&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://bigishdata.com/2017/10/17/write-your-own-blockchain-part-1-creating-storing-syncing-displaying-mining-and-proving-work/&#34;&gt;How to build your own blockchain&lt;/a&gt; - a step-by-step guide for building a simple blockchain. Look into &lt;a href=&#34;https://github.com/sild/educhain&#34;&gt;my repo&lt;/a&gt; to see what happened!&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
</item>
<item>
<title>How to build such blog</title>
<link>https://sild.github.io/posts/how_to_build_it/</link>
<pubDate>Wed, 06 Dec 2023 19:32:50 +0100</pubDate>
<guid>https://sild.github.io/posts/how_to_build_it/</guid>
<description>Here is a short guide on how you can build a page like this yourself using Hugo.&#xA;Few snippets for quick onboarding:&#xA;create new post: hugo new post/my_new_post.md&#xA;edit that post: vim /content/post/my_new_post.md&#xA;run local test server to check your changes: hugo server -D</description>
<description>&lt;p&gt;&lt;a href=&#34;https://habr.com/en/articles/778900/&#34;&gt;Here&lt;/a&gt; is a short guide on how you can build a page like this yourself using &lt;a href=&#34;https://gohugo.io/&#34;&gt;Hugo&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Few snippets for quick onboarding:&lt;/p&gt;&#xA;&lt;p&gt;create new post: &lt;code&gt;hugo new post/my_new_post.md&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;edit that post: &lt;code&gt;vim /content/post/my_new_post.md&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;run local test server to check your changes: &lt;code&gt;hugo server -D&lt;/code&gt;&lt;/p&gt;</description>
</item>
</channel>
</rss>
74 changes: 25 additions & 49 deletions public/posts/index.xml
Original file line number Diff line number Diff line change
@@ -1,51 +1,27 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Posts on Sild&#39;s blog</title>
<link>https://sild.github.io/posts/</link>
<description>Recent content in Posts on Sild&#39;s blog</description>
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<copyright>&lt;a href=&#34;https://creativecommons.org/licenses/by-nc/4.0/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;CC BY-NC 4.0&lt;/a&gt;</copyright>
<lastBuildDate>Sat, 23 Mar 2024 16:15:01 +0100</lastBuildDate>
<atom:link href="https://sild.github.io/posts/index.xml" rel="self" type="application/rss+xml" />

<item>
<title>Crypto introduction</title>
<link>https://sild.github.io/posts/crypto_introduction/</link>
<pubDate>Sat, 23 Mar 2024 16:15:01 +0100</pubDate>

<guid>https://sild.github.io/posts/crypto_introduction/</guid>
<description>Such a thing happened and I started a new job in the crypto domain knowing nothing about it.
Here are a few links which make me more aware of what&amp;rsquo;s happening:
DEX - what is it and what are its advantages compared to centralized exchanges The Open Network Architecture - an overview of the TON network architecture and ideas How to build your own blockchain - a step-by-step guide for building a simple blockchain.</description>
<content type="html"><![CDATA[<p>Such a thing happened and I started a new job in the crypto domain knowing nothing about it.</p>
<p>Here are a few links which make me more aware of what&rsquo;s happening:</p>
<ul>
<li><a href="https://www.coinbase.com/en-gb/learn/crypto-basics/what-is-a-dex">DEX</a> - what is it and what are its advantages compared to centralized exchanges</li>
<li><a href="https://blog.ton.org/the-architecture-behind-the-open-network">The Open Network Architecture</a> - an overview of the TON network architecture and ideas</li>
<li><a href="https://bigishdata.com/2017/10/17/write-your-own-blockchain-part-1-creating-storing-syncing-displaying-mining-and-proving-work/">How to build your own blockchain</a> - a step-by-step guide for building a simple blockchain. Look into <a href="https://github.com/sild/educhain">my repo</a> to see what happened!</li>
</ul>
]]></content>
</item>

<item>
<title>How to build such blog</title>
<link>https://sild.github.io/posts/how_to_build_it/</link>
<pubDate>Wed, 06 Dec 2023 19:32:50 +0100</pubDate>

<guid>https://sild.github.io/posts/how_to_build_it/</guid>
<description>Here is a short guide on how you can build a page like this yourself using Hugo.
Few snippets for quick onboarding:
create new post: hugo new post/my_new_post.md
edit that post: vim /content/post/my_new_post.md
run local test server to check your changes: hugo server -D</description>
<content type="html"><![CDATA[<p><a href="https://habr.com/en/articles/778900/">Here</a> is a short guide on how you can build a page like this yourself using <a href="https://gohugo.io/">Hugo</a>.</p>
<p>Few snippets for quick onboarding:</p>
<p>create new post: <code>hugo new post/my_new_post.md</code></p>
<p>edit that post: <code>vim /content/post/my_new_post.md</code></p>
<p>run local test server to check your changes: <code>hugo server -D</code></p>
]]></content>
</item>

</channel>
<channel>
<title>Posts on Sild&#39;s blog</title>
<link>https://sild.github.io/posts/</link>
<description>Recent content in Posts on Sild&#39;s blog</description>
<generator>Hugo</generator>
<language>en</language>
<copyright>&lt;a href=&#34;https://creativecommons.org/licenses/by-nc/4.0/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;CC BY-NC 4.0&lt;/a&gt;</copyright>
<lastBuildDate>Sat, 23 Mar 2024 16:15:01 +0100</lastBuildDate>
<atom:link href="https://sild.github.io/posts/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Crypto introduction</title>
<link>https://sild.github.io/posts/crypto_introduction/</link>
<pubDate>Sat, 23 Mar 2024 16:15:01 +0100</pubDate>
<guid>https://sild.github.io/posts/crypto_introduction/</guid>
<description>&lt;p&gt;Such a thing happened and I started a new job in the crypto domain knowing nothing about it.&lt;/p&gt;&#xA;&lt;p&gt;Here are a few links which make me more aware of what&amp;rsquo;s happening:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.coinbase.com/en-gb/learn/crypto-basics/what-is-a-dex&#34;&gt;DEX&lt;/a&gt; - what is it and what are its advantages compared to centralized exchanges&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.ton.org/the-architecture-behind-the-open-network&#34;&gt;The Open Network Architecture&lt;/a&gt; - an overview of the TON network architecture and ideas&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://bigishdata.com/2017/10/17/write-your-own-blockchain-part-1-creating-storing-syncing-displaying-mining-and-proving-work/&#34;&gt;How to build your own blockchain&lt;/a&gt; - a step-by-step guide for building a simple blockchain. Look into &lt;a href=&#34;https://github.com/sild/educhain&#34;&gt;my repo&lt;/a&gt; to see what happened!&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
</item>
<item>
<title>How to build such blog</title>
<link>https://sild.github.io/posts/how_to_build_it/</link>
<pubDate>Wed, 06 Dec 2023 19:32:50 +0100</pubDate>
<guid>https://sild.github.io/posts/how_to_build_it/</guid>
<description>&lt;p&gt;&lt;a href=&#34;https://habr.com/en/articles/778900/&#34;&gt;Here&lt;/a&gt; is a short guide on how you can build a page like this yourself using &lt;a href=&#34;https://gohugo.io/&#34;&gt;Hugo&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Few snippets for quick onboarding:&lt;/p&gt;&#xA;&lt;p&gt;create new post: &lt;code&gt;hugo new post/my_new_post.md&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;edit that post: &lt;code&gt;vim /content/post/my_new_post.md&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;run local test server to check your changes: &lt;code&gt;hugo server -D&lt;/code&gt;&lt;/p&gt;</description>
</item>
</channel>
</rss>
5 changes: 1 addition & 4 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,11 @@
<loc>https://sild.github.io/tags/</loc>
<lastmod>2024-03-23T16:15:01+01:00</lastmod>
</url><url>
<loc>https://sild.github.io/tags/habr/</loc>
<loc>https://sild.github.io/tags/articles/</loc>
<lastmod>2023-12-06T19:32:50+01:00</lastmod>
</url><url>
<loc>https://sild.github.io/posts/how_to_build_it/</loc>
<lastmod>2023-12-06T19:32:50+01:00</lastmod>
</url><url>
<loc>https://sild.github.io/tags/how-to/</loc>
<lastmod>2023-12-06T19:32:50+01:00</lastmod>
</url><url>
<loc>https://sild.github.io/categories/</loc>
</url>
Expand Down
20 changes: 20 additions & 0 deletions public/tags/articles/index.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Articles on Sild&#39;s blog</title>
<link>https://sild.github.io/tags/articles/</link>
<description>Recent content in Articles on Sild&#39;s blog</description>
<generator>Hugo</generator>
<language>en</language>
<copyright>&lt;a href=&#34;https://creativecommons.org/licenses/by-nc/4.0/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;CC BY-NC 4.0&lt;/a&gt;</copyright>
<lastBuildDate>Wed, 06 Dec 2023 19:32:50 +0100</lastBuildDate>
<atom:link href="https://sild.github.io/tags/articles/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>How to build such blog</title>
<link>https://sild.github.io/posts/how_to_build_it/</link>
<pubDate>Wed, 06 Dec 2023 19:32:50 +0100</pubDate>
<guid>https://sild.github.io/posts/how_to_build_it/</guid>
<description>&lt;p&gt;&lt;a href=&#34;https://habr.com/en/articles/778900/&#34;&gt;Here&lt;/a&gt; is a short guide on how you can build a page like this yourself using &lt;a href=&#34;https://gohugo.io/&#34;&gt;Hugo&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Few snippets for quick onboarding:&lt;/p&gt;&#xA;&lt;p&gt;create new post: &lt;code&gt;hugo new post/my_new_post.md&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;edit that post: &lt;code&gt;vim /content/post/my_new_post.md&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;run local test server to check your changes: &lt;code&gt;hugo server -D&lt;/code&gt;&lt;/p&gt;</description>
</item>
</channel>
</rss>
8 changes: 4 additions & 4 deletions public/tags/crypto/index.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>crypto on Sild&#39;s blog</title>
<title>Crypto on Sild&#39;s blog</title>
<link>https://sild.github.io/tags/crypto/</link>
<description>Recent content in crypto on Sild&#39;s blog</description>
<generator>Hugo -- gohugo.io</generator>
<description>Recent content in Crypto on Sild&#39;s blog</description>
<generator>Hugo</generator>
<language>en</language>
<copyright>&lt;a href=&#34;https://creativecommons.org/licenses/by-nc/4.0/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;CC BY-NC 4.0&lt;/a&gt;</copyright>
<lastBuildDate>Sat, 23 Mar 2024 16:15:01 +0100</lastBuildDate>
Expand All @@ -14,7 +14,7 @@
<link>https://sild.github.io/posts/crypto_introduction/</link>
<pubDate>Sat, 23 Mar 2024 16:15:01 +0100</pubDate>
<guid>https://sild.github.io/posts/crypto_introduction/</guid>
<description>Such a thing happened and I started a new job in the crypto domain knowing nothing about it.&#xA;Here are a few links which make me more aware of what&amp;rsquo;s happening:&#xA;DEX - what is it and what are its advantages compared to centralized exchanges The Open Network Architecture - an overview of the TON network architecture and ideas How to build your own blockchain - a step-by-step guide for building a simple blockchain.</description>
<description>&lt;p&gt;Such a thing happened and I started a new job in the crypto domain knowing nothing about it.&lt;/p&gt;&#xA;&lt;p&gt;Here are a few links which make me more aware of what&amp;rsquo;s happening:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.coinbase.com/en-gb/learn/crypto-basics/what-is-a-dex&#34;&gt;DEX&lt;/a&gt; - what is it and what are its advantages compared to centralized exchanges&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.ton.org/the-architecture-behind-the-open-network&#34;&gt;The Open Network Architecture&lt;/a&gt; - an overview of the TON network architecture and ideas&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://bigishdata.com/2017/10/17/write-your-own-blockchain-part-1-creating-storing-syncing-displaying-mining-and-proving-work/&#34;&gt;How to build your own blockchain&lt;/a&gt; - a step-by-step guide for building a simple blockchain. Look into &lt;a href=&#34;https://github.com/sild/educhain&#34;&gt;my repo&lt;/a&gt; to see what happened!&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
</item>
</channel>
</rss>
17 changes: 5 additions & 12 deletions public/tags/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,23 @@
<title>Tags on Sild&#39;s blog</title>
<link>https://sild.github.io/tags/</link>
<description>Recent content in Tags on Sild&#39;s blog</description>
<generator>Hugo -- gohugo.io</generator>
<generator>Hugo</generator>
<language>en</language>
<copyright>&lt;a href=&#34;https://creativecommons.org/licenses/by-nc/4.0/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;CC BY-NC 4.0&lt;/a&gt;</copyright>
<lastBuildDate>Sat, 23 Mar 2024 16:15:01 +0100</lastBuildDate>
<atom:link href="https://sild.github.io/tags/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>crypto</title>
<title>Crypto</title>
<link>https://sild.github.io/tags/crypto/</link>
<pubDate>Sat, 23 Mar 2024 16:15:01 +0100</pubDate>
<guid>https://sild.github.io/tags/crypto/</guid>
<description></description>
</item>
<item>
<title>habr</title>
<link>https://sild.github.io/tags/habr/</link>
<title>Articles</title>
<link>https://sild.github.io/tags/articles/</link>
<pubDate>Wed, 06 Dec 2023 19:32:50 +0100</pubDate>
<guid>https://sild.github.io/tags/habr/</guid>
<description></description>
</item>
<item>
<title>how-to</title>
<link>https://sild.github.io/tags/how-to/</link>
<pubDate>Wed, 06 Dec 2023 19:32:50 +0100</pubDate>
<guid>https://sild.github.io/tags/how-to/</guid>
<guid>https://sild.github.io/tags/articles/</guid>
<description></description>
</item>
</channel>
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit f35948c

Please sign in to comment.