-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make customizing of index page meta tags easier. #3
Comments
will do. Thing is currently the live demo is basically a duplicate of the theme which lives in a separate repo. Normally I work on that repo and deploy the changes to netlify. Then I just copy over the files using a build script into this themes repo. So some of the data that is unique to the live demo is getting copied over where it shouldn't. I just need to make this process a little bit more efficient, I don't enjoy having to manually edit the files for the theme every time I deploy. |
One way to go about this within Hugo would be assigning an Enviroment Variable for Netlify and then in your theme's templates you use the |
I'm already using a Netlify environment variables for the google analytics code (maybe on another theme). So yeah this is a nice approach. It's more about having to manage 2 separate repos. But I'm just looking at your pull request where you added themesDir = "../.." to the This makes me think I can probably just deploy to Netlify from this theme repo. On Netlify the
|
I've removed the meta tags that had the live demo data just so it doesn't pollute things for anyone who uses the theme right now. I'll work on a more permanent solution. |
Ok. 👍 I'm closing this issue. |
We can keep it open for a bit until the real solution is in place. |
What I really want to do is. Be able to work with just this repo. And this repo should only be the theme so it's compatible with hugoThemes. Clone this repo to my local and run Be able to git push to this repo and have it build on Netlify using be able to have unique live demo data, that is not included in the repo >_< be able to submit this repo to Netlify themes, and make it compatible with the 1 click deploy |
Currently there is gohugoio/hugo#5074 |
thanks for all your help so far mate, really appreciate it! |
The meta tags are now configured in the
I have also added instructions in the README.MD on how to update these. |
Great! :+1 |
Hello again.
I noticed that the day before yesterday you made this commit: bc5c2ba that among other changes introduced a block for meta tags in
It would be best if you either defined that block in the Example Site by overriding the theme’s index layout or if you turned these meta tags into config parameters.
Users need to be made aware of these tags and how to modify them. You could add some instructions in the README or comments in the Example Site config.
As things are now users who don’t notice these meta tags will have the ones that point to your theme’s Netlify demo on their personal websites.
cc: @digitalcraftsman
The text was updated successfully, but these errors were encountered: