diff --git a/_config.yml b/_config.yml --- a/_config.yml +++ b/_config.yml @@ -12,12 +12,18 @@ - jekyll-feed - jekyll-git - jekyll-seo-tag + - jekyll/tagging feed: icon: /assets/images/favicon.png redcarpet: extensions: ["with_toc_data"] + +tag_page_layout: tag_page +tag_page_dir: tag +tag_feed_layout: tag_feed +tag_feed_dir: tag collections: projects: diff --git a/jekyll-theme-doctored.gemspec b/jekyll-theme-doctored.gemspec --- a/jekyll-theme-doctored.gemspec +++ b/jekyll-theme-doctored.gemspec @@ -3,7 +3,7 @@ Gem::Specification.new do |spec| spec.name = "jekyll-theme-doctored" - spec.version = "0.2.1" + spec.version = "0.3.0" spec.authors = ["matmanna"] spec.email = [""] spec.license = "MIT" @@ -15,6 +15,7 @@ spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r!^(assets|_data|_layouts|_includes|LICENSE|404\.md|package\.json|tailwind\.config\.js)!) } spec.add_runtime_dependency "jekyll", "~> 4" + spec.add_runtime_dependency "jekyll-tagging" spec.add_dependency "webrick", "~> 1.7" spec.add_dependency "kramdown-parser-gfm" diff --git a/_includes/toc-card.html b/_includes/toc-card.html --- a/_includes/toc-card.html +++ b/_includes/toc-card.html @@ -70,7 +70,7 @@

Tags

{% for tag in page.tags %} - +
{{ tag }} diff --git a/_layouts/tag_feed.xml b/_layouts/tag_feed.xml new file mode 100644 --- /dev/null +++ b/_layouts/tag_feed.xml @@ -0,0 +1,23 @@ +--- +layout: nil +--- + + + Your Title - {{ page.tag }} + + + {{ site.time | date_to_xmlschema }} + http://example.com/tag/{{ page.tag }}.html + + Author Here + + {% for post in page.posts %} + + {{ post.title }} + + {{ post.date | date_to_xmlschema }} + http://example.com{{ post.id }} + {{ post.content | xml_escape }} + + {% endfor %} + \ No newline at end of file diff --git a/_layouts/tag_page.html b/_layouts/tag_page.html new file mode 100644 --- /dev/null +++ b/_layouts/tag_page.html @@ -0,0 +1,13 @@ +--- +layout: default +--- +

{{ page.tag }}

+
+ +
+ {{ site | tag_cloud }} +
\ No newline at end of file diff --git a/_pages/about.md b/_pages/about.md --- a/_pages/about.md +++ b/_pages/about.md @@ -41,7 +41,7 @@ - [x] git metadata (footer ref) - [x] anchor/external link icons - [x] page TOC section progressrings - - [ ] post tags + - [x] post tags - [ ] project posts - [ ] i18n ui - [ ] post series @@ -67,7 +67,8 @@ - #### meta - [x] [sitemap]({{ '/sitemap.xml' | relative_url }}) - [x] global RSS [feed]({{ '/feed.xml' | relative_url }}) - - [ ] tag rss feeds + - [x] add seo tags + - [x] tag rss feeds - [ ] robots.txt - #### docs - [ ] demo/trailer video diff --git a/_drafts/_pages/about.md b/_drafts/_pages/about.md --- a/_drafts/_pages/about.md +++ b/_drafts/_pages/about.md @@ -39,7 +39,7 @@ - [x] git metadata (footer ref) - [x] anchor/external link icons - [x] page TOC section progressrings - - [ ] post tags + - [x] post tags - [ ] project posts - [ ] i18n ui - [ ] post series @@ -66,7 +66,7 @@ - [x] [sitemap]({{ '/sitemap.xml' | relative_url }}) - [x] global RSS [feed]({{ '/feed.xml' | relative_url }}) - [x] add seo tags - - [ ] tag rss feeds + - [x] tag rss feeds - [ ] robots.txt - #### docs - [ ] demo/trailer video