Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Silly newbie question. I see a lot of HTML templates on Themeforest or other sites, and they usually include a blog page. Doesn't a blog require a CMS, such as Wordpress? If I want to create a blog in HTML/CSS for a single author website that does NOT contain comments, what are my best options? Do people commonly do this, or should I really be using a CMS even though it's such a simple thing?
I plan to use Bootstrap to build a website. The website also needs a blog, although it's not it's main focus. I prefer to avoid a CMS if at all possible (and don't want to build my own CMS). Are there any mainstream solutions?
You should always be able use a text editor to modify files, regardless of their type. That being said, if this template is built for a specific CMS (take Wordpress, for instance) you will need to have some sort of web server and database to develop against.
If this template is simply a bunch of HTML template/boilerplate files, you can develop all the pages you need by hand. Just make copies and rename them according to your IA.
A blog typically implies you have some sort of database and CMS, but not always. You could create static, hard-coded pages and call them your blog.
If you buy a plain html template you can edit it by using various html/css/js editors such as brackets, atom, visual studio code or any other. On one hand, you can write your own CMS in e.g. php, ror, node. Or if you only want to have a blog site, you can buy a wordpress or joomla template and just install it into your CMS.
In static pages , you can only update your blog page by your server's cpanel editor not by dynamically, so if you need this as dynamic then you have make a back end dashboard in any scripting language such as php, jsp, asp or any framework or cms. So, your template only can hold blogs statically, by writing before uploading the page on server, or edit the page from cpannel. Thanx.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm starting to work with HTML/Bootstrap, trying to have a website with several pages. The way I'm doing it is just to code each page separately, but I see that there are some elements in my page that are just the same (the navbar for instance).
I'm thus asking what is the correct way of separating the pages in this kind of scenario. Is it just to put each part in a separated HTML file, and including it?
I'm using Python Django as a framework and saw that there is a tool called Flask that looks to be dividing the page into sections, is it related or is it a complete different thing?
Bootstrap is a set of CSS (mostly, there are some JS bits too).
How you share code between different pages on your site is entirely independent of Bootstrap.
You would typically solve this problem using a template language. Since you said you are using Django, you can use the built-in template system.
I'm using Python Django as a framework and saw that there is a tool called Flask
Flask is an alternative to Django. It uses a different template system.
Actually you are looking for a template engine in Python and common option is to use Jinja2 and you are looking for template inheritance check this link, Flask is a micro framework which can be used instead of Django, but you you have to move from Flask to Django you can use Jinja as template engine in both.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I recently created a webpage for my using the Codepen online editor. I made it responsive and have everything in place to migrate it to my Wordpress page.
The only problem is I'm not sure how to migrate pure html/css to Wordpress. It seems by it's nature that Wordpress is structured around themes.
What suggestions do you have for migrating the code over so it works in Wordpress?
Also, since most of the coding I do is by hand (not using themes) is Wordpress the best site to use?
If that's ALL the site, then there's not much point in using wordpress - just make it static.
If you want to expand it later and think you'll need a CMS's data management tools, with Wordpress you will have to create a theme. But the bare minimum for that is only a index.php (put your code there) and a style.css (for the stylesheet, obviously).
Just make sure to also add the head markup to your site and you're good to go.
Any time you add a database -- wordpress, joomla or other -- you're slowing things down. If you're expecting to be managing over 50 pages, that's a good trade-off, but if not, you're probably not making use of the best parts of wordpress.
One thing with Codepen: It has a few helpers -- autoprefixer, normalizer, maybe you're using Sass? Built-in helpers. Make sure they are compiled into your final CSS/HTML.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
So I'm working on producing my own version of a web/db project my friend was given in school. This is my first project in either area and I'm still learning. Part of the project description mentions all of the pages the client wants. I'm solving this by making an unordered list of links to the different pages with appropriate labels. Complex, I know.
Then I realized that every page will have this. My question is this: is there a way to class certain portions of code in html, so I can just have a "navigation list" in each page, instead of the full code of the list and everything associated with it, in every page?
I want the code to be clean and efficient. That's my motivation in this question.
Your question provides little detail, but it sounds like you want something like a php include. If you are running your site on your local, change the .html files to .php and do <?php include('includes/navigation.php') ?> where includes/navigation.php is a path to JUST your navigation code.
What you are talking about is templates. You cannot do it in plain html... You would need to use a server side language like php. You could also do it with a JavaScript templating language like handlebars or similar, but not in plain html.
If you don't want to use PHP or some other server side technology for a simple menu, you can try various Javascript plugins like MenuCool.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'm going to create a super-simple, one-page, site. It will have text and images and links on it, that's all.
No code, either C# or jQuery or anything else - just some HTML (and minimal CSS).
I created mockups of the site (page) using VS 2013 by selecting New > Project > Web Site > ASP.NET and then each of the following, in turn:
Empty Page
SPA
Web Forms
For the first two, I added an HTML page and copied my HTML and CSS and ran it. It works fine.
For the last option (Web Forms), the difference was that there was already a page (Default.aspx). I replaced the existing HTML in there with mine (and my CSS). It also works fine.
I plan on publishing it to/with/as an Azure web site. I assume I can do this with any of these project types.
The Web Forms adds a bunch of stuff I don't need or use, so I imagine one of the other two would be my best bet. Is there any reason why I would select one project type over the others for a simple page like this?
If it's a static site and you know what HTML/CSS you want to use, your best bet with Visual Studio is to use the Empty Page template.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'm interested to get a free, WYSIWYG HTML editor that is compatible with Django template. Any ideas?
Thanks LainMH.
But I afraid fckeditor is used in web app, for the purpose of editing
HTML. What I want is an editor that allows me to write HTML that is
Django compatible.
Hope this clarifies the issue.
http://www.fckeditor.net/ ?
EDIT: Just found this: http://blog.newt.cz/blog/integration-fckeditor-django/
vim has syntax highlighting for Django template tags, works for me ^_^
I don't think any of the HTML based editors will work with the django templates, but rather the editable content areas within templates.
The process for creating / editing Django templates is really to create a standard HTML page first (with CSS & images etc), then make that into a base template. Then you create other templates that extend the base one.
The type or program typically used for editing the templates would be an IDE, although I prefer the lighter weight Textmate bundle for editing the templates (and Django python code). If you have an IDE, just google for a Python pluggin for Django.
What will probably help most is having the Django templates page open, or using a Django cheetsheet.
According to brief Googling (no personal experience with this), Aptana now supports Python development via Pydev. Pydev again can be configured to work with Django.
Thus I would expect Aptana to be usable with Django templates aswell, though I have no complete guide these links should be helpful :
http://www.aptana.com/python
http://pydev.blogspot.com/2006/09/configuring-pydev-to-work-with-django.html
Hope this helps.