Comments (5)
I use my website as a personal 'Instagram' and for travel updates (pre and post covid of course). Mainly for friends and family. Others don't need to see where I am or what I do, they don't need to know these pages even exist.
So when people visit my website they only see two menu item: about and login. After logging in they see a couple more: photos and travel. That's the idea. And it already works like that.
I use /userlogin now and I put it in the menu, however the nav item name is not conditional. It remains whatever I call it, in this case login, even when you are logged in. I would like to see it change to log out after logging in,
This is probably not something you will have to implement in the theme, maybe something I'll have to figure out myself and put in my navigation twig. I just don't know how, can't get it to work :)
from grav-coder.
There's a couple of different things that'll have to be addresses here,
- Navbar menu item -> Easy part. Although I do want to know the use case here.
/login
url -> Currently works but the form on page is sort of broken. It works but CSS needs fixing.
It'd be nice to know what you're trying to achieve here (besides showing login url/status in navbar) and how that can be useful for others. Reason I am asking this is I personally don't see the value in it (my preference is using admin dashboard) however if there's a strong use case here, I'll consider this!
from grav-coder.
Pushed a new update 0.1.8
, that should support your use case. If you're interested in code, here's the relevant portion 96a178f#diff-5c36d298048f0d5b0fb77402283f1c1bf4184911555dc8a92818aac4d79792f2
from grav-coder.
Wonderful! Thanks so much
edit
@ParitoshBh just to let you know I tried it and it worked exactly as I was hoping for. Many thanks!
from grav-coder.
Good to know it worked out for you!
from grav-coder.
Related Issues (20)
- Posts don't appear on blog HOT 4
- Multiple categories should be comma separated
- Default template issues HOT 3
- Featherlight plugin doesn't seem to work in this theme HOT 2
- Page navigation broken HOT 9
- centered class display = flex HOT 1
- Broken Post Navigation HOT 13
- FontAwesome fonts do not appear on all pages HOT 3
- after grav update - had to copy default.html.twig to home.html.twig HOT 4
- Question: will you maintain the theme for grav 1.7 HOT 6
- Is google fonts api Fira Mono actually being used in the theme HOT 1
- Add support for rel=me in the social media links in the footer HOT 4
- Content is load 'sideways' HOT 2
- Grav menu and cache HOT 4
- Previous / Next Article function won't work HOT 6
- Icon distorted - researchgate HOT 4
- Posts HOT 1
- I need plugin - page on password HOT 2
- How do I update the copyright year to 2019? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grav-coder.