Skip to content

Commit

Permalink
sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjaejunlee95 committed Mar 5, 2024
1 parent 59e92f0 commit 6b81ab2
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 5 deletions.
5 changes: 4 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ source "https://rubygems.org"

gemspec
gem 'jemoji'

gem 'tzinfo'
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
gem 'wdm', '>= 0.1.0'
gem 'eventmachine', '1.2.7', git: 'https://github.com/eventmachine/eventmachine.git', tag: 'v1.2.7'
9 changes: 5 additions & 4 deletions beautiful-jekyll-theme.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
Gem::Specification.new do |spec|
spec.name = "beautiful-jekyll-theme"
spec.version = "6.0.1"
spec.authors = ["Dean Attali"]
spec.email = ["daattali@gmail.com"]
spec.authors = ["Jae-Jun Lee"]
spec.email = ["johnjaejunlee95@unist.ac.kr"]

spec.summary = "Beautiful Jekyll is a ready-to-use Jekyll theme to help you create an awesome website quickly. Perfect for personal blogs or simple project websites, with a focus on responsive and clean design."
spec.homepage = "https://beautifuljekyll.com"
spec.homepage = "https://johnjaejunlee95.github.io"
spec.license = "MIT"

spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|_layouts|_includes|LICENSE|README|feed|404|_data|tags|staticman)}i) }
Expand All @@ -23,7 +23,8 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency "kramdown-parser-gfm", "~> 1.1"
spec.add_runtime_dependency "kramdown", "~> 2.3.2"
spec.add_runtime_dependency "webrick", "~> 1.8"

spec.add_runtime_dependency "jekyll-livereload"

spec.add_development_dependency "bundler", ">= 1.16"
spec.add_development_dependency "rake", "~> 12.0"
end
8 changes: 8 additions & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
User-agent: Googlebot
User-agent: NaverBot
Allow: /

User-agent: BadBot
Disallow: /

Sitemap: https://johnjaejunlee95.github.io/sitemap.xml
29 changes: 29 additions & 0 deletions sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for post in site.posts %}
<url>
<loc>{{ site.url }}{{ post.url }}</loc>
{% if post.lastmod == null %}
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ post.lastmod | date_to_xmlschema }}</lastmod>
{% endif %}

{% if post.sitemap.changefreq == null %}
<changefreq>weekly</changefreq>
{% else %}
<changefreq>{{ post.sitemap.changefreq }}</changefreq>
{% endif %}

{% if post.sitemap.priority == null %}
<priority>0.5</priority>
{% else %}
<priority>{{ post.sitemap.priority }}</priority>
{% endif %}

</url>
{% endfor %}
</urlset>

0 comments on commit 6b81ab2

Please sign in to comment.