Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Commit 3bc8bb9

Browse files
authored
Merge pull request #41 from paiindustries/feature/testimonial
Update layout.cfm
2 parents ead095a + d536f9c commit 3bc8bb9

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

app/views/layout.cfm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
<cfset pathInfo = trim(cgi.path_info)>
55
<cfset isBlog = find("/blog", pathInfo)>
66
<cfset isApi = find("/api", pathInfo)>
7+
<cfset isLogin = find("/login", pathInfo)>
8+
<cfset isRegister = find("/register", pathInfo)>
9+
<cfset isAuthPage = (isLogin OR isRegister)>
710
<cfset pageTitle = "CFWheels - an open source CFML framework inspired by Ruby on Rails">
811
<cfset ogTitle = "CFWheels - an open source CFML framework inspired by Ruby on Rails">
912
<cfset metaDescription = "Build apps quickly with an organized, Ruby on Rails-inspired structure. Get up and running in no time!">
@@ -97,7 +100,7 @@
97100
</head>
98101
<body>
99102

100-
<nav class="navbar sticky-top navbar-expand-lg py-2 nav-bg">
103+
<nav class="navbar <cfif isAuthPage>d-none</cfif> sticky-top navbar-expand-lg py-2 nav-bg">
101104
<div class="container">
102105
<a class="navbar-brand" href="/">
103106
<img src="/images/wheels-logo.png" alt="Bootstrap" width="200">
@@ -171,7 +174,7 @@
171174
#includeContent()#
172175
</cfoutput>
173176

174-
<footer class="bg-white pt-5 pb-3 border-top">
177+
<footer class="bg-white <cfif isAuthPage>d-none</cfif> pt-5 pb-3 border-top">
175178
<div class="container">
176179
<div class="row text-lg-left text-center gy-lg-0 gy-3 gx-5">
177180
<div class="col-lg-4">

0 commit comments

Comments
 (0)