OSDN Git Service

Regular updates
[twpd/master.git] / _includes / values / description.html
diff --git a/_includes/values/description.html b/_includes/values/description.html
new file mode 100644 (file)
index 0000000..267d7d7
--- /dev/null
@@ -0,0 +1,17 @@
+{%
+  if page.description and page.intro
+%}{{ page.description }} {{ page.intro | markdownify | strip_html }}{%
+  elsif page.description
+%}{{ page.description }} · One-page guide to {{ page.title }}{%
+  elsif page.keywords and page.intro
+%}{{ page.keywords | join: ' · ' }} · {{ page.intro | markdownify | strip_html }}{%
+  elsif page.keywords
+%}{{ page.keywords | join: ' · ' }} · One-page guide to {{ page.title }}{%
+  elsif page.intro
+%}One-page guide to {{ page.title }}: usage, examples, and more. {{ page.intro | markdownify | strip_html }}{%
+  elsif page.type == 'article'
+%}The one-page guide to {{ page.title }}: usage, examples, links, snippets, and more.{%
+  else
+%}The one-page guide to {{ page.title }}: usage, examples, links, snippets, and more.{%
+  endif
+%}