Some of the pleasure of writing in markdown is the ability to spread links all over the place (I wish [[link]] worked though). Odds are that I've made a typo or just plain forgot to actually fill in some of the links.
Is there a way to easily write a regression test inside jekyll that will follow all the (internal) links and tell me if I've missed something?
There probably is... but the easiest way to test this would be to run your website through something like this: https://www.deadlinkchecker.com/website-dead-link-checker.asp
Related
I've never used WordPress.org before. I'm wondering if I can convert this html website that I have to wordpress exactly the same?
https://reporting.pacificamerican.org/pas/
And if this website is a wordpress site, does it means that I don't have to go into the codes if I want to update my content? Because right now with html site it takes more time to update all the contents.
Thank you.
Yes, you can, but looking at the content I wouldn't say it looks like a great idea. Mostly because of how static the current content seems to be.
Pros:
It looks like you are about to add a blog-page. WordPress does make such re-occuring content easy.
It looks like you have repeated the menu on every page. (If you change the menu on one page, then you have to makes changes to all pages as well?). WordPress would help with that and let you use one menu everywhere. But there are also tons of easier methods to accomplish the same thing without WordPress. (For example <?php include 'menu.php';?> using PHP).
Cons:
The "multiple sub-pages in one page" that you are using doesn't play naturally with WordPress. Absolutely possible yes, perhaps not even difficult, but not out-of-the-box for sure.
The time it would take to edit pages would likely not change as drastic as you hope. I believe that the current content looks so static that anyone with a bit HTML/CSS knowledge would rather want to edit those static html files over having to click around in the WordPress admin interface.
The scroll-spy, editing tables and things like the yearly admissions does not come naturally either. I can think of a few dozen ways to solve such things with WordPress, but if you are going to do this work yourself, then the WordPress-conversion will take some effort and the results will not always be as pretty as you might imagine.
You'll definitely take a performance hit over using only static html. (But that is true for any CMS/framework)
My suggestion would be to first look at your current workflow. Perhaps look at an IDE that can upload with a click or on save, have history so you can back up when things break, and predefined snippets that make static content changes easy, (and of course code syntax highlighting!).
What tools are you using now?
Also remember that you are asking on a coding-site. Not many here would opt to use the WordPress editor over simply editing html-files. In fact, I dare to say many here carries a deep grudge after having to work around some specific quirks in the WP editor (aka tinyMCE).
Sure, you could replicate the layouts.
Sure, your content would be editable with just a form.
It would take a lot of effort, but certainly doable.
I have to develop some static HTML page, but I don't want to repeat myself copy/pasting common parts so, for example, I would like to include header and footer in every page.
I don't need something too much sophisticated, just and include feature.
Using Gulp as build system I would like to have my templates in the src/ folder and after a processing task, getting the complete html inside the dist/ folder.
I thought to use something like handlebars, but I don't know if this is the right framework and I don't know how to integrate it in Gulp for workflow described above.
Any hint?
You could absolutely use Handlebars to render static chunks of markup. But, unless you're also building some data-driven content, it might be overkill.
It sounds like you want something akin to PHP's include.
For that, you might want to check out .KIT files. I recommend gulp-codekit (documentation here), which is based on the .KIT file compiler built into CodeKit.
Like in this other thread, using gulp-file-include is the easiest choice for my needs.
Thanks everyone!
I am trying to figure out if it is even possible to somehow implement 'template sections' with a straight html/css website. I use template parts all the time when building wordpress themes, but not sure if there is a way to implement a template section w/out php.
Can anyone offer some advice on this? Is this even possible?
Thanks in advance.
You can technically have "template" parts by copying and pasting the code from one page to another. So I guess that isn't what you would want to do.
So you are correct, in that you would need something like PHP for this. To set up some basic PHP is not that hard. It really will save a lot of needless code and time, by at least using PHP for your header and footer, if they will be the same on all pages.
I'm involved in a new project. When I opened the first page, I noticed various tags like: <TMPL_IF>some code</TMPL_IF>.
There are quite straight forward and in a couple of hours I was able to do loops and conditional programming, everything is fine but I would like to understand some things about those tags:
Where these tags come from? Are they html? Or something different? Are an extension given by some sort of library on the server?
How can I make my code editor (read Dreamweaver, or jedit) make understand those tags and make the code highlight working again?
May I use those tags in all pages? I mean, I have some sites that could really have improovements with the use of those tags... I have search on the web, and I have seen that there are a bunch of them, from loops to unless conditions, really really nice, but I haven't find a place that teach them from scrap.
Please point me in the right direction.
I remember reading a while back on some random website about a program that would look at multiple pages on an HTML site and detect the differences/similarities between the pages to automatically detect which parts were template "boilerplate" and which parts were new content, and then based on this, automatically spit out just the parts that are content.
Unfortunately, I didn't remember enough details about this utility to actually find it on google, so I wonder if any of you guys have run across anything like this, and CAN remember the name of it.
Thanks.
Murphy's Law (or is it some other law) has stricken, and I've found it just moments after I'd given up and posted this question. The project I am thinking of is this:
http://code.google.com/p/boilerpipe/
Thanks.