* Web page fixes (#1)

* Fixed search issue: Search by keyword doesn't work as expected under certain conditions

* Added Geo field to search

* Added the ability to alphabetize the technologies, language, geo and verticals list

* Changed Vertical search topic to ‘Industry associated with solution’

* Added Front Matter's parmalink section to existing templates

* Added "geo" field to templates' front matter

* Replaced geo by geolocation

* Travis CI script improvements (#2)

* Added test to validate duplicated URLs in permalinks. Improved test script verbosity

* Added support for image links validation

* Added logic to verify links

* Added validation for color blue

* Improved Quality Check script

* Improved mandatory sections detection in quality check

* Converted Content section checks from error to warning and Made all the tags in Front Matter mandatory

* Revert "Travis CI script improvements (#2)"

This reverts commit 6a1788c4b89c12adc96c5c416ccb73661e2a87ed.
This commit is contained in:
Marcelo Rodriguez 2017-05-03 22:00:53 -03:00 коммит произвёл Dail Magee Jr
Родитель 2243fdac19
Коммит 949214411f
14 изменённых файлов: 59 добавлений и 11 удалений

Просмотреть файл

@ -2,16 +2,25 @@
{
"name":"technology",
"showAs":"Technology",
"metadataField":"categories"
"metadataField":"categories",
"sorted": true
},
{
"name":"verticals",
"showAs":"Verticals",
"metadataField":"verticals"
"showAs":"Industry associated with solution",
"metadataField":"verticals",
"sorted": true
},
{
"name":"language",
"showAs":"Language",
"metadataField":"language"
"metadataField":"language",
"sorted": true
},
{
"name":"geolocation",
"showAs":"Geolocation",
"metadataField":"geolocation",
"sorted": true
}
]

Просмотреть файл

@ -12,7 +12,7 @@
},
{
"name":"verticals",
"showAs":"Verticals",
"showAs":"Industry associated with solution",
"metadataField":"verticals",
"values":[
"Energy",
@ -43,5 +43,13 @@
"Russian",
"Chinese"
]
},
{
"name":"geolocation",
"showAs":"Geolocation",
"metadataField":"geolocation",
"values":[
"TODO: Complete static list"
]
}
]

Просмотреть файл

@ -11,6 +11,8 @@ color: "blue"
excerpt: Add a short description of what this article is about, helping a fellow developer understand why they would want to read it. What value will they get out of reading it? Focus on the problem or technologies and let that be the guiding light.
language: The language of the article (e.g.: [English])
verticals: The vertical markets this article has focus on (e.g.: [Energy, Manufacturing & Resources, Financial Services, Public Sector, “Retail, Consumer Products & Services”, Environmental, Communications/Media, Transportation & Logistics, Smart Cities, Agricultural, Environmental, Healthcare, Other])
geolocation: The geolocation of the article
permalink: /<page-title>.html Use this section to set a custom URL for your page. The value set in this setting will be added to the base URL. For example if you set "/mycustomurl.html", your URL will be "https://microsoft.github.io/techcasestudies/mycustomurl.html"
---
Begin with an intro statement with the following details:

Просмотреть файл

@ -11,6 +11,8 @@ color: "blue"
excerpt: Add a short description of what this article is about, helping a fellow developer understand why they would want to read it. What value will they get out of reading it? Focus on the problem or technologies and let that be the guiding light.
language: The language of the article (e.g.: [English])
verticals: The vertical markets this article has focus on (e.g.: [Energy, Manufacturing & Resources, Financial Services, Public Sector, “Retail, Consumer Products & Services”, Environmental, Communications/Media, Transportation & Logistics, Smart Cities, Agricultural, Environmental, Healthcare, Other])
geolocation: The geolocation of the article
permalink: /<page-title>.html Use this section to set a custom URL for your page. The value set in this setting will be added to the base URL. For example if you set "/mycustomurl.html", your URL will be "https://microsoft.github.io/techcasestudies/mycustomurl.html"
---
Begin with an intro statement with the following details:

Просмотреть файл

@ -11,6 +11,8 @@ color: "blue"
excerpt: Add a short description of what this article is about, helping a fellow developer understand why they would want to read it. What value will they get out of reading it? Focus on the problem or technologies and let that be the guiding light.
language: The language of the article (e.g.: [English])
verticals: The vertical markets this article has focus on (e.g.: [Energy, Manufacturing & Resources, Financial Services, Public Sector, “Retail, Consumer Products & Services”, Environmental, Communications/Media, Transportation & Logistics, Smart Cities, Agricultural, Environmental, Healthcare, Other])
geolocation: The geolocation of the article
permalink: /<page-title>.html Use this section to set a custom URL for your page. The value set in this setting will be added to the base URL. For example if you set "/mycustomurl.html", your URL will be "https://microsoft.github.io/techcasestudies/mycustomurl.html"
---

Просмотреть файл

@ -11,6 +11,8 @@ color: "blue"
excerpt: Add a short description of what this article is about, helping a fellow developer understand why they would want to read it. What value will they get out of reading it? Focus on the problem or technologies and let that be the guiding light.
language: The language of the article (e.g.: [English])
verticals: The vertical markets this article has focus on (e.g.: [Energy, Manufacturing & Resources, Financial Services, Public Sector, “Retail, Consumer Products & Services”, Environmental, Communications/Media, Transportation & Logistics, Smart Cities, Agricultural, Environmental, Healthcare, Other])
geolocation: The geolocation of the article
permalink: /<page-title>.html Use this section to set a custom URL for your page. The value set in this setting will be added to the base URL. For example if you set "/mycustomurl.html", your URL will be "https://microsoft.github.io/techcasestudies/mycustomurl.html"
---
Begin with an intro statement with the following details:

Просмотреть файл

@ -11,6 +11,8 @@ color: "blue"
excerpt: Add a short description of what this article is about, helping a fellow developer understand why they would want to read it. What value will they get out of reading it? Focus on the problem or technologies and let that be the guiding light.
language: The language of the article (e.g.: [English])
verticals: The vertical markets this article has focus on (e.g.: [Energy, Manufacturing & Resources, Financial Services, Public Sector, “Retail, Consumer Products & Services”, Environmental, Communications/Media, Transportation & Logistics, Smart Cities, Agricultural, Environmental, Healthcare, Other])
geolocation: The geolocation of the article
permalink: /<page-title>.html Use this section to set a custom URL for your page. The value set in this setting will be added to the base URL. For example if you set "/mycustomurl.html", your URL will be "https://microsoft.github.io/techcasestudies/mycustomurl.html"
---
Begin with an intro statement with the following details:

Просмотреть файл

@ -11,6 +11,8 @@ color: "blue"
excerpt: Add a short description of what this article is about, helping a fellow developer understand why they would want to read it. What value will they get out of reading it? Focus on the problem or technologies and let that be the guiding light.
language: The language of the article (e.g.: [English])
verticals: The vertical markets this article has focus on (e.g.: [Energy, Manufacturing & Resources, Financial Services, Public Sector, “Retail, Consumer Products & Services”, Environmental, Communications/Media, Transportation & Logistics, Smart Cities, Agricultural, Environmental, Healthcare, Other])
geolocation: The geolocation of the article
permalink: /<page-title>.html Use this section to set a custom URL for your page. The value set in this setting will be added to the base URL. For example if you set "/mycustomurl.html", your URL will be "https://microsoft.github.io/techcasestudies/mycustomurl.html"
---
Begin with an intro statement with the following details:

Просмотреть файл

@ -11,6 +11,8 @@ color: "blue"
excerpt: Add a short description of what this article is about, helping a fellow developer understand why they would want to read it. What value will they get out of reading it? Focus on the problem or technologies and let that be the guiding light.
language: The language of the article (e.g.: [English])
verticals: The vertical markets this article has focus on (e.g.: [Energy, Manufacturing & Resources, Financial Services, Public Sector, “Retail, Consumer Products & Services”, Environmental, Communications/Media, Transportation & Logistics, Smart Cities, Agricultural, Environmental, Healthcare, Other])
geolocation: The geolocation of the article
permalink: /<page-title>.html Use this section to set a custom URL for your page. The value set in this setting will be added to the base URL. For example if you set "/mycustomurl.html", your URL will be "https://microsoft.github.io/techcasestudies/mycustomurl.html"
---
Begin with an intro statement with the following details:

Просмотреть файл

@ -11,6 +11,8 @@ color: "blue"
excerpt: Add a short description of what this article is about, helping a fellow developer understand why they would want to read it. What value will they get out of reading it? Focus on the problem or technologies and let that be the guiding light.
language: The language of the article (e.g.: [English])
verticals: The vertical markets this article has focus on (e.g.: [Energy, Manufacturing & Resources, Financial Services, Public Sector, “Retail, Consumer Products & Services”, Environmental, Communications/Media, Transportation & Logistics, Smart Cities, Agricultural, Environmental, Healthcare, Other])
geolocation: The geolocation of the article
permalink: /<page-title>.html Use this section to set a custom URL for your page. The value set in this setting will be added to the base URL. For example if you set "/mycustomurl.html", your URL will be "https://microsoft.github.io/techcasestudies/mycustomurl.html"
---
Begin with an intro statement with the following details:

Просмотреть файл

@ -11,6 +11,8 @@ color: "blue"
excerpt: Add a short description of what this article is about, helping a fellow developer understand why they would want to read it. What value will they get out of reading it? Focus on the problem or technologies and let that be the guiding light.
language: The language of the article (for example, [English])
verticals: The vertical markets this article has focus on (such as [Energy, Manufacturing & Resources, Financial Services, Public Sector, "Retail, Consumer Products & Services", Environmental, Communications/Media, Transportation & Logistics, Smart Cities, Agricultural, Environmental, Healthcare, Other])
geolocation: The geolocation of the article
permalink: /<page-title>.html Use this section to set a custom URL for your page. The value set in this setting will be added to the base URL. For example if you set "/mycustomurl.html", your URL will be "https://microsoft.github.io/techcasestudies/mycustomurl.html"
---
Begin with an intro statement with the following details:

Просмотреть файл

@ -46,7 +46,7 @@
Use the filter and keyword search below to find stories that matter to you.
</div>
<form id="AdvancedSearch" class="form-horizontal">
<form id="AdvancedSearch" class="form-horizontal" onsubmit="return customSearch.applyFilters(true);">
<div class="pad-bottom">
<h2>Refine results by:</h2>
<div class="treeview">
@ -63,7 +63,14 @@
{{ category.showAs }} <label class="items-selected"></label>
</label>
<ul>
{% assign items = categories[i] %}
{% comment %} Determine if the category should be sorted or not. {% endcomment %}
{% if category.sorted == true %}
{% assign items = categories[i] | sort %}
{% else %}
{% assign items = categories[i] %}
{% endif %}
{% for item in items %}
<li>
<input type="checkbox" id="item-{{ category.name }}-{{ item.name }}">

Просмотреть файл

@ -47,6 +47,7 @@ var customFilter = (function($){
});
return false;
}
var searchByFilter = function(post, filter) {
@ -302,10 +303,14 @@ var customSearch = (function($){
function getQueryString() {
var query_string = {};
var query = window.location.search.substring(1);
if (!query) {
if (window.location.hash)
query = window.location.hash.replace("#", "");
var query;
if (window.location.hash) {
query = window.location.hash.replace("#", "");
}
if (!query) {
query = window.location.search.substring(1);
}
if (!query)

Просмотреть файл

@ -11,6 +11,7 @@
"excerpt": {{ post.excerpt | jsonify }},
"verticals": {{ post.verticals | jsonify }},
"language": {{ post.language | jsonify }},
"geolocation": {{ post.geolocation | jsonify }},
"content": {{ post.content | strip_html | jsonify }}
}{% unless forloop.last %},{% endunless %}
{% endfor %}