Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: default
sitemap: false
---

<style type="text/css" media="screen">
Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ defaults:
type: tags
values:
layout: tag
sitemap: false

exclude: [README.md, Gemfile, Gemfile.lock]

Expand Down
8 changes: 7 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
{% unless meta_image contains '://' %}
{% assign meta_image = meta_image | prepend: site.url %}
{% endunless %}
<link rel="canonical" href="{{ meta_url }}" />
{% if paginator and paginator.page > 1 %}
<meta name="robots" content="noindex, follow" />
{% elsif page.noindex %}
<meta name="robots" content="noindex, follow" />
{% endif %}
<title>{{ meta_title }}</title>
<meta name="title" content="{{ meta_title }}" />
<meta name="author" content="{{ meta_author }}"/>
Expand All @@ -35,7 +41,7 @@
<meta property="og:title" content="{{ meta_title }}"/>
<meta property="og:description" content="{{ meta_description }}"/>
<meta property="og:url" content="{{ meta_url }}"/>
<meta property="og:image" content="{{ page.image }}"/>
<meta property="og:image" content="{{ meta_image }}"/>
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:title" content="{{ meta_title }}"/>
<meta name="twitter:description" content="{{ meta_description }}"/>
Expand Down
13 changes: 13 additions & 0 deletions _layouts/home.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
---
layout: default
---
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": {{ site.title | jsonify }},
"url": "{{ site.url }}",
"description": {{ site.description | strip_html | strip_newlines | jsonify }},
"author": {
"@type": "Person",
"name": {{ site.author | jsonify }}
}
}
</script>
<div id="cover" class="container"
{% if site.image %}style="background-image:url({{ site.image }});"{% endif %}>
<div>
Expand Down
34 changes: 34 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,40 @@
---
layout: default
---
{% assign author = site.authors | where: 'name', page.author | first %}
{% assign post_image = page.image | default: site.image %}
{% unless post_image contains '://' %}{% assign post_image = post_image | prepend: site.url %}{% endunless %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": {{ page.title | jsonify }},
"description": {{ page.excerpt | strip_html | truncatewords: 75 | jsonify }},
"image": {{ post_image | jsonify }},
"datePublished": "{{ page.date | date_to_xmlschema }}",
{% if page.modified %}"dateModified": "{{ page.modified }}",{% endif %}
"author": {
"@type": "Person",
"name": {{ page.author | default: site.author | jsonify }},
"url": "{{ site.url }}{{ author.url }}"
},
"publisher": {
"@type": "Organization",
"name": {{ site.title | jsonify }},
"logo": {
"@type": "ImageObject",
"url": "{{ site.url }}/assets/favicon.png"
}
},
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "{{ site.url }}{{ page.url }}"
}
{% if page.tags %},
"keywords": {{ page.tags | jsonify }}
{% endif %}
}
</script>
<div id="fb-root"></div>
<div id="navbar" class="container">
<h5><a id="link-back" href="/">Back to Posts</a></h5>
Expand Down
1 change: 1 addition & 0 deletions _layouts/tag.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: default
noindex: true
---
<div id="navbar" class="container">
<h5><a id="link-back" href="/">Main</a></h5>
Expand Down
2 changes: 1 addition & 1 deletion _posts/2020-11-17-configuration-dhcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: " "
author: chhanz
date: 2020-11-17
tags: [linux]
category: linux, dhcp
categories: [linux, dhcp]
---

# DHCP 란?
Expand Down
2 changes: 1 addition & 1 deletion robots.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
User-agent: *
Allow: /
Disallow: /assets/
Disallow: /assets/images/

Sitemap: https://tech.chhanz.xyz/sitemap.xml
Loading