Skip to content

Commit

Permalink
Add embed page (#126)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha authored Feb 5, 2024
1 parent f68d5e0 commit f78c390
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ deploy-to-linode:

.PHONY: run
run:
@yqq w -i config.dev.yaml params.search_api_key --tag '!!str' $(GOOGLE_CUSTOM_SEARCH_API_KEY)
hugo server --config=config.dev.yaml

PRODUCT ?=
Expand Down Expand Up @@ -81,9 +80,7 @@ assets: hugo-tools
.PHONY: gen
gen:
rm -rf public
@yqq w -i config.dev.yaml params.search_api_key --tag '!!str' $(GOOGLE_CUSTOM_SEARCH_API_KEY)
hugo --config=config.dev.yaml
@yqq w -i config.dev.yaml params.search_api_key --tag '!!str' '_replace_'

.PHONY: qa
qa: gen
Expand All @@ -93,9 +90,7 @@ qa: gen
.PHONY: gen-prod
gen-prod:
rm -rf public
@yqq w -i config.yaml params.search_api_key --tag '!!str' $(GOOGLE_CUSTOM_SEARCH_API_KEY)
hugo --minify --config=config.yaml
@yqq w -i config.yaml params.search_api_key --tag '!!str' '_replace_'

# .PHONY: release
# release: gen-prod
Expand Down
4 changes: 4 additions & 0 deletions content/embed/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Console | AppsCode
layout: embed_console
---
2 changes: 2 additions & 0 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ <h6>{{ .Name }}</h6>
<!-- ========================== header area end ==========================-->

<!--========================== cookies area start ==========================-->
{{ block "cookie-warning" . }}
<div class="cookie-wrapper">
<div class="container">
<div class="cookie-content">
Expand Down Expand Up @@ -748,6 +749,7 @@ <h6>{{ .Name }}</h6>
<!--========================== cookies area end ==========================-->

<div class="modal-backdrop"></div>
{{ end }}

<!-- Code that all your templates share, like a header -->
{{ block "main" . }}
Expand Down
27 changes: 27 additions & 0 deletions layouts/_default/embed_console.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{{ define "header-bottom" }}
&nbsp;
{{ end }}

{{ define "main" }}
&nbsp;
{{ end }}

{{ define "cookie-warning" }}
&nbsp;
{{ end }}

{{ define "testimonial" }}
&nbsp;
{{ end }}

{{ define "customer-logos" }}
&nbsp;
{{ end }}

{{ define "cta-install" }}
&nbsp;
{{ end }}

{{ define "footer" }}
&nbsp;
{{ end }}

0 comments on commit f78c390

Please sign in to comment.