mirror of https://gitlab.com/curben/blog
fix: generate microblog-specific feed & sitemap
This commit is contained in:
parent
132f0eb30b
commit
ea18a4e26f
|
@ -62,8 +62,8 @@ deploy:
|
||||||
- chmod 600 ~/.ssh/config
|
- chmod 600 ~/.ssh/config
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rsync -azvh --delete public/microblog/ host-1:/var/www/microblog/
|
- rsync -azvh --delete --include-from rsync-include.txt --exclude='*' public/ host-1:/var/www/
|
||||||
- rsync -azvh --delete public/microblog/ host-2:/var/www/microblog/
|
- rsync -azvh --delete --include-from rsync-include.txt --exclude='*' public/ host-2:/var/www/
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
- if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "microblog" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")'
|
- if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "microblog" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")'
|
||||||
|
|
|
@ -81,6 +81,10 @@ theme: chameleon
|
||||||
|
|
||||||
feed:
|
feed:
|
||||||
icon: "/svg/favicon.svg"
|
icon: "/svg/favicon.svg"
|
||||||
|
path: atom-microblog.xml
|
||||||
|
|
||||||
|
sitemap:
|
||||||
|
path: sitemap-microblog.xml
|
||||||
|
|
||||||
# theme config
|
# theme config
|
||||||
theme_config:
|
theme_config:
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
microblog
|
||||||
|
atom-microblog.xml*
|
||||||
|
sitemap-microblog.xml*
|
|
@ -10,23 +10,4 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</url>
|
</url>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{# home page #}
|
|
||||||
<url>
|
|
||||||
<loc>{{ config.root | fullUrlFor }}</loc>
|
|
||||||
<lastmod>{% if posts[0].updated %}{{ posts[0].updated | formatDate }}{% else %}{{ posts[0].date | formatDate }}{% endif %}</lastmod>
|
|
||||||
</url>
|
|
||||||
|
|
||||||
{# archive page #}
|
|
||||||
<url>
|
|
||||||
<loc>{{ config.archive_dir | fullUrlFor + '/' }}</loc>
|
|
||||||
<lastmod>{% if posts[0].updated %}{{ posts[0].updated | formatDate }}{% else %}{{ posts[0].date | formatDate }}{% endif %}</lastmod>
|
|
||||||
</url>
|
|
||||||
|
|
||||||
{% for tag in tags %}
|
|
||||||
<url>
|
|
||||||
<loc>{{ tag.permalink }}</loc>
|
|
||||||
<lastmod>{% if tag.posts.first().updated %}{{ tag.posts.first().updated | formatDate }}{% else %}{{ tag.posts.first().date | formatDate }}{% endif %}</lastmod>
|
|
||||||
</url>
|
|
||||||
{% endfor %}
|
|
||||||
</urlset>
|
</urlset>
|
||||||
|
|
Loading…
Reference in New Issue