fix display bugs, add feed and sitemap.xml
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0916ac9184
commit
2c852c1bcc
17
_config.yml
17
_config.yml
@ -24,7 +24,6 @@ source: "."
|
||||
|
||||
# Plugins
|
||||
plugins:
|
||||
- jekyll-feed # I have manually generated rss.xml https://jekyllrb.com/tutorials/convert-site-to-jekyll/#10-rss-feed
|
||||
- jekyll-menus
|
||||
- jekyll-archives
|
||||
- jekyll-paginate-v2
|
||||
@ -33,22 +32,6 @@ plugins:
|
||||
# Latent Semantic Indexing for similarity bewtween documents.
|
||||
lsi: true
|
||||
|
||||
feed:
|
||||
collections:
|
||||
posts:
|
||||
path: "/feed/posts-feed.xml"
|
||||
categories:
|
||||
- company
|
||||
- tutorials
|
||||
- devops
|
||||
products:
|
||||
path: "/feed/products-feed.xml"
|
||||
categories:
|
||||
- company
|
||||
- tutorials
|
||||
- legal
|
||||
- devops
|
||||
|
||||
# ===================================================================================
|
||||
# the API dashboard configuration
|
||||
api:
|
||||
|
@ -11,6 +11,6 @@ facebook_user: sharpetronics
|
||||
facebook_link: https://facebook.com/SharpeeTronics
|
||||
|
||||
discord_invite: https://discord.gg/HQcvr2JBQv
|
||||
rss_link: https://www.sharpetronics.com/feed/posts-feed.xml/
|
||||
rss_link: https://www.sharpetronics.com/feed.xml
|
||||
|
||||
---
|
||||
|
@ -18,50 +18,45 @@ Quality Assurance: @odinzu_me
|
||||
|
||||
<head>
|
||||
<META charset="utf-8">
|
||||
<META http-equiv="X-UA-Compatible" CONTENT="IE=edge">
|
||||
<META http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<META NAME="robots" CONTENT="index, follow">
|
||||
<META name="robots" content="index, follow">
|
||||
|
||||
<META NAME="author" CONTENT="{{ site.data.global.author }}">
|
||||
<META NAME="description" CONTENT="{{ site.data.global.description }}">
|
||||
<META NAME="keywords" CONTENT="{{ site.data.global.keywords }}">
|
||||
<META name="author" content="{{ site.data.global.author }}">
|
||||
<META name="description" content="{{ site.data.global.description }}">
|
||||
<META name="keywords" content="{{ site.data.global.keywords }}">
|
||||
|
||||
<!-- Geolocation Search Engine Optimization BING -->
|
||||
<META NAME="geo.position" CONTENT="{{ site.data.global.location_coords }}" />
|
||||
<META NAME="geo.placename" CONTENT="{{ site.data.global.location_town }}" />
|
||||
<META NAME="geo.region" CONTENT="{{ site.data.global.location_state }}" />
|
||||
<META NAME="ICBM" content="{{ site.data.global.location_coords }}" />
|
||||
|
||||
<!-- Standard SEO Twitter Card data -->
|
||||
<META property="twitter:card" content="summary">
|
||||
<META property="twitter:site" content="@{{ site.data.social.twitter_user }}">
|
||||
<META property="twitter:title" content="{{ page.title }}">
|
||||
<META property="twitter:description" content="{{ page.description }}">
|
||||
<META property="twitter:creator" content="@{{ site.data.social.twitter_user }}">
|
||||
<META name="geo.position" content="{{ site.data.global.location_coords }}" />
|
||||
<META name="geo.placename" content="{{ site.data.global.location_town }}" />
|
||||
<META name="geo.region" content="{{ site.data.global.location_state }}" />
|
||||
<META name="ICBM" content="{{ site.data.global.location_coords }}" />
|
||||
|
||||
<!-- Twitter -->
|
||||
<meta property="twitter:card" content="summary_large_image">
|
||||
<meta property="twitter:url" content="{{ page.url }}">
|
||||
<meta property="twitter:title" content="{{ page.title }}">
|
||||
<meta property="twitter:description" content="{{ page.description }}">
|
||||
<meta property="twitter:image" content="{{ page.image_url }}">
|
||||
<meta property="twitter:creator" content="{{ page.author }}">
|
||||
<META name="twitter:card" content="summary_large_image">
|
||||
<META name="twitter:image" content="{{ page.banner_image }}">
|
||||
<META name="twitter:image:alt" content="{{ page.banner_image_description }}">
|
||||
<META name="twitter:site" content="@{{ site.data.social.twitter_user }}">
|
||||
<META name="twitter:url" content="{{ page.url }}">
|
||||
<META name="twitter:title" content="{{ page.title }}">
|
||||
<META name="twitter:description" content="{{ page.content | strip_html | truncatewords: 50 }}">
|
||||
<META name="twitter:creator" content="{{ page.author }}">
|
||||
|
||||
<!-- Standard SEO Open Graph data -->
|
||||
<META property="og:title" content="{{ page.title }}" />
|
||||
<META property="og:type" content="article" />
|
||||
<META property="og:locale" content="en_US">
|
||||
<META property="og:title" content="{{ page.title }}" />
|
||||
<META property="og:url" content="{{ page.url }}" />
|
||||
<META property="og:image" content="{{ page.image_url }}" />
|
||||
<META property="og:image" content="{{ page.image_alt }}" />
|
||||
<META property="og:description" content="{{ site.data.global.description }}" />
|
||||
<META property="og:image" content="{{ page.banner_image }}" />
|
||||
<META property="og:image:alt" content="{{ page.banner_image_description }}" />
|
||||
<META property="og:description" content="{{ page.content | strip_html | truncatewords: 50 }}" />
|
||||
<META property="og:site_name" content="{{ site.data.global.title }}" />
|
||||
<META property="fb:admins" content="{{ site.data.social.facebook_admin_user }}" />
|
||||
|
||||
<!-- Favicons for various browsers including mobile -->
|
||||
<link rel="icon" type="image/x-icon" href="/assets/icons/favicon.ico" sizes="64x49">
|
||||
|
||||
<!-- Jekyll RSS Feed Plugin -->
|
||||
{%- feed_meta -%}
|
||||
<!-- Jekyll RSS Feed -->
|
||||
<link rel="alternate" type="application/rss+xml" href="{{ site.url }}/feed.xml">
|
||||
|
||||
<!-- Site title goes here -->
|
||||
<title> {{ site.data.global.title }} | {{ page.title }} </title>
|
||||
|
@ -9,7 +9,7 @@ pagination:
|
||||
|
||||
<section id="main" class="wrapper style1">
|
||||
<div class="inner">
|
||||
{% unless page.layout == "posts" %}
|
||||
{% unless page.layout == "posts" or page.layout == "products" %}
|
||||
<!-- The back button on a single post -->
|
||||
<section class="row product-cart journal">
|
||||
<div class="col-12">
|
||||
|
@ -278,6 +278,20 @@ a.author {
|
||||
ul.actions:not(.fixed) li {
|
||||
padding: .5em 0 .5em 0;
|
||||
}
|
||||
/* ----- mobile featured product ----- */
|
||||
|
||||
.post.featured.product.no-padding {
|
||||
margin: 0 0 1em 0;
|
||||
}
|
||||
.col-6.col-12-small.product-hero-text.vert-expand {
|
||||
padding: 0 0 0 1.3em;
|
||||
}
|
||||
.button.primary.fit.snipcart-add-item {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
/* ----- end mobile featured product ----- */
|
||||
|
||||
ul.actions:not(.fixed) li:first-child {
|
||||
padding-top: .5em;
|
||||
}
|
||||
@ -495,7 +509,7 @@ a.author {
|
||||
//Product Shopping Cart
|
||||
.product-cart ul {
|
||||
list-style:none;
|
||||
padding: 1em;
|
||||
padding: .2em 0 0 0;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin: 0 0 1em 0;
|
||||
@ -555,6 +569,9 @@ a.author {
|
||||
margin-bottom: .5em;
|
||||
}
|
||||
|
||||
.fas.fa-shopping-basket.fa-2x:hover {
|
||||
color: #e1bc63;
|
||||
}
|
||||
/* ---------Comment Discussion Styling------------- */
|
||||
ul.simple-nested li {
|
||||
margin-left: 3em;
|
||||
|
53
feed.xml
53
feed.xml
@ -1,32 +1,31 @@
|
||||
---
|
||||
layout: null
|
||||
layout:
|
||||
---
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<rss version="2.0">
|
||||
|
||||
<channel>
|
||||
<title>{{ site.data.global.title }}</title>
|
||||
<link>{{ site.url }}</link>
|
||||
<atom:link href="{{ page.url | prepend: site.url }}" rel="self" type="application/rss+xml" />
|
||||
<description>{{ site.data.global.description }}</description>
|
||||
<lastBuildDate>{{ site.data.global.time | date_to_rfc822 }}</lastBuildDate>
|
||||
{% for post in site.posts %}
|
||||
<item>
|
||||
<image>{{ post.image }}</image>
|
||||
<title>{{ post.title }}</title>
|
||||
<link>
|
||||
{{ post.url | prepend: site.url }}
|
||||
</link>
|
||||
<author>{{ post.author }}</author>
|
||||
<description>
|
||||
{{ post.content | escape | truncate: '400' }}
|
||||
</description>
|
||||
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
|
||||
<guid>
|
||||
{{ post.url | prepend: site.url }}
|
||||
</guid>
|
||||
</item>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{{ site.title | xml_escape }}</title>
|
||||
<description>{{ site.description | xml_escape }}</description>
|
||||
<link>{{ site.url }}{{ site.baseurl }}/</link>
|
||||
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
|
||||
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
|
||||
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
|
||||
<generator>Jekyll v{{ jekyll.version }}</generator>
|
||||
{% for post in site.posts limit:10 %}
|
||||
<item>
|
||||
<title>{{ post.title | xml_escape }}</title>
|
||||
<description>{{ post.content | xml_escape }}</description>
|
||||
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
|
||||
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
|
||||
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
|
||||
{% for tag in post.tags %}
|
||||
<category>{{ tag | xml_escape }}</category>
|
||||
{% endfor %}
|
||||
</channel>
|
||||
{% for cat in post.categories %}
|
||||
<category>{{ cat | xml_escape }}</category>
|
||||
{% endfor %}
|
||||
</item>
|
||||
{% endfor %}
|
||||
</channel>
|
||||
</rss>
|
||||
|
74
sitemap.xml
74
sitemap.xml
@ -1,27 +1,67 @@
|
||||
---
|
||||
layout: null
|
||||
search: exclude
|
||||
sitemap:
|
||||
exclude: 'yes'
|
||||
---
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<urlset
|
||||
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
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">
|
||||
|
||||
{% for page in site.pages %}
|
||||
<url>
|
||||
<loc>{{page.url}}</loc>
|
||||
<lastmod>{{site.time | date: '%Y-%m-%d' }}</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
{% unless page.sitemap.exclude == "yes" or page.name == "feed.xml" %}
|
||||
<url>
|
||||
<loc>
|
||||
{{ site.liveUrl }}{{ page.url | remove: "index.html" }}
|
||||
</loc>
|
||||
{% if page.sitemap.lastmod %}
|
||||
<lastmod>{{ page.sitemap.lastmod | date: "%Y-%m-%d" }}</lastmod>
|
||||
{% elsif page.date %}
|
||||
<lastmod>{{ page.date | date_to_xmlschema }}</lastmod>
|
||||
{% else %}
|
||||
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
|
||||
{% endif %}
|
||||
{% if page.sitemap.changefreq %}
|
||||
<changefreq>{{ page.sitemap.changefreq }}</changefreq>
|
||||
{% else %}
|
||||
<changefreq>monthly</changefreq>
|
||||
{% endif %}
|
||||
{% if page.sitemap.priority %}
|
||||
<priority>{{ page.sitemap.priority }}</priority>
|
||||
{% else %}
|
||||
<priority>0.3</priority>
|
||||
{% endif %}
|
||||
</url>
|
||||
{% endunless %}
|
||||
{% endfor %}
|
||||
|
||||
{% for post in site.posts %}
|
||||
<url>
|
||||
<loc>{{post.url}}</loc>
|
||||
<lastmod>{{site.time | date: '%Y-%m-%d' }}</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
{% for collection in site.collections %}
|
||||
{% for post in collection.docs %}
|
||||
{% unless post.published == false or post.sitemap.exclude == "yes" or page.name == "feed.xml" %}
|
||||
<url>
|
||||
<loc>{{ site.liveUrl }}{{ post.url }}</loc>
|
||||
{% if post.sitemap.lastmod %}
|
||||
<lastmod>{{ post.sitemap.lastmod | date: "%Y-%m-%d" }}</lastmod>
|
||||
{% elsif post.date %}
|
||||
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
|
||||
{% else %}
|
||||
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
|
||||
{% endif %}
|
||||
{% if post.sitemap.changefreq %}
|
||||
<changefreq>{{ post.sitemap.changefreq }}</changefreq>
|
||||
{% else %}
|
||||
<changefreq>monthly</changefreq>
|
||||
{% endif %}
|
||||
{% if post.sitemap.priority %}
|
||||
<priority>{{ post.sitemap.priority }}</priority>
|
||||
{% else %}
|
||||
<priority>0.5</priority>
|
||||
{% endif %}
|
||||
</url>
|
||||
{% endunless %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
</urlset>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user