Will elements shown in the website created by github pages change when the corresponding thing change in my repo? - github-pages

I have created a website using Github Pages. It is a course page.
I am wondering that will the syllabus displayed in the website change as the syllabus.md change in my repo?
For example, the current course name displayed on the website is "CS1200 Data Structure". I changed it to "CS2400 Data Structure" in my syllabus.md, committed it and made a push request. Will the course name displayed on the website also change to "CS2400 Data Structure"?
Will it change automatically? What should I do so that the information will change on the website as it changes in my repo?
Thank you very much.

Related

Drupal 8 Generate all images for all styles

I'm working on a Drupal 8.6 multi site installation, where every site has it's own database, and I'm having a problem where the first time a content is shared on Facebook it uses the wrong image.
The meta tag is configured right, it is something like this:
<meta property="og:image" content="https://xxxx.com/image.jpg?itok=w8tMeCC0" />
This image problem happens only at the first share and I believe it happens because the image has not been created yet at the moment of the first share.
I would like to know what I could do to force the image to be generated as soon as the content is published and if there is a way to create all the missing images.
I found this post and I'm trying to implement in a module (I never worked on Drupal before) but I don't even know how to schedule this piece of script to be executed.
Is there an existing module or setting that does that?
Thanks for any help!
Have you tried the facebook Debugger?
https://developers.facebook.com/tools/debug/
Facebook usually stores the metatags in cache during shares. What I usually do is debug the webpage at least once with the right metatags configured in the debugger and ensure the page loads correctly there.
Afterwards, the share will be loading all the assets correctly.

How to disable ember-fastboot after site already loaded locally?

This is related to a post I recently made regarding ember-fastboot and saving a webpage for offline viewing.
I am making a separate post because I believe this is more an ember-fastboot question and isn't specific to the website I am trying to save for offline viewing.
Basically, I am trying to find out how, on the local end, to completely override ember. That is, since I already have open in my browser the rendered page, what does one need to do in order to save the page such that when opened later locally as offline page, the page appears the same way it did when rendered in the first place?
It seems like I am in a paradox. I have a rendered page, with content such as a javascript media player. I save rendered page. I then open the locally saved, rendered page but then the ember javascript kicks in and alters the page, such that the javascript media player no longer loads, due to ember altering a div's class name to specify that the player is not booted! The thing is, once rendered, I don't need ember doing anything, as I am just interested in viewing a frozen copy of the rendered page with no interest in subsequent connections to the rendering server.
Anyway, hope someone can shed some light on this.
Thanks!
You could remove <script> tags from the index.html after saving it. That would prevent the app from starting, leaving the pre-rendered HTML intact.
You might need to split the JS bundle if you need a JS player to be running independently. Splitting the bundle is an advanced technique. If you need it, please ask a separate question.

Unable to delete SharePoint Master Page

SharePoint by default has two master pages: Seattle and Oslo. The general rule is we should not modify these default master pages. If we need any customization, we should make their copy, make modification, upload to the Master Page Gallery and then use it. However a colleague of mine modified them directly and it screwed up some JavaScript functions. It impacted Performance Point Dashboard Designer and continuously started showing JavaScript errors.
In order to resolve the issue, I renamed the default master pages to Seattle_erroneous.masterpage and Oslo_erroneous.masterpage. I also renamed their respective .html files. I copied fresh copies of Seattle.masterpage and Oslo.masterpage from another web application, also their .html files, uploaded them to the Master Page Gallery, published their major version and started them referencing in subsites. It did solve JavaScript errors.
Now I want to clean up those erroneous master pages. When I try to delete them from the gallery, I get following error.
All the subsites inherit the working master page. Also I checked master page of each site one by one. All of them were referencing the working version. There was one site whose SharePoint Server Publishing feature was not enabled. I enabled it, and confirmed it was using the working version. I cannot delete the erroneous masterpages. It is referencing somewhere where I cannot see. Please help.
You may try the solution shared by here.
My Issues with Test.html and Test.master
Go to Root Site, Site Settings->Look and Feel Section: Design
Manager. Here the Master Page Html file can be modified
what changes are we make in .master file.
But Site Settings->Look and Feel Section: Design Manager ->Edit
Master Pages Test.html was missing.(By default Seattle and Oslo will
be appear)
Open the site collection through SharePoint Designer, Right click on
Seattle.html file -> Select "Edit File in Advanced Mode" from
context menu.
Seattle.html opens in a new Tab. Select all and copy the code.
Then Go to Test.html (Right Click) -> "Edit File in Advanced Mode".
Opens in a new tab.
Replace the existing code in the "Test.html" by pasting the code
from Seattle.html
Save the file (This is done in "Check In" status)
In the Browser, Go
To Root Site, Site Settings -> Look and Feel: Design Manager ->
"Edit Master Pages" in the left side.
Now here the Test.html file will appear. Delete this file

Embedding a functional website inside a Squarespace webpage

First of all, thank you for everything that you do. Without this community, I would hate web design and be reliant on my teacher's outdated, static methods. Much love <3
So, this is a tricky one (maybe).
I want to have, essentially, an iframe on a webpage that contains a website I coded previously. It was a project for school that never went live, but I'd like to include it as part of my portfolio. Problem is, an iframe needs a URL for a source, but I just have the folder with more folders full of code, fonts, and images. How can I tell the browser to populate this box with everything from "name" folder? And then how will it know to run the code instead of just showing a file tree or something?
In the end, I want a page describing a previous web project and let the client experience that project within the one page. And I don't want to get a domain for every project I do.
Maybe there's an easier way I'm not thinking of?
To make it interesting, my new portfolio site is being made in Squarespace...maybe. I bought a domain from them because I had a promo code and wanted to try the platform, but I kind of hate it. I can't change any of the code and it won't maintain a connection to Typekit. So all I can do is change the basic appearance of preexisting elements. It's like WordPress all over again....LAME! Sadly, I already bought the domain.
Can Squarespace just be a host? Is there a way to download the raw code of these templates, edit it, and upload it again?
Thanks for all your help!
I want to have, essentially, an iframe on a webpage that contains a
website I coded previously.
Squarespace's file upload mechanism is very limited. Without using the Developers Platform, there is no effective way to upload many files at once. Furthermore, there is no way to create folders. Therefore, even if you were willing to upload each .html file and each asset one-by-one, there'd be no way to organize the files into folders (assuming that the "tree" you mentioned includes additional sub-folders).
Initially, in order to get the files to be accessible by Squarespace, you'd have to do one of the following:
Use Squarespace Developers Platform (A.K.A. "Developer Mode") and upload your to-be-iframed
(TBI) website files to the "assets" folder using SFTP or Git.
Host your TBI website files somewhere else (a different host
environment, for example) which will maintain your file/folder
structure.
How can I tell the browser to populate this box with everything from
"name" folder? And then how will it know to run the code instead of
just showing a file tree or something?
Assuming that the TBI website has an index.html file or home.html file or similar, and assuming you were to use the Squarespace Developer Platform, you'd insert the iframe either in a Code Block or within a template/.region file directly using something like
<iframe src="/assets/tbiwebsitefolder/index.html"></iframe>
while setting your other iframe attributes (such as height and width) as needed.
Is there a way to download the raw code of these templates, edit it,
and upload it again?
Yes. You select a template and then enable Developer Mode on that template. From there, you use SFTP or Git to download the template files, edit, and reupload.
You may benefit by reviewing some considerations of enabling Developer Mode on a Squarespace Template.
One other idea, to avoid the iframe and Developer Mode entirely, would be to capture images of the TBI website rendered in a browser, and then simply add those images to a gallery block or gallery page. This could allow you to convey the general idea of the project but would of course not capture the full "experience" of it.

Sitecore Upload Media from Page editor doesn't work

I am a new bee to Sitecore and here comes my first challenge at work.
In one of the website component, I want to add an image.
For this in content editor:
I'll click on browse.
Switch to folder view.
Navigate down to the folder you want to save into.
Click upload media on top left.
Click ‘Browse for media files’ and navigate to the image on the local drive and select it.
Enter alt-text and click upload media.
In Chrome the green bar for uploading never seems to finish. On IE one of the green bars changes to ‘Upload complete’. At this point there is no call to action to add the image to the module, select the module – you just don’t know what to do next.
Eventually you have to click ‘Back’ or ‘close’. Then when you go to find the image it is not in the folder you selected. It is in Upload folder. We cannot keep all of our files in ‘Upload’. We need to be able to upload into a chosen folder.
I am using Sitecore 7.2.
This works properly in a base site in Sitecore 7.2, but is not working in my website.
Is there any setting I need to change to make this work properly?
I know we can add media files into Media library directly and can use it. But we want to do it the using the above mentioned steps/ or using Page editor. The main problem is, this doesn't work while adding image from Page editor.
Hope I can get some solution!
many thanks!
I looked at the Release Notes for Sitecore 7.2 and found that there were several bugs related to Media Uploads that were resolved in Update 2 (140526), including some that relate to choosing the destination of uploaded media. From your description of the issue and the bugs that were fixed in Update 2, it sounds like you may only need to update to Revision 140526.
To find out what revision of Sitecore you are using, go to the Sitecore Desktop -> Start Menu -> Control Panel -> Administration -> Show About Sitecore Information. As you will see in the screenshot, below, there is a parenthesized revision number at the top. If that number is not 140526 then you should try to apply Update 2 to your instance.
Note that this screenshot is of an instance that is not running on Sitecore 7.2 Update 2, but is instead running on the initial release (140228).