Skip to content

Commit

Permalink
feat: Adds conditional compile for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ntlhui committed Jan 19, 2024
1 parent 9e91aba commit 9a8a84a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ exclude:
# - vendor/cache/
# - vendor/gems/
# - vendor/ruby/

is_dev: false
1 change: 1 addition & 0 deletions _dev_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
is_dev: true
3 changes: 3 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{%- if site.is_dev -%}
<meta name="robots" content="noindex">
{%- endif -%}
{%- seo -%}
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
<link rel="shortcut icon" type="image/png" href="e4esquarelogo-v2.png">
Expand Down

0 comments on commit 9a8a84a

Please sign in to comment.